docs(release): record service-sessions-English deploy + prod feed language discovery + stale-suite audit

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-10-21 00:03:14 +02:00
1 parent 68de851b28
commit 7776145a77
3 files changed
+50 -3

No files matched your search

+1 -1
View File
@@ -165,7 +165,7 @@ Unpaid sponsors are hidden from non-admins (RLS).
| `capacity` | `integer` | nullable (not enforced) |
| `level` | `text` | nullable — free-text level (100/200/300 or Beginner/…), imported |
| `area` | `text` | nullable — free-text topic/area, imported |
| `language` | `text` | nullable — delivery language, imported from the Sessionize "Language" session category (custom fields must be enabled on the endpoint) or the Excel `Language` column; see `20261021090000_session_language.sql` |
| `language` | `text` | nullable — delivery language, imported from the Sessionize "Language" session category (custom fields must be enabled on the endpoint) or the Excel `Language` column; see `20261021090000_session_language.sql`. Service sessions are always forced to `English` (`20261021103000_service_language_english.sql`) |
| `average_feedback` | `numeric` | maintained by `submit_feedback` |
| `ai_generated_feedback` | `text` | AI-feedback state (stub) |
| `material_path` | `text` | nullable — storage object path for session material |
+18 -2
View File
@@ -584,15 +584,31 @@ don't publish it never erase it. `get_agenda()` returns it (drop + recreate —
OUT shape changed — plus re-grants). Seed sets English for all talks + German
for the two German-titled sessions so the feature is demoable locally.
**Service sessions are always English.** Product rule added by
`20261021103000_service_language_english.sql`: both sync functions force
`language = 'English'` for any session flagged `is_service_session` (covers
Sessionize, GridSmart and Excel paths — it overrides even an explicit tag);
existing service rows were backfilled, seed mirrors the rule, and the suite
grew to 11 assertions.
**2026-10-21 production update:** the live prod GridSmart feed for
Community Day 2026 turned out to carry per-session language values — the next
sync wrote `Deutsch` ×10 + `English` ×12 on regular talks (services English by
the forced rule), so the agenda filter/pills are live on real data without any
organizer action. The "Language category + custom fields" precondition above
applies only to Sessionize endpoints.
**UI.** Agenda gains a third filter dropdown ("All languages") and a 🌐 pill in
SessionDetail; APPE Admin's Sessions search + cell subtitle include language.
Free-text values are kept verbatim ("German" ≠ "DE" ≠ "Deutsch" are distinct
filter entries) — normalization to ISO codes is a possible follow-up.
**Tests.** `supabase/tests/session_language_tests.sql` (8 assertions),
**Tests.** `supabase/tests/session_language_tests.sql` (11 assertions incl.
the service-English rule),
`apps/sidecar/tests/sessionize-transform.test.js` (7) + a Language-column case
in `transform-excel.test.js`; verified against the real Sessionize demo payload
(10/11 sessions get a language, service sessions stay null).
(10/11 sessions get a language, service sessions stay null → now forced
English by the RPCs).
## Known work (open as of 2026-10-19)
+31
View File
@@ -174,3 +174,34 @@ frontends).
Excel with a Language column is imported. Both paths are live.
- `supabase/seed.sql` and the new test files were **not** copied to the VM
(repo-only, consistent with prior deploys).
# Follow-up 2: service sessions forced to English (deployed 2026-10-21 23:45 CEST)
Product rule: sessions in `service_session` slots are always delivered in
English. Commit `1f4b9d2` — **database-only change, no image rebuilds**.
- **Migration** `20261021103000_service_language_english.sql`: both sync
functions force `language = 'English'` for `is_service_session` items (single
injection point after the language parse — byte-identical bodies otherwise,
proven by dumping the live prod definitions post-apply and diffing against
the local tested ones: identical) + backfill of existing service rows.
Applied `psql -1 -v ON_ERROR_STOP=1` → `UPDATE 10` (all 10 prod service
sessions), every other count unchanged (32/120/115/654/0).
- **Backup** `/home/APPE/convivo-backups/szeng-20261020T214520Z`: pg_dump,
before/after counts, source md5, function defs before/after, migration
output. No rollback tags needed (DB-only; the dump is the rollback).
- **Live verification:** real `POST /run` on the active event → success, and
afterwards service sessions are 10/10 English. `get_agenda` through Kong:
32 rows, `language` present on all, service rows all `English`, overall
distribution `Deutsch`/`English` — the **GridSmart feed turned out to carry
real per-session language values** overnight (12 English + 10 Deutsch
regular talks), so the feature is live on real data. Both sites → 200.
- **Test suites** (fresh `supabase db reset`): `session_language_tests.sql`
now 11/11 incl. three service cases. Full battery revealed **pre-existing
stale suites unrelated to language** (present since the 2026-10-20 features
or earlier, not re-run at the time): `leaderboard_tests.sql` (partially
fixed here: event-feedback +5 expectation + auto-connect pair collision;
one stale auto-connect points expectation remains), `assigned_speaker_role`
(missing service_role JWT setup), `delete_event_schedule` and
`registration_ticket_merge` (fixtures collide with seeded data),
`speaker_portal` (stale talk-set expectation). All others green.