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

192 lines
4.6 KiB
JSON

{
"name": "usrcust",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.usrcust",
"staging_table": "pipekit_staging.usrcust",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "... USER customer file",
"description": "Customer Master Extension",
"columns": [
{
"source_name": "CUCUST",
"source_type": "CHAR(8)",
"dest_name": "cucust",
"dest_type": "text",
"description": "CUSTOMER#"
},
{
"source_name": "CUTFMON",
"source_type": "CHAR(1)",
"dest_name": "cutfmon",
"dest_type": "text",
"description": "DELIVER ON MON YN"
},
{
"source_name": "CUTFTUE",
"source_type": "CHAR(1)",
"dest_name": "cutftue",
"dest_type": "text",
"description": "DELIVER ON TUE YN"
},
{
"source_name": "CUTFWED",
"source_type": "CHAR(1)",
"dest_name": "cutfwed",
"dest_type": "text",
"description": "DELIVER ON WED YN"
},
{
"source_name": "CUTFTHR",
"source_type": "CHAR(1)",
"dest_name": "cutfthr",
"dest_type": "text",
"description": "DELIVER ON THR YN"
},
{
"source_name": "CUTFFRI",
"source_type": "CHAR(1)",
"dest_name": "cutffri",
"dest_type": "text",
"description": "DELIVER ON FRI YN"
},
{
"source_name": "CUTFSAT",
"source_type": "CHAR(1)",
"dest_name": "cutfsat",
"dest_type": "text",
"description": "DELIVER ON SAT YN"
},
{
"source_name": "CUTFSUN",
"source_type": "CHAR(1)",
"dest_name": "cutfsun",
"dest_type": "text",
"description": "DELIVER ON SUN YN"
},
{
"source_name": "CUTFCSR",
"source_type": "CHAR(1)",
"dest_name": "cutfcsr",
"dest_type": "text",
"description": "CONTACT CSR YN"
},
{
"source_name": "CUTFCM1",
"source_type": "CHAR(75)",
"dest_name": "cutfcm1",
"dest_type": "text",
"description": "COMMENTS 1"
},
{
"source_name": "CUTFCM2",
"source_type": "CHAR(75)",
"dest_name": "cutfcm2",
"dest_type": "text",
"description": "COMMENTS 2"
},
{
"source_name": "CUTFNM",
"source_type": "CHAR(50)",
"dest_name": "cutfnm",
"dest_type": "text",
"description": "CONTACT NAME"
},
{
"source_name": "CUTFPH",
"source_type": "CHAR(50)",
"dest_name": "cutfph",
"dest_type": "text",
"description": "CONTACT PHONE"
},
{
"source_name": "CUTFEM",
"source_type": "CHAR(150)",
"dest_name": "cutfem",
"dest_type": "text",
"description": "CONTACT EMAIL"
},
{
"source_name": "CUTFCAR",
"source_type": "CHAR(30)",
"dest_name": "cutfcar",
"dest_type": "text",
"description": "CARRIER PREF"
},
{
"source_name": "CUTFEQP",
"source_type": "CHAR(2)",
"dest_name": "cutfeqp",
"dest_type": "text",
"description": "EQUIPMENT"
},
{
"source_name": "CUTFAPT",
"source_type": "CHAR(2)",
"dest_name": "cutfapt",
"dest_type": "text",
"description": "APPT NOTIFY"
},
{
"source_name": "CUTFDEL",
"source_type": "CHAR(2)",
"dest_name": "cutfdel",
"dest_type": "text",
"description": "DELIVERY NOTIFY"
},
{
"source_name": "CUTFRHR",
"source_type": "CHAR(30)",
"dest_name": "cutfrhr",
"dest_type": "text",
"description": "RECEIVING HOURS"
},
{
"source_name": "CUGREP",
"source_type": "CHAR(5)",
"dest_name": "cugrep",
"dest_type": "text",
"description": "INSIDE SALES REP"
},
{
"source_name": "CURREP",
"source_type": "CHAR(5)",
"dest_name": "currep",
"dest_type": "text",
"description": "RETAIL REP"
},
{
"source_name": "CUNREP",
"source_type": "CHAR(5)",
"dest_name": "cunrep",
"dest_type": "text",
"description": "KEY ACCOUNT REP"
},
{
"source_name": "CUMREP",
"source_type": "CHAR(5)",
"dest_name": "cumrep",
"dest_type": "text",
"description": "MISC REP"
},
{
"source_name": "CURCVTMS",
"source_type": "NUMERIC(4,0)",
"dest_name": "curcvtms",
"dest_type": "numeric(4,0)",
"description": "RECEIVING TIME START"
},
{
"source_name": "CURCVTME",
"source_type": "NUMERIC(4,0)",
"dest_name": "curcvtme",
"dest_type": "numeric(4,0)",
"description": "RECEIVING TIME END"
}
],
"watermarks": [],
"hooks": []
}