Skip to content

chore(translations): drop the atlas's retired Share view keys - #1306

Merged
Ardnived merged 1 commit into
mainfrom
chore/drop-retired-share-keys
Nov 27, 2026
Merged

Ardnived merged 1 commit into
mainfrom
chore/drop-retired-share-keys

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • Drops share.title, share.title_class and common.errors.share_unavailable_class from sy-atlas-translations: the atlas widget no longer reads them.
  • A data-only migration sweeps the stored copy out of every locale and every version row, so the next save of any tab still passes additionalProperties: false.

Change outline

Contract — sy-atlas-translations schema

Three keys leave the global's schema, so the translators' forms stop asking for them.

 common.errors                              src/globals/SahajAtlasTranslations/translationsSchema.json
   …
   unavailable
-  share_unavailable_class
   no_classes
   …
 share
-  title
-  title_class
   native
   …

Flow — migration 20261127_210000_atlas_drop_retired_share_keys

A new data-only sweep that mirrors the earlier key drops (#1284, #1291, #1292). It runs on boot.

+up(db)
+  for each (group, keys) in { share: [title, title_class], common_errors: [share_unavailable_class] }
+    dropEnglishKey(db, { table: sy_atlas_translations, group, key })
+      main-row locales table and version-row locales table, every locale
+      guarded by jsonb_typeof = 'object', so a scalar column cannot abort the boot
+down()
+  no-op                      # the old schema declares the keys but requires none

Preview

No preview surface

Contract impact

src/payload-types.ts is regenerated (pnpm generate:types): the three keys leave the global's types. SahajAtlasWeb and WeMeditateWeb copy that file with pnpm types:cms, and re-sync it after this merges.

The consumer side already shipped. SahajAtlasWeb#540 is merged, and its RETIRING_KEYS entries leave in that repo's next translation sync (pnpm sync:translations --write, then delete the entries in src/config/translations.test.ts).

Migration

  • New migration: src/migrations/20261127_210000_atlas_drop_retired_share_keys.ts
  • Impact: data only, no DDL. Deletes the three keys from the share and common_errors JSON columns of the live and version locale rows, in every locale. Every other key is untouched.
  • Reversible: no restore, by design. down is a no-op, as in the earlier key drops, because the previous schema declares the keys but requires none, so a rolled-back database is one the old schema accepts.

Test results

  • Lean gate: ✓ lint, format, typecheck (src and tests), unit lane (294 files, 3924 tests)
  • Targeted specs: 62 passed — tests/unit/atlas-translations-schema.spec.ts and the new tests/int/atlas-drop-retired-share-keys.int.spec.ts
  • Build: N/A

Manual verification

  1. After the deploy, GET /api/globals/sy-atlas-translations?select[share]=true&select[common]=true with a client key returns none of the three keys.
  2. Save any tab of sy-atlas-translations in the admin: the save succeeds.

Notes for reviewer

Closes #1290

🤖 Generated with Claude Code

@railway-app

railway-app Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

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

Service Status Web Updated
SahajCloud ✅ Success (View Logs) Web Nov 27, 2026 at 7:15 pm UTC
1 service not affected by this PR
  • mailpit

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🤖 no session running
CI re-run 1 on 892d19d — infrastructure, not the change

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

@Ardnived
Ardnived merged commit d5a5583 into main Nov 27, 2026
11 of 13 checks passed
@Ardnived
Ardnived deleted the chore/drop-retired-share-keys branch November 27, 2026 19:37
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 27, 2026
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 27, 2026
- Sync the translation snapshot: Copy number and the share Email label
  now read `event.actions.copy_number` and `share.email`
  (sydevs/SahajCloud#1304), and the three keys sydevs/SahajCloud#1306
  dropped leave RETIRING_KEYS. Keys published ahead of #538 and #542 join
  PENDING_KEYS.
- tests/browser/skeleton.spec.ts measures the sign-up form, filters and
  calendar. It caught three header mismatches, now fixed: the sign-up
  form's reassurance line, the filters' close-button row, and the
  calendar's own controls in place of a Back-and-title header.

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

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1306 — 892d19d0 Deployed Nov 27, 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 atlas's retired Share view keys

1 participant