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>
171 lines
4.2 KiB
JSON
171 lines
4.2 KiB
JSON
{
|
|
"name": "iprccto",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.iprccto",
|
|
"staging_table": "pipekit_staging.iprccto",
|
|
"merge_strategy": "incremental",
|
|
"merge_key": "t7date",
|
|
"enabled": 1,
|
|
"dest_description": "Price List Old Price Details 6.0",
|
|
"description": "Price List Change Log - Old Prices",
|
|
"columns": [
|
|
{
|
|
"source_name": "T7PLCD",
|
|
"source_type": "CHAR(5)",
|
|
"dest_name": "t7plcd",
|
|
"dest_type": "text",
|
|
"description": "Price List Code"
|
|
},
|
|
{
|
|
"source_name": "T7PART",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "t7part",
|
|
"dest_type": "text",
|
|
"description": "Part Number"
|
|
},
|
|
{
|
|
"source_name": "T7UNIT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "t7unit",
|
|
"dest_type": "text",
|
|
"description": "Pricing Unit"
|
|
},
|
|
{
|
|
"source_name": "T7DATE",
|
|
"source_type": "DATE",
|
|
"dest_name": "t7date",
|
|
"dest_type": "date",
|
|
"description": "Transaction Date"
|
|
},
|
|
{
|
|
"source_name": "T7TIME",
|
|
"source_type": "TIME",
|
|
"dest_name": "t7time",
|
|
"dest_type": "time",
|
|
"description": "Transaction Time"
|
|
},
|
|
{
|
|
"source_name": "T7VOLL",
|
|
"source_type": "DECIMAL(12,5)",
|
|
"dest_name": "t7voll",
|
|
"dest_type": "numeric(12,5)",
|
|
"description": "Old Volume"
|
|
},
|
|
{
|
|
"source_name": "T7PRIC",
|
|
"source_type": "DECIMAL(12,5)",
|
|
"dest_name": "t7pric",
|
|
"dest_type": "numeric(12,5)",
|
|
"description": "Old Price"
|
|
},
|
|
{
|
|
"source_name": "T7DISC",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "t7disc",
|
|
"dest_type": "text",
|
|
"description": "Old Discount Code"
|
|
},
|
|
{
|
|
"source_name": "T7DISF",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "t7disf",
|
|
"dest_type": "text",
|
|
"description": "Old Discount Flag"
|
|
},
|
|
{
|
|
"source_name": "T7CPCT",
|
|
"source_type": "NUMERIC(4,2)",
|
|
"dest_name": "t7cpct",
|
|
"dest_type": "numeric(4,2)",
|
|
"description": "Old Commission %"
|
|
},
|
|
{
|
|
"source_name": "T7CRAT",
|
|
"source_type": "NUMERIC(5,2)",
|
|
"dest_name": "t7crat",
|
|
"dest_type": "numeric(5,2)",
|
|
"description": "Old Comm. Rate"
|
|
},
|
|
{
|
|
"source_name": "T7F0CM",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "t7f0cm",
|
|
"dest_type": "text",
|
|
"description": "Old Force 0 Commission Flag"
|
|
},
|
|
{
|
|
"source_name": "T7FUT1",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "t7fut1",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
},
|
|
{
|
|
"source_name": "T7FUT2",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "t7fut2",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
},
|
|
{
|
|
"source_name": "T7FUT3",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "t7fut3",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
},
|
|
{
|
|
"source_name": "T7FUT4",
|
|
"source_type": "CHAR(5)",
|
|
"dest_name": "t7fut4",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
},
|
|
{
|
|
"source_name": "T7FUT5",
|
|
"source_type": "CHAR(5)",
|
|
"dest_name": "t7fut5",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
},
|
|
{
|
|
"source_name": "T7FUT6",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "t7fut6",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
},
|
|
{
|
|
"source_name": "T7FUT7",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "t7fut7",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
},
|
|
{
|
|
"source_name": "T7FUT8",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "t7fut8",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
},
|
|
{
|
|
"source_name": "T7FUT9",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "t7fut9",
|
|
"dest_type": "text",
|
|
"description": "Future Field"
|
|
}
|
|
],
|
|
"watermarks": [
|
|
{
|
|
"name": "iprccto_wm",
|
|
"connection": "usmidsap02",
|
|
"resolver_sql": "SELECT COALESCE(MAX(t7date), DATE '2000-01-01') - 7 FROM cms.iprccto WHERE t7date <= current_date",
|
|
"default_value": null
|
|
}
|
|
],
|
|
"hooks": []
|
|
}
|