Skip to content

chore(translations): drop the eight retired event-worded atlas keys - #1292

Merged
Ardnived merged 2 commits into
mainfrom
chore/atlas-drop-event-keys
Nov 26, 2026
Merged

Ardnived merged 2 commits into
mainfrom
chore/atlas-drop-event-keys

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Change outline

Contract — sy-atlas-translations loses eight keys

 common.errors                                  src/globals/SahajAtlasTranslations/translationsSchema.json
-  share_unavailable, no_events, near_city
 search.results
-  no_nearby
 filters.chrome
-  no_results
 event.display
-  event_ended, event_full, type_oneoff

The replacements' descriptions drop their "Replaces …" notes. The ten seed files and src/payload-types.ts lose the same keys.

Behaviour — the stored copy is swept

+20261126_230014_atlas_drop_event_worded_keys.up      src/migrations/
+  for each group (common_errors, search_results, filters_chrome, event_display)
+    dropEnglishKey on the main and every version row, every locale
+  down: restores nothing (the old schema declares the keys but requires none)

Each group declares additionalProperties: false, so a leftover key would refuse every later save of the global. The .json is the prior snapshot re-stamped, since there is no DDL.

Preview

Contract impact

src/payload-types.ts loses the eight keys. Consumer: SahajAtlasWeb, whose snapshot still holds them and lists them in RETIRING_KEYS. A follow-up there drops both by hand once this deploys, while the full sync stays blocked on SahajAtlasWeb#466.

Migration

  • New migration: src/migrations/20261126_230014_atlas_drop_event_worded_keys.ts
  • Impact: data only. Removes eight keys from the common_errors, search_results, filters_chrome and event_display jsonb columns of sy_atlas_translations_locales and _sy_atlas_translations_v_locales.
  • Reversible: no. down restores nothing. The dropped copy is the old "event" wording, which nothing renders.

Test results

  • Lean gate: ✓ (lint, format, typecheck, 3924 unit tests)
  • Targeted specs: new atlas-drop-event-worded-keys int spec (2 passed: a leftover key refuses a save, and the sweep fixes it); atlas-drop-status-chips, translations-globals, translations-english-defaults pass
  • Build: N/A (CI)

Notes for reviewer

  • Self-review: /code-review medium.
  • Dismissed: "carry the other locales' text into the new keys with moveKey." No: the meaning changed ("event" → "class"), which is why the keys are new. Copying would label stale wording as a translation of the new line. Only English is switched on.
  • Dismissed: "the widget may still read the old keys." I checked that the live sahajatlas.com bundle reads class_full and its siblings.
  • Dismissed: trailing comma in src/migrations/index.ts. It matches the chore(translations): drop the retired event.display.chip_starts, chip_ended and chip_full atlas keys #1284 entry above it.

🤖 Generated with Claude Code

The widget reads their class-worded replacements (#1289) since
sydevs/SahajAtlasWeb#517, so translators were still asked to fill
common.errors.share_unavailable, no_events and near_city,
search.results.no_nearby, filters.chrome.no_results, and
event.display.event_ended, event_full and type_oneoff for nothing.

Removes them from the schema, the ten seed files and the generated types,
and adds a data migration sweeping the stored copy out of each group's
column on the main and every version row, since each group declares
additionalProperties: false and a leftover would refuse every later save.
down restores nothing: the old schema declares the keys but requires none.
The replacements' descriptions drop their "Replaces" notes, and the strict
budget spec keeps class_full alone.

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

railway-app Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

Service Status Web Updated
SahajCloud ✅ Success (View Logs) Web Nov 26, 2026 at 11:36 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
conflict held since 23:14Z, waiting for the base to settle

recent dispatches
  • 14:40Z review-pr · attempt 3 · session · done
  • 14:40Z review-pr · attempt 3 · session
  • 04:46Z review-pr · attempt 2 · session · timed out
  • 04:46Z review-pr · attempt 2 · session
  • 23:36Z review-pr · attempt 1 · session · timed out

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

Orders the sweep after #1291's two migrations and re-stamps its snapshot from
20261126_224500_atlas_drop_filter_labels.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1292 November 26, 2026 23:23 Destroyed
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 26, 2026
@Ardnived
Ardnived merged commit e694a94 into main Nov 26, 2026
11 checks passed
@Ardnived
Ardnived deleted the chore/atlas-drop-event-keys branch November 26, 2026 23:37
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Done in SYDevelopers Technical Roadmap Nov 26, 2026
sydevs-dispatcher Bot pushed a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 26, 2026
Ardnived pushed a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 27, 2026
* chore(contracts): re-sync from sydevs/SahajCloud#1291

* chore(contracts): re-sync from sydevs/SahajCloud#1288

* chore(contracts): re-sync from sydevs/SahajCloud#1292

* chore(contracts): re-sync from sydevs/SahajCloud#1293

* chore(contracts): re-sync from sydevs/SahajCloud#1294

* chore(contracts): re-sync from sydevs/SahajCloud#1295

* chore(contracts): re-sync from sydevs/SahajCloud#1298

---------

Co-authored-by: sydevs-bot <[email protected]>
@sydevs-dispatcher sydevs-dispatcher Bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 27, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026
@Ardnived Ardnived removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1292 — 07f321b9 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.

1 participant