refactor(scripts): rename translation macro and enforce no-default-override rule#418
refactor(scripts): rename translation macro and enforce no-default-override rule#418julianam-w wants to merge 40 commits into
Conversation
…-timezone-reporting-for-tamanu
…-timezone-reporting-for-tamanu
…-timezone-reporting-for-tamanu
…NT.md Add a navigation table with exact file paths for common pattern lookups (base model, report, config, macros, translations) and quick grep commands for finding downstream references and macro usage. Add a common workflows section referencing the new .maui runbooks, with callouts for when to run parallel agent searches before editing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add naming conventions for summary and grouped-summary reports alongside the existing line-list convention. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
An agent looking up the translation macro would not find this file in the repo. Point at translations.sql as the editable source. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
macros/models/ was not represented, leaving agents writing new dataset macros without a reference point. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
…essential/tamanu-source-dbt into update-translation-script
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Claude finished @julianam-w's task in 2m 21s —— View job Code Review
SummaryThe bulk of new commits since the last review are ruff auto-formatting ( The three items from the previous review remain open. 🟡 Suggestion — Migration note still missing (unaddressed from prior review)
Suggested addition to the Translation system section of
🔵 Nit — Silent enforcement skip when standard CSV is absent (new)
if not standard_csv_path.exists():
cprint(f"⚠️ File does not exist: {standard_csv_path}", "warning")
standard = read_translations_csv(standard_csv_path) # returns {} if missing
localised = read_translations_csv(deployment_csv_path)
assert_no_default_overrides(localised, standard) # standard={} → always passes
if not standard_csv_path.exists():
cprint(f"⚠️ File does not exist: {standard_csv_path} — skipping default-override check", "warning")
standard = {}
else:
standard = read_translations_csv(standard_csv_path)
assert_no_default_overrides(localised, standard)🔵 Nit — Duplicate
|
No description provided.