Add xGen page

This commit is contained in:
ivarsbariss
2026-03-05 11:41:28 +01:00
parent 6aa6f485c5
commit 3a48064c27
42 changed files with 2214 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
"gitSyncId": "e3b197954c324fb2bd7ad792_1bbdaf37-14d8-44f2-9f9f-e4b5bfe7cda0",
"id": "xGen_xgen_buildinfo",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT * FROM mpe.buildinfo ORDER BY buildinfo_sub_id DESC\n",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"name": "xgen_buildinfo",
"pageId": "xGen",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1 @@
SELECT * FROM mpe.buildinfo ORDER BY buildinfo_sub_id DESC

View File

@@ -0,0 +1,31 @@
{
"gitSyncId": "e3b197954c324fb2bd7ad792_cd267f31-d5b7-45ae-9dbd-e198d9dd2d15",
"id": "xGen_xgen_compatibility_items",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT DISTINCT hwcompatibility.hwcompatibility_item_number AS item, item.item_descrip1 AS title, item.item_descrip2 AS specification\n FROM mpe.hwcompatibility\n JOIN mpe.hwcompatibilitynotes ON hwcompatibilitynotes.hwcompatibilitynotes_hwcompatibility_association = hwcompatibility.hwcompatibility_association\n JOIN public.item ON item_number = hwcompatibility.hwcompatibility_item_number\n ORDER BY hwcompatibility.hwcompatibility_item_number\n",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"name": "xgen_compatibility_items",
"pageId": "xGen",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1,5 @@
SELECT DISTINCT hwcompatibility.hwcompatibility_item_number AS item, item.item_descrip1 AS title, item.item_descrip2 AS specification
FROM mpe.hwcompatibility
JOIN mpe.hwcompatibilitynotes ON hwcompatibilitynotes.hwcompatibilitynotes_hwcompatibility_association = hwcompatibility.hwcompatibility_association
JOIN public.item ON item_number = hwcompatibility.hwcompatibility_item_number
ORDER BY hwcompatibility.hwcompatibility_item_number

View File

@@ -0,0 +1,31 @@
{
"gitSyncId": "e3b197954c324fb2bd7ad792_9a7ecca0-7bb5-4333-b63b-31e18ce7810c",
"id": "xGen_xgen_firmware_shipped",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT testhist_id AS id,\n wo_number || '-' || wo_subnumber || '-' || testhist_product_id AS wo,\n testhist_testwith_version AS firmware_version,\n testhist_testwith_buildinfo_id AS firmware_build_id,\n MAX(CASE\n WHEN (char_name = 'M/S') AND charass_value LIKE 'MS%' THEN 'true'\n ELSE NULL\n END) AS multimodule,\n MAX(CASE\n WHEN (char_name = 'Series') THEN charass_value\n ELSE NULL\n END) AS product_type,\n MAX(CASE\n WHEN (char_name = 'Configuration-Product') THEN charass_value\n ELSE NULL\n END) AS product_config,\n to_char(testhist_timestamp, 'YYYY-MM-DD') AS date\nFROM wo\n LEFT JOIN charass ON wo_id = charass_target_id\n JOIN char ON charass_char_id = char_id\n JOIN itemsite ON wo_itemsite_id = itemsite_id\n JOIN item ON itemsite.itemsite_item_id = item.item_id\n JOIN mpe.testhist ON wo_id = mpe.testhist.testhist_wo_id\nWHERE char_name IN ('Series', 'M/S', 'Configuration-Product')\n AND testhist_testwith_item_number = '28207'\nGROUP BY wo_number,\n wo_subnumber,\n testhist_testwith_version,\n testhist_id,\n testhist_product_id,\n testhist_testwith_buildinfo_id\nORDER By id DESC\n",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"name": "xgen_firmware_shipped",
"pageId": "xGen",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1,32 @@
SELECT testhist_id AS id,
wo_number || '-' || wo_subnumber || '-' || testhist_product_id AS wo,
testhist_testwith_version AS firmware_version,
testhist_testwith_buildinfo_id AS firmware_build_id,
MAX(CASE
WHEN (char_name = 'M/S') AND charass_value LIKE 'MS%' THEN 'true'
ELSE NULL
END) AS multimodule,
MAX(CASE
WHEN (char_name = 'Series') THEN charass_value
ELSE NULL
END) AS product_type,
MAX(CASE
WHEN (char_name = 'Configuration-Product') THEN charass_value
ELSE NULL
END) AS product_config,
to_char(testhist_timestamp, 'YYYY-MM-DD') AS date
FROM wo
LEFT JOIN charass ON wo_id = charass_target_id
JOIN char ON charass_char_id = char_id
JOIN itemsite ON wo_itemsite_id = itemsite_id
JOIN item ON itemsite.itemsite_item_id = item.item_id
JOIN mpe.testhist ON wo_id = mpe.testhist.testhist_wo_id
WHERE char_name IN ('Series', 'M/S', 'Configuration-Product')
AND testhist_testwith_item_number = '28207'
GROUP BY wo_number,
wo_subnumber,
testhist_testwith_version,
testhist_id,
testhist_product_id,
testhist_testwith_buildinfo_id
ORDER By id DESC

View File

@@ -0,0 +1,31 @@
{
"gitSyncId": "e3b197954c324fb2bd7ad792_4cdd56a3-29db-4b18-ba93-9dfd1df6b532",
"id": "xGen_xgen_forward_compat_break",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "select forwardcompatibilitybreak_cause_item_name as break_cause,\n array_to_string(forwardcompatibilitybreak_effected_item_names, ', ') as affected_items,\n forwardcompatibilitybreak_hwcompatibility_association as assoc,\n forwardcompatibilitybreak_timestamp::date as date_of_break from mpe.forwardcompatibilitybreak\n",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"name": "xgen_forward_compat_break",
"pageId": "xGen",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1,4 @@
select forwardcompatibilitybreak_cause_item_name as break_cause,
array_to_string(forwardcompatibilitybreak_effected_item_names, ', ') as affected_items,
forwardcompatibilitybreak_hwcompatibility_association as assoc,
forwardcompatibilitybreak_timestamp::date as date_of_break from mpe.forwardcompatibilitybreak

View File

@@ -0,0 +1,31 @@
{
"gitSyncId": "e3b197954c324fb2bd7ad792_16700451-1518-4db9-a6b4-e1aa90f54892",
"id": "xGen_xgen_hw_compatibility_summary",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT * FROM mpe.hwcompatibilitysummary\n",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"name": "xgen_hw_compatibility_summary",
"pageId": "xGen",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1 @@
SELECT * FROM mpe.hwcompatibilitysummary

View File

@@ -0,0 +1,31 @@
{
"gitSyncId": "e3b197954c324fb2bd7ad792_16d5e630-a22a-422e-99f7-52c7cc28c5ea",
"id": "xGen_xgen_pairs",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT TITEM1.item_number AS item1, \n TITEM1.item_descrip1 AS item1_descrip,\n TITEM2.item_number AS item2, \n TITEM2.item_descrip1 AS item2_descrip,\n TITEM2.item_descrip2 AS item2_spec\nFROM mpe.hwcompatibilitypairs \nJOIN item AS TITEM1 ON hwcompatibilitypairs_item1_id = TITEM1.item_id \nJOIN item AS TITEM2 ON hwcompatibilitypairs_item2_id = TITEM2.item_id\n",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"name": "xgen_pairs",
"pageId": "xGen",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1,8 @@
SELECT TITEM1.item_number AS item1,
TITEM1.item_descrip1 AS item1_descrip,
TITEM2.item_number AS item2,
TITEM2.item_descrip1 AS item2_descrip,
TITEM2.item_descrip2 AS item2_spec
FROM mpe.hwcompatibilitypairs
JOIN item AS TITEM1 ON hwcompatibilitypairs_item1_id = TITEM1.item_id
JOIN item AS TITEM2 ON hwcompatibilitypairs_item2_id = TITEM2.item_id

View File

@@ -0,0 +1,31 @@
{
"gitSyncId": "e3b197954c324fb2bd7ad792_c7d7eb03-db00-4854-911a-f53f5fa7f462",
"id": "xGen_xgen_snapshot_prodmap",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT\n\tmpe.snapshotprodmapsummary.product_type as \"Product Type\",\n\tmpe.snapshotprodmapsummary.snapshot_number as \"Snapshot Number\",\n\tmpe.snapshotprodmapsummary.versions as \"Versions\",\n\tmpe.snapshotprodmapsummary.effective_date as \"Effective Date\",\n\tmpe.snapshotprodmapsummary.expire_date as \"Expire Date\"\nFROM mpe.snapshotprodmapsummary\nWHERE snapshotprodmapsummary.expire_date > now() OR snapshotprodmapsummary.expire_date IS NULL\n",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"name": "xgen_snapshot_prodmap",
"pageId": "xGen",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1,8 @@
SELECT
mpe.snapshotprodmapsummary.product_type as "Product Type",
mpe.snapshotprodmapsummary.snapshot_number as "Snapshot Number",
mpe.snapshotprodmapsummary.versions as "Versions",
mpe.snapshotprodmapsummary.effective_date as "Effective Date",
mpe.snapshotprodmapsummary.expire_date as "Expire Date"
FROM mpe.snapshotprodmapsummary
WHERE snapshotprodmapsummary.expire_date > now() OR snapshotprodmapsummary.expire_date IS NULL

View File

@@ -0,0 +1,31 @@
{
"gitSyncId": "e3b197954c324fb2bd7ad792_7684a9ec-ae85-4c35-8617-1103064d17ac",
"id": "xGen_xgen_test_cal_measurements",
"pluginId": "postgres-plugin",
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT\n wo_number || '-' || wo_subnumber AS wo,\n measass_product_id AS product_id,\n meas_name AS measurement,\n\tmeasass_value AS measurement_value,\n\tmeas_unit AS measurement_unit,\n\tMAX(CASE WHEN char_name = 'Series' THEN charass_value ELSE NULL END) AS product_type,\n\tMAX(CASE WHEN char_name = 'Input' THEN charass_value ELSE NULL END) AS input_voltage,\n\tMAX(CASE WHEN char_name = 'Output V' THEN charass_value ELSE NULL END) AS output_voltage,\n\tMAX(CASE WHEN char_name = 'Power' THEN charass_value ELSE NULL END) AS power,\n\tMAX(CASE WHEN char_name = 'Model' THEN charass_value ELSE NULL END) AS model,\n\tMAX(CASE WHEN char_name = 'Phase' THEN charass_value ELSE NULL END) AS phase,\n\tMAX(CASE WHEN char_name = 'Com' THEN charass_value ELSE NULL END) AS com,\n\tmeasass_timestamp AS timestamp\nFROM mpe.measass\nJOIN mpe.meas ON meas_id = measass_meas_id\nJOIN wo ON wo_id = measass_wo_id\nLEFT JOIN charass ON wo_id = charass_target_id\nJOIN char ON charass_char_id = char_id\nWHERE char_name in ('Series', 'Input', 'Output V', 'Power', 'Model', 'Phase', 'Com')\nGROUP BY wo, measurement, measurement_value, measurement_unit, product_id, timestamp\nORDER BY wo, measurement\n",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"timeoutInMillisecond": 10000
},
"confirmBeforeExecute": false,
"datasource": {
"id": "xTuple_Sandbox",
"isAutoGenerated": false,
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"name": "xgen_test_cal_measurements",
"pageId": "xGen",
"runBehaviour": "AUTOMATIC",
"userSetOnLoad": false
}
}

View File

@@ -0,0 +1,22 @@
SELECT
wo_number || '-' || wo_subnumber AS wo,
measass_product_id AS product_id,
meas_name AS measurement,
measass_value AS measurement_value,
meas_unit AS measurement_unit,
MAX(CASE WHEN char_name = 'Series' THEN charass_value ELSE NULL END) AS product_type,
MAX(CASE WHEN char_name = 'Input' THEN charass_value ELSE NULL END) AS input_voltage,
MAX(CASE WHEN char_name = 'Output V' THEN charass_value ELSE NULL END) AS output_voltage,
MAX(CASE WHEN char_name = 'Power' THEN charass_value ELSE NULL END) AS power,
MAX(CASE WHEN char_name = 'Model' THEN charass_value ELSE NULL END) AS model,
MAX(CASE WHEN char_name = 'Phase' THEN charass_value ELSE NULL END) AS phase,
MAX(CASE WHEN char_name = 'Com' THEN charass_value ELSE NULL END) AS com,
measass_timestamp AS timestamp
FROM mpe.measass
JOIN mpe.meas ON meas_id = measass_meas_id
JOIN wo ON wo_id = measass_wo_id
LEFT JOIN charass ON wo_id = charass_target_id
JOIN char ON charass_char_id = char_id
WHERE char_name in ('Series', 'Input', 'Output V', 'Power', 'Model', 'Phase', 'Com')
GROUP BY wo, measurement, measurement_value, measurement_unit, product_id, timestamp
ORDER BY wo, measurement