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

227 lines
5.4 KiB
JSON

{
"name": "sscc",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.sscc",
"staging_table": "pipekit_staging.sscc",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Style/Size/Color Codes file 6.0",
"description": "Style Code Master",
"columns": [
{
"source_name": "SSCTYP",
"source_type": "CHAR(1)",
"dest_name": "ssctyp",
"dest_type": "text",
"description": "Type"
},
{
"source_name": "SSCCDE",
"source_type": "CHAR(20)",
"dest_name": "ssccde",
"dest_type": "text",
"description": "Code"
},
{
"source_name": "SSCDE1",
"source_type": "CHAR(30)",
"dest_name": "sscde1",
"dest_type": "text",
"description": "Desc. 1"
},
{
"source_name": "SSCDE2",
"source_type": "CHAR(30)",
"dest_name": "sscde2",
"dest_type": "text",
"description": "Desc. 2"
},
{
"source_name": "SSCDE3",
"source_type": "CHAR(30)",
"dest_name": "sscde3",
"dest_type": "text",
"description": "Desc. 3"
},
{
"source_name": "SSCCUSR",
"source_type": "CHAR(10)",
"dest_name": "ssccusr",
"dest_type": "text",
"description": "Created By User"
},
{
"source_name": "SSCCDAT",
"source_type": "DATE",
"dest_name": "ssccdat",
"dest_type": "date",
"description": "Date Created"
},
{
"source_name": "SSCCTME",
"source_type": "TIME",
"dest_name": "sscctme",
"dest_type": "time",
"description": "Time Created"
},
{
"source_name": "SSCUUSR",
"source_type": "CHAR(10)",
"dest_name": "sscuusr",
"dest_type": "text",
"description": "Updated By User"
},
{
"source_name": "SSCUDAT",
"source_type": "DATE",
"dest_name": "sscudat",
"dest_type": "date",
"description": "Date Updated"
},
{
"source_name": "SSCUTME",
"source_type": "TIME",
"dest_name": "sscutme",
"dest_type": "time",
"description": "Time Updated"
},
{
"source_name": "SSCFUT1",
"source_type": "CHAR(1)",
"dest_name": "sscfut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT2",
"source_type": "CHAR(1)",
"dest_name": "sscfut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT3",
"source_type": "CHAR(20)",
"dest_name": "sscfut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT4",
"source_type": "CHAR(20)",
"dest_name": "sscfut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT5",
"source_type": "CHAR(30)",
"dest_name": "sscfut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT6",
"source_type": "CHAR(30)",
"dest_name": "sscfut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCLN",
"source_type": "NUMERIC(15,5)",
"dest_name": "sscln",
"dest_type": "numeric(15,5)",
"description": "Length"
},
{
"source_name": "SSCLNU",
"source_type": "CHAR(3)",
"dest_name": "ssclnu",
"dest_type": "text",
"description": "Length Unit"
},
{
"source_name": "SSCWD",
"source_type": "NUMERIC(15,5)",
"dest_name": "sscwd",
"dest_type": "numeric(15,5)",
"description": "Width"
},
{
"source_name": "SSCWDU",
"source_type": "CHAR(3)",
"dest_name": "sscwdu",
"dest_type": "text",
"description": "Width Unit"
},
{
"source_name": "SSCHG",
"source_type": "NUMERIC(15,5)",
"dest_name": "sschg",
"dest_type": "numeric(15,5)",
"description": "Height"
},
{
"source_name": "SSCHGU",
"source_type": "CHAR(3)",
"dest_name": "sschgu",
"dest_type": "text",
"description": "Height Unit"
},
{
"source_name": "SSCWG",
"source_type": "NUMERIC(15,5)",
"dest_name": "sscwg",
"dest_type": "numeric(15,5)",
"description": "Weight"
},
{
"source_name": "SSCWGU",
"source_type": "CHAR(3)",
"dest_name": "sscwgu",
"dest_type": "text",
"description": "Weight Unit"
},
{
"source_name": "SSCFGTY",
"source_type": "CHAR(30)",
"dest_name": "sscfgty",
"dest_type": "text",
"description": "Finished Good Type Code"
},
{
"source_name": "SSCFGAT",
"source_type": "CHAR(30)",
"dest_name": "sscfgat",
"dest_type": "text",
"description": "Finished Good Attribute Code"
},
{
"source_name": "SSCFGCL",
"source_type": "CHAR(30)",
"dest_name": "sscfgcl",
"dest_type": "text",
"description": "Finished Good Colour Type Code"
},
{
"source_name": "SSCFGFT",
"source_type": "CHAR(30)",
"dest_name": "sscfgft",
"dest_type": "text",
"description": "Finished Good Flap Style Code"
},
{
"source_name": "SSCFGFZ",
"source_type": "CHAR(30)",
"dest_name": "sscfgfz",
"dest_type": "text",
"description": "Finished Good Flap Size Code"
}
],
"watermarks": [],
"hooks": []
}