From efa9d3cc63e65b3283df0690025eaf9e46e1b1f1 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Thu, 20 Aug 2026 02:06:11 -0600 Subject: [PATCH 1/4] fix(cli): preserve invalid values for coded-value domain fields Fixes #19 --- cli/src/utrans/etl_mappers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/src/utrans/etl_mappers.py b/cli/src/utrans/etl_mappers.py index c2a7567..23d8ba7 100644 --- a/cli/src/utrans/etl_mappers.py +++ b/cli/src/utrans/etl_mappers.py @@ -164,6 +164,7 @@ def apply_mapper(feature_class: str, profile: CountyProfile, utrans_roads: str) if resolved is not None: row[target_index] = resolved elif has_value(row[source_index]): + row[target_index] = source_value notes_index = indexes.get("UTRANS_NOTES") if notes_index is not None: row[notes_index] = ( From 7ad40ef0f93ff294b6cb8ced6f2cb2808c60d435 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Thu, 20 Aug 2026 02:06:23 -0600 Subject: [PATCH 2/4] chore: start cli copilot instructions --- .github/instructions/cli.instructions.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/instructions/cli.instructions.md diff --git a/.github/instructions/cli.instructions.md b/.github/instructions/cli.instructions.md new file mode 100644 index 0000000..2b858da --- /dev/null +++ b/.github/instructions/cli.instructions.md @@ -0,0 +1,13 @@ +--- +applyTo: "cli/**" +description: Instructions for developing and validating the UTRANS CLI +--- + +# UTRANS CLI Development Instructions + +- Use the existing Conda environment named `utrans-tools` for CLI development and validation. +- Activate it before running Python, ArcPy, pytest, or CLI commands: + +```powershell +conda activate utrans-tools +``` \ No newline at end of file From 2b5371148c016f1feaa28c1a1f12e04a06665901 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Thu, 20 Aug 2026 02:08:27 -0600 Subject: [PATCH 3/4] fix(cli): make sure that UTRANS_NOTES values are truncated to 200 characters during etl --- cli/src/utrans/etl_mappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/utrans/etl_mappers.py b/cli/src/utrans/etl_mappers.py index 23d8ba7..5194eb4 100644 --- a/cli/src/utrans/etl_mappers.py +++ b/cli/src/utrans/etl_mappers.py @@ -169,7 +169,7 @@ def apply_mapper(feature_class: str, profile: CountyProfile, utrans_roads: str) if notes_index is not None: row[notes_index] = ( f"{row[notes_index] or ''}{target}: {row[source_index]}; " - ) + )[:200] for source, alias in parse_sources: source_index = indexes.get(source.upper()) if source_index is None: From 0900ee36c19a982b2e36b1813319ca85ad718b65 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Thu, 20 Aug 2026 02:27:08 -0600 Subject: [PATCH 4/4] chore: address copilot feedback --- cli/src/utrans/etl_mappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/utrans/etl_mappers.py b/cli/src/utrans/etl_mappers.py index 5194eb4..4f2dbb0 100644 --- a/cli/src/utrans/etl_mappers.py +++ b/cli/src/utrans/etl_mappers.py @@ -168,7 +168,7 @@ def apply_mapper(feature_class: str, profile: CountyProfile, utrans_roads: str) notes_index = indexes.get("UTRANS_NOTES") if notes_index is not None: row[notes_index] = ( - f"{row[notes_index] or ''}{target}: {row[source_index]}; " + f"{row[notes_index] or ''}{target}: {source_value}; " )[:200] for source, alias in parse_sources: source_index = indexes.get(source.upper())