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>
129 lines
3.2 KiB
JSON
129 lines
3.2 KiB
JSON
{
|
|
"name": "ocrs",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.ocrs",
|
|
"staging_table": "pipekit_staging.ocrs",
|
|
"merge_strategy": "incremental",
|
|
"merge_key": "fford#",
|
|
"enabled": 1,
|
|
"dest_description": "Order Discounts/Charges 6.0",
|
|
"description": "Order Discounts/Charges",
|
|
"columns": [
|
|
{
|
|
"source_name": "FFORD#",
|
|
"source_type": "NUMERIC(9,0)",
|
|
"dest_name": "fford#",
|
|
"dest_type": "numeric(9,0)",
|
|
"description": "Customer Order Number"
|
|
},
|
|
{
|
|
"source_name": "FFITM#",
|
|
"source_type": "NUMERIC(3,0)",
|
|
"dest_name": "ffitm#",
|
|
"dest_type": "numeric(3,0)",
|
|
"description": "Item Number"
|
|
},
|
|
{
|
|
"source_name": "FFDIS#",
|
|
"source_type": "NUMERIC(3,0)",
|
|
"dest_name": "ffdis#",
|
|
"dest_type": "numeric(3,0)",
|
|
"description": "Discount Number"
|
|
},
|
|
{
|
|
"source_name": "FFDISC",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "ffdisc",
|
|
"dest_type": "text",
|
|
"description": "Discount Code"
|
|
},
|
|
{
|
|
"source_name": "FFDDES",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "ffddes",
|
|
"dest_type": "text",
|
|
"description": "Discount Description"
|
|
},
|
|
{
|
|
"source_name": "FFDRCR",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ffdrcr",
|
|
"dest_type": "text",
|
|
"description": "Debit Credit"
|
|
},
|
|
{
|
|
"source_name": "FFBANT",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ffbant",
|
|
"dest_type": "text",
|
|
"description": "Rate Base"
|
|
},
|
|
{
|
|
"source_name": "FFPERC",
|
|
"source_type": "NUMERIC(8,5)",
|
|
"dest_name": "ffperc",
|
|
"dest_type": "numeric(8,5)",
|
|
"description": "Discount Percent"
|
|
},
|
|
{
|
|
"source_name": "FFDAMT",
|
|
"source_type": "NUMERIC(13,5)",
|
|
"dest_name": "ffdamt",
|
|
"dest_type": "numeric(13,5)",
|
|
"description": "Discount Amount"
|
|
},
|
|
{
|
|
"source_name": "FFAPER",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ffaper",
|
|
"dest_type": "text",
|
|
"description": "Fixed or per Unit"
|
|
},
|
|
{
|
|
"source_name": "FFDEXT",
|
|
"source_type": "NUMERIC(10,2)",
|
|
"dest_name": "ffdext",
|
|
"dest_type": "numeric(10,2)",
|
|
"description": "Discount Extension"
|
|
},
|
|
{
|
|
"source_name": "FFAUNT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "ffaunt",
|
|
"dest_type": "text",
|
|
"description": "Amount Per-Unit"
|
|
},
|
|
{
|
|
"source_name": "FFRTEF",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ffrtef",
|
|
"dest_type": "text",
|
|
"description": "Rate Flag"
|
|
},
|
|
{
|
|
"source_name": "FFRNDD",
|
|
"source_type": "NUMERIC(2,0)",
|
|
"dest_name": "ffrndd",
|
|
"dest_type": "numeric(2,0)",
|
|
"description": "Rounding # of Decimals"
|
|
},
|
|
{
|
|
"source_name": "FFAPLY",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ffaply",
|
|
"dest_type": "text",
|
|
"description": "Fixed Discount Applied"
|
|
}
|
|
],
|
|
"watermarks": [
|
|
{
|
|
"name": "ocrs_wm",
|
|
"connection": "usmidsap02",
|
|
"resolver_sql": "SELECT COALESCE(MAX(dcudat), DATE '1900-01-01') - 7 FROM cms.ocrh",
|
|
"default_value": null
|
|
}
|
|
],
|
|
"hooks": []
|
|
}
|