pipekit/config/modules/ftcstp.json
Paul Trowbridge 217177b3a7 Carry module description through config export/apply
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>
2026-09-04 00:05:57 -04:00

360 lines
9.1 KiB
JSON

{
"name": "ftcstp",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.ftcstp",
"staging_table": "pipekit_staging.ftcstp",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Future Inventory Cost - Purchased Parts 6.0",
"description": "Future Cost - Purchased",
"columns": [
{
"source_name": "COPART",
"source_type": "CHAR(20)",
"dest_name": "copart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "COLUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coluc",
"dest_type": "numeric(13,5)",
"description": "Last Unit Cost"
},
{
"source_name": "COLCC",
"source_type": "NUMERIC(13,5)",
"dest_name": "colcc",
"dest_type": "numeric(13,5)",
"description": "Last Currency Cost"
},
{
"source_name": "COLFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "colfc",
"dest_type": "numeric(13,5)",
"description": "Last Freight Cost"
},
{
"source_name": "COLDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coldc",
"dest_type": "numeric(13,5)",
"description": "Last Duty Cost"
},
{
"source_name": "COL1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "col1c",
"dest_type": "numeric(13,5)",
"description": "Last Multiplier-1 Cost"
},
{
"source_name": "COL2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "col2c",
"dest_type": "numeric(13,5)",
"description": "Last Multiplier-2 Cost"
},
{
"source_name": "COSUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cosuc",
"dest_type": "numeric(13,5)",
"description": "Standard Unit Cost"
},
{
"source_name": "COSCC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coscc",
"dest_type": "numeric(13,5)",
"description": "Standard Currency Cost"
},
{
"source_name": "COSFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cosfc",
"dest_type": "numeric(13,5)",
"description": "Standard Freight Cost"
},
{
"source_name": "COSDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cosdc",
"dest_type": "numeric(13,5)",
"description": "Standard Duty Cost"
},
{
"source_name": "COS1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "cos1c",
"dest_type": "numeric(13,5)",
"description": "Standard Multiplier-1 Cost"
},
{
"source_name": "COS2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "cos2c",
"dest_type": "numeric(13,5)",
"description": "Standard Multiplier-2 Cost"
},
{
"source_name": "COSCR",
"source_type": "DECIMAL(11,6)",
"dest_name": "coscr",
"dest_type": "numeric(11,6)",
"description": "Standard Currency Rate"
},
{
"source_name": "COLCR",
"source_type": "DECIMAL(11,6)",
"dest_name": "colcr",
"dest_type": "numeric(11,6)",
"description": "Last Currency Rate"
},
{
"source_name": "COSDAT",
"source_type": "DATE",
"dest_name": "cosdat",
"dest_type": "date",
"description": "Standard Date"
},
{
"source_name": "COSTCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "costcs",
"dest_type": "numeric(13,5)",
"description": "Standard Cost"
},
{
"source_name": "COACCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "coaccs",
"dest_type": "numeric(13,5)",
"description": "Last Actual Cost"
},
{
"source_name": "COAVCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavcs",
"dest_type": "numeric(13,5)",
"description": "Average Cost"
},
{
"source_name": "COSDR",
"source_type": "NUMERIC(8,4)",
"dest_name": "cosdr",
"dest_type": "numeric(8,4)",
"description": "Standard Duty Rate"
},
{
"source_name": "COS1R",
"source_type": "NUMERIC(8,4)",
"dest_name": "cos1r",
"dest_type": "numeric(8,4)",
"description": "Standard Multiplier-1 Rate"
},
{
"source_name": "COS2R",
"source_type": "NUMERIC(8,4)",
"dest_name": "cos2r",
"dest_type": "numeric(8,4)",
"description": "Standard Multiplier-2 Rate"
},
{
"source_name": "COLDR",
"source_type": "NUMERIC(8,4)",
"dest_name": "coldr",
"dest_type": "numeric(8,4)",
"description": "Last Duty Rate"
},
{
"source_name": "COL1R",
"source_type": "NUMERIC(8,4)",
"dest_name": "col1r",
"dest_type": "numeric(8,4)",
"description": "Last Multiplier-1 Rate"
},
{
"source_name": "COL2R",
"source_type": "NUMERIC(8,4)",
"dest_name": "col2r",
"dest_type": "numeric(8,4)",
"description": "Last Multiplier-2 Rate"
},
{
"source_name": "COSQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "cosqty",
"dest_type": "numeric(8,0)",
"description": "Standard Quantity"
},
{
"source_name": "COAQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "coaqty",
"dest_type": "numeric(8,0)",
"description": "Actual Quantity"
},
{
"source_name": "COTYPE",
"source_type": "CHAR(1)",
"dest_name": "cotype",
"dest_type": "text",
"description": "Part Type R"
},
{
"source_name": "COCURR",
"source_type": "CHAR(3)",
"dest_name": "cocurr",
"dest_type": "text",
"description": "Currency Code"
},
{
"source_name": "COPLNT",
"source_type": "CHAR(3)",
"dest_name": "coplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "COAVUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavuc",
"dest_type": "numeric(13,5)",
"description": "Average Unit cost"
},
{
"source_name": "COAVXC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavxc",
"dest_type": "numeric(13,5)",
"description": "Average Xchg cost"
},
{
"source_name": "COAVDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavdc",
"dest_type": "numeric(13,5)",
"description": "Average Duty cost"
},
{
"source_name": "COAV1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "coav1c",
"dest_type": "numeric(13,5)",
"description": "Average Multiplier-1 Cost"
},
{
"source_name": "COAV2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "coav2c",
"dest_type": "numeric(13,5)",
"description": "Average Multiplier-2 Cost"
},
{
"source_name": "COAVFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavfc",
"dest_type": "numeric(13,5)",
"description": "Average Freight cost"
},
{
"source_name": "COFUT1",
"source_type": "CHAR(3)",
"dest_name": "cofut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFUT2",
"source_type": "CHAR(10)",
"dest_name": "cofut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFUT3",
"source_type": "CHAR(20)",
"dest_name": "cofut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFUT4",
"source_type": "NUMERIC(15,0)",
"dest_name": "cofut4",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "COFUT5",
"source_type": "NUMERIC(15,0)",
"dest_name": "cofut5",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "COFLG1",
"source_type": "CHAR(1)",
"dest_name": "coflg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG2",
"source_type": "CHAR(1)",
"dest_name": "coflg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG3",
"source_type": "CHAR(1)",
"dest_name": "coflg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG4",
"source_type": "CHAR(1)",
"dest_name": "coflg4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG5",
"source_type": "CHAR(1)",
"dest_name": "coflg5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG6",
"source_type": "CHAR(1)",
"dest_name": "coflg6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG7",
"source_type": "CHAR(1)",
"dest_name": "coflg7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COCRCD",
"source_type": "CHAR(3)",
"dest_name": "cocrcd",
"dest_type": "text",
"description": "Last Actual Currency"
}
],
"watermarks": [],
"hooks": []
}