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>
115 lines
2.8 KiB
JSON
115 lines
2.8 KiB
JSON
{
|
|
"name": "dsdisc",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.dsdisc",
|
|
"staging_table": "pipekit_staging.dsdisc",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": "Discount codes file 6.0",
|
|
"description": "Discount schedule",
|
|
"columns": [
|
|
{
|
|
"source_name": "FADISC",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "fadisc",
|
|
"dest_type": "text",
|
|
"description": "Discount Code"
|
|
},
|
|
{
|
|
"source_name": "FADDES",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "faddes",
|
|
"dest_type": "text",
|
|
"description": "Discount Description"
|
|
},
|
|
{
|
|
"source_name": "FAPERC",
|
|
"source_type": "NUMERIC(8,5)",
|
|
"dest_name": "faperc",
|
|
"dest_type": "numeric(8,5)",
|
|
"description": "Default Rate"
|
|
},
|
|
{
|
|
"source_name": "FADRCR",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "fadrcr",
|
|
"dest_type": "text",
|
|
"description": "Debit Credit"
|
|
},
|
|
{
|
|
"source_name": "FABANT",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "fabant",
|
|
"dest_type": "text",
|
|
"description": "Rate Base"
|
|
},
|
|
{
|
|
"source_name": "FADAMT",
|
|
"source_type": "NUMERIC(13,5)",
|
|
"dest_name": "fadamt",
|
|
"dest_type": "numeric(13,5)",
|
|
"description": "Default Amount"
|
|
},
|
|
{
|
|
"source_name": "FAAPER",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "faaper",
|
|
"dest_type": "text",
|
|
"description": "Fixed or per Unit"
|
|
},
|
|
{
|
|
"source_name": "FACRAR",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "facrar",
|
|
"dest_type": "text",
|
|
"description": "Create A/R"
|
|
},
|
|
{
|
|
"source_name": "FACUST",
|
|
"source_type": "CHAR(8)",
|
|
"dest_name": "facust",
|
|
"dest_type": "text",
|
|
"description": "Customer Code"
|
|
},
|
|
{
|
|
"source_name": "FAARSC",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "faarsc",
|
|
"dest_type": "text",
|
|
"description": "Sales Code"
|
|
},
|
|
{
|
|
"source_name": "FADINV",
|
|
"source_type": "NUMERIC(9,0)",
|
|
"dest_name": "fadinv",
|
|
"dest_type": "numeric(9,0)",
|
|
"description": "Discount Accumulation Inv#"
|
|
},
|
|
{
|
|
"source_name": "FAAUNT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "faaunt",
|
|
"dest_type": "text",
|
|
"description": "Amount Per-Unit"
|
|
},
|
|
{
|
|
"source_name": "FARTEF",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "fartef",
|
|
"dest_type": "text",
|
|
"description": "Rate Flag"
|
|
},
|
|
{
|
|
"source_name": "FARNDD",
|
|
"source_type": "NUMERIC(2,0)",
|
|
"dest_name": "farndd",
|
|
"dest_type": "numeric(2,0)",
|
|
"description": "Rounding # of Decimals"
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|