pipekit/config/modules/binb.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

122 lines
3.0 KiB
JSON

{
"name": "binb",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.binb",
"staging_table": "pipekit_staging.binb",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Bin Balances 6.0",
"description": "Inventory bin balances",
"columns": [
{
"source_name": "LQSTKL",
"source_type": "CHAR(6)",
"dest_name": "lqstkl",
"dest_type": "text",
"description": "Stock Location"
},
{
"source_name": "LQBIN#",
"source_type": "CHAR(10)",
"dest_name": "lqbin#",
"dest_type": "text",
"description": "Bin Code"
},
{
"source_name": "LQPART",
"source_type": "CHAR(20)",
"dest_name": "lqpart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "LQLOT#",
"source_type": "CHAR(15)",
"dest_name": "lqlot#",
"dest_type": "text",
"description": "Lot Number"
},
{
"source_name": "LQQTYH",
"source_type": "NUMERIC(15,5)",
"dest_name": "lqqtyh",
"dest_type": "numeric(15,5)",
"description": "Qty on hand in base unit"
},
{
"source_name": "LQBTC#",
"source_type": "NUMERIC(5,0)",
"dest_name": "lqbtc#",
"dest_type": "numeric(5,0)",
"description": "Physical Inventory Batch Number"
},
{
"source_name": "LQRDAT",
"source_type": "DATE",
"dest_name": "lqrdat",
"dest_type": "date",
"description": "Last Receipt Date"
},
{
"source_name": "LQIDAT",
"source_type": "DATE",
"dest_name": "lqidat",
"dest_type": "date",
"description": "Last Issue Date"
},
{
"source_name": "LQQTY",
"source_type": "NUMERIC(15,5)",
"dest_name": "lqqty",
"dest_type": "numeric(15,5)",
"description": "Qty on hand"
},
{
"source_name": "LQUNIT",
"source_type": "CHAR(3)",
"dest_name": "lqunit",
"dest_type": "text",
"description": "Unit of Measure"
},
{
"source_name": "LQPLNT",
"source_type": "CHAR(3)",
"dest_name": "lqplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "LQMINQ",
"source_type": "NUMERIC(15,5)",
"dest_name": "lqminq",
"dest_type": "numeric(15,5)",
"description": "Minimum Quantity"
},
{
"source_name": "LQMAXQ",
"source_type": "NUMERIC(15,5)",
"dest_name": "lqmaxq",
"dest_type": "numeric(15,5)",
"description": "Maximum Quantity"
},
{
"source_name": "LQRPLQ",
"source_type": "NUMERIC(15,5)",
"dest_name": "lqrplq",
"dest_type": "numeric(15,5)",
"description": "Replenishment Multiplier"
},
{
"source_name": "LQLEXP",
"source_type": "DATE",
"dest_name": "lqlexp",
"dest_type": "date",
"description": "Lot Expiry Date"
}
],
"watermarks": [],
"hooks": []
}