config_io handled dest_description but never the module's own description field: it was absent from export_config, from both repo.create_module and repo.update_module calls in apply_config, and from the change-detection watch tuple. Descriptions set via the web form were therefore invisible to the config tree — `pipekit apply` silently ignored a description in a module's JSON, and `pipekit export` would have dropped all 127 existing ones on a round-trip. Adding "description" to the watch tuple means a module file without the key now reads as a change to NULL, so backfill the key into all 131 existing module files from the DB. Without this, the next apply would have wiped every description it was meant to preserve. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
73 lines
1.8 KiB
JSON
73 lines
1.8 KiB
JSON
{
|
|
"name": "iprcct",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.iprcct",
|
|
"staging_table": "pipekit_staging.iprcct",
|
|
"merge_strategy": "incremental",
|
|
"merge_key": "tadate",
|
|
"enabled": 1,
|
|
"dest_description": "Price List Trans Log Headers 6.0",
|
|
"description": "Price List Change Log",
|
|
"columns": [
|
|
{
|
|
"source_name": "TAPLCD",
|
|
"source_type": "CHAR(5)",
|
|
"dest_name": "taplcd",
|
|
"dest_type": "text",
|
|
"description": "Price List Code"
|
|
},
|
|
{
|
|
"source_name": "TAPART",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "tapart",
|
|
"dest_type": "text",
|
|
"description": "Part Number"
|
|
},
|
|
{
|
|
"source_name": "TAUNIT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "taunit",
|
|
"dest_type": "text",
|
|
"description": "Pricing Unit"
|
|
},
|
|
{
|
|
"source_name": "TADATE",
|
|
"source_type": "DATE",
|
|
"dest_name": "tadate",
|
|
"dest_type": "date",
|
|
"description": "Transaction Date"
|
|
},
|
|
{
|
|
"source_name": "TATIME",
|
|
"source_type": "TIME",
|
|
"dest_name": "tatime",
|
|
"dest_type": "time without time zone",
|
|
"description": "Transaction Time"
|
|
},
|
|
{
|
|
"source_name": "TAUSER",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "tauser",
|
|
"dest_type": "text",
|
|
"description": "User ID"
|
|
},
|
|
{
|
|
"source_name": "TAPROG",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "taprog",
|
|
"dest_type": "text",
|
|
"description": "Program Number"
|
|
}
|
|
],
|
|
"watermarks": [
|
|
{
|
|
"name": "iprcct_wm",
|
|
"connection": "usmidsap02",
|
|
"resolver_sql": "SELECT COALESCE(MAX(tadate), DATE '2000-01-01') - 7 FROM cms.iprcct WHERE tadate <= current_date",
|
|
"default_value": null
|
|
}
|
|
],
|
|
"hooks": []
|
|
}
|