Skip to content

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

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

Ardnived merged 2 commits into
mainfrom
chore/retire-atlas-filter-keys

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

Change outline

Contract — the sy-atlas-translations schema

 filters                                         src/globals/SahajAtlasTranslations/translationsSchema.json
   days
-    label                                       # "Day of week": the form asks with short_label ("Day")
     short_label
   language
     label · all
-    empty                                       # "No languages available": the question is hidden instead
   dates
-  region                                        # the region list is gone; the place is a tag
-    label · all · search · empty
   more

All ten locale seeds drop the same keys. Their _meta.schema_version now counts 43 leaf groups. src/payload-types.ts is regenerated, and SyAtlasTranslationsFiltersRegionStrings is gone.

Contract — migration tables

Two migrations, the same pair #1268 and #1284 used:

-- 20261126_224421_atlas_drop_filters_region.ts (generated DDL)
ALTER TABLE sy_atlas_translations_locales     DROP COLUMN filters_region
ALTER TABLE _sy_atlas_translations_v_locales  DROP COLUMN version_filters_region
-- 20261126_224500_atlas_drop_filter_labels.ts (data only; .json is the prior snapshot re-stamped)
dropEnglishKey(filters_days, 'label'); dropEnglishKey(filters_language, 'empty')   -- every locale and version row

Preview

No preview surface

Contract impact

  • SahajAtlasWeb: feat(atlas): atlas-manager role + custom nav sidebar #514 already stopped reading all six keys, and it is merged and deployed (Workers Builds succeeded on eda30e17). The atlas snapshot still holds them as RETIRING_KEYS against this PR's issue. After this deploys, a follow-up in SahajAtlasWeb drops them from translations.en.json by hand (a full sync is blocked until chore(infra): migrate host to Railway + DB to Postgres #466) and deletes those six entries.
  • Generated types: pnpm types:cms consumers lose the optional filters.region group and two optional keys. WeMeditateWeb reads none of them.

Migration

  • New migrations:
    • src/migrations/20261126_224421_atlas_drop_filters_region.ts
    • src/migrations/20261126_224500_atlas_drop_filter_labels.ts
  • Impact:
    • Drops the filters_region jsonb column from both sy_atlas_translations locale tables.
    • Sweeps the two keys out of filters_days and filters_language, in every locale and version row.
  • Reversible:

Test results

  • Lean gate: ✓ lint, format, typecheck (src and tests), unit lane (294 files, 3924 tests)
  • Targeted specs: tests/int/atlas-drop-filter-labels.int.spec.ts (new), translations-globals, translations-english-defaults, tests/unit/atlas-translations-schema.spec.ts, translations-seed-meta.spec.ts and seeds/tests/atlas-translations-import.test.ts: 125 passed
  • Build: N/A

Notes for reviewer

Closes #1286

🤖 Generated with Claude Code

Ardnived and others added 2 commits November 26, 2026 15:45
…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]>
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-1291 environment in sahajcloud

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

@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1291 November 26, 2026 22:48 Destroyed
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🤖 no session running

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:14Z review-pr · attempt 1 · session · timed out

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

@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 9079e71 into main Nov 26, 2026
11 of 12 checks passed
@Ardnived
Ardnived deleted the chore/retire-atlas-filter-keys branch November 26, 2026 23:14
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Done in SYDevelopers Technical Roadmap Nov 26, 2026
Ardnived added a commit that referenced this pull request Nov 26, 2026
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]>
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 26, 2026
sydevs/SahajCloud#1291 (deployed) removed filters.region.*, filters.days.label
and filters.language.empty. They leave translations.en.json by hand, as #507
did, since a full sync is blocked until #466, and leave RETIRING_KEYS with them.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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 added a commit that referenced this pull request Nov 27, 2026
…s key (#1300)

The atlas first screen (sydevs/SahajAtlasWeb#531, merged) offers the
visitor's city through countries.near_city instead, so translators were
still asked to fill "Looking for classes near %{city}?" for nothing.
title was the group's only key, so search.nearby_prompt leaves the schema,
the ten seed files and the generated types whole, and a generated
migration drops its column on the main and version tables, as #1291 did
for filters.region.

Closes #1296

Co-authored-by: Claude Opus 5.5 <[email protected]>
@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-1291 — a372ffb6 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 six atlas filter keys the rebuilt form no longer reads

1 participant