Skip to content

fix(ost): restore single-environment event metadata - #419

Merged
rleikis merged 2 commits into
developfrom
fix/restore-ost-event-metadata
Sep 25, 2026
Merged

rleikis merged 2 commits into
developfrom
fix/restore-ost-event-metadata

Conversation

@rleikis

@rleikis rleikis commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #418. Preserve OpenSplitTime event metadata when only production or staging is configured, instead of resetting it on event reload.

Changes

  • Accept a valid single-environment EventMeta record and fill the missing environment with empty defaults.
  • Cover production-only and staging-only restoration, malformed metadata, and cross-environment token isolation.

Testing

  • pnpm exec vitest run src/main/database/tests/connect-lifecycle-db.test.ts src/main/services/tests/opensplittime.test.ts --maxWorkers=1 (99 passed)
  • pnpm test -- --maxWorkers=1 (839 passed)
  • pnpm run typecheck
  • pnpm run lint
  • git diff --check

@rleikis rleikis self-assigned this Sep 25, 2026
@rleikis rleikis added the back-end core-classes and databases label Sep 25, 2026
@rleikis
rleikis merged commit e71a2fa into develop Sep 25, 2026
1 check passed
@rleikis
rleikis deleted the fix/restore-ost-event-metadata branch September 25, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

back-end core-classes and databases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Production only OST metadata is considered bad

1 participant