Skip to content

chore(translations): drop the retired event.display.chip_starts, chip_ended and chip_full atlas keys - #1284

Merged
Ardnived merged 1 commit into
mainfrom
chore/retire-atlas-status-chips
Nov 26, 2026
Merged

Ardnived merged 1 commit into
mainfrom
chore/retire-atlas-status-chips

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • event.display.chip_starts, chip_ended and chip_full leave sy-atlas-translations, so translators stop filling copy nothing shows.
  • A data migration sweeps the stored copy from every locale and version row, so later saves keep working.

Change outline

Contract — the sy-atlas-translations schema

The three status chips have no reader since sydevs/SahajAtlasWeb#500.

 event.display                                            src/globals/SahajAtlasTranslations/translationsSchema.json
-  chip_full     (14, strict)  "Status chip: no places left"
-  chip_ended    (14, strict)  "Status chip: the event is over"
-  chip_starts                 "Status chip … `%{date}`"
   chip_today    (14, strict)  "The Today chip on a list card, and the when-line …"   # was "Status chip and when-line"
   started_on                  "When-line for a series already under way"           # was "Status chip and when-line"

Flow — the sweep migration

 20261126_180000_atlas_drop_status_chips.up               src/migrations/
+  for chip_starts, chip_ended, chip_full:
+    dropEnglishKey(sy_atlas_translations, event_display)  # main row and every version row, every locale
 down → nothing                                           # the old schema declares the keys, requires none

Preview

  • Atlas translations: the Event tab's Display group has no Full, Ended or Starts field. No fixture record is involved: the diff touches no fixture.surfacePaths.

Test results

  • Lean gate: ✓ lint, format, typecheck, test-suite typecheck, unit (3924 passed)
  • Targeted specs:
    • atlas-drop-status-chips.int.spec.ts: 2 passed. Its sweep case fails with chip_full left out of the migration.
    • translations-globals.int.spec.ts: 36 passed.
    • atlas-translations-schema.spec.ts: 60 passed.
  • Build: N/A (CI)

Manual verification

  1. After the deploy, GET /api/globals/sy-atlas-translations?select[event]=true with a client key returns no display.chip_starts, display.chip_ended or display.chip_full.
  2. Save any tab of the Atlas translations global in production; it succeeds.

Notes for reviewer

Closes #1283

🤖 Generated with Claude Code

…_ended and chip_full atlas keys

The widget renders none of them since sydevs/SahajAtlasWeb#500: the unused
statusChip string was the only call site for the first two, and the Full chip,
now gone, for the third. Translators were still asked to fill all three.

Removes them from the schema, the ten seed files and the generated types, and
adds a data migration sweeping the stored copy out of event_display on the main
and every version row, since the group declares additionalProperties: false
and a leftover would refuse every later save. down restores nothing: the old
schema declares the keys but requires none. chip_today's and started_on's
descriptions stop calling themselves status chips where none is left, and the
strict-budget specs pin chip_today in chip_full's place.

Closes #1283

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1284 November 26, 2026 17:51 Destroyed
@railway-app

railway-app Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1284 environment in sahajcloud

Service Status Web Updated
SahajCloud 🕒 Building (View Logs) Web Nov 26, 2026 at 5:51 pm UTC
1 service not affected by this PR
  • mailpit

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🤖 no session running

Written by the sydevs dispatcher. Sessions never edit this comment.

@Ardnived
Ardnived merged commit 45a03a2 into main Nov 26, 2026
11 of 12 checks passed
@Ardnived
Ardnived deleted the chore/retire-atlas-status-chips branch November 26, 2026 17:53
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 26, 2026
Ardnived added a commit that referenced this pull request Nov 26, 2026
…no longer reads (#1291)

* chore(translations): drop the six atlas filter keys the rebuilt form no longer reads

filters.region (all four keys, so the whole group and its column),
filters.days.label and filters.language.empty leave sy-atlas-translations:
the widget's filter form reads none of them since sydevs/SahajAtlasWeb#514.
A generated migration drops the region columns; a data-only one sweeps the
two keys from every locale and version row, as #1284 did.

Closes #1286

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style: format the schema spec

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1284 — 5cb74aca Deployed Nov 26, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

chore(translations): drop the retired event.display.chip_starts, chip_ended and chip_full atlas keys

1 participant