Repository navigation
feat(settings): the archive carries a meeting's rooms (2.24) - #700
Merged
Merged
Conversation
Parallel rooms R4: a part held in several rooms is one item with a row per room, which 2.23 archives cannot carry. - schedule-rooms (each programme's rooms, the main one by key) and programme-part-rooms (each part's rows with their people and conflict). - programme-part-assignments also writes such a part's other rooms as one copy per room, the shape older versions read, so a restore by one loses nobody (user, 2026-11-28); their ids are the rows' negated. - A 2.24 restore skips those copies and brings the rooms and rows back (importMeetingRooms, last of the meetings). A 2.23 archive restores as before.
Approved by the user (2026-11-28): archive-files.json gains schedule-rooms and programme-part-rooms; the archive's content and its restore are unchanged for the fixture, which holds no part in several rooms.
#700 review: an older restore can put a copy's row in another room than its track (a « Salle B » copy before its main room's, in the file). A 2.24 restore then upserted the archive's row beside it, leaving the copy held in two rooms, its person in both. importMeetingRooms now drops a restored part's rows the archive does not hold before writing the archive's. The round trip reverses the parts file to reproduce that order.
…room A 2.23 or older archive brings a part held in several rooms as one copy per room. When a copy in another room came first in the file, it named the meeting's still unnamed main room after itself and went in; the main room's copy then renamed the room back, leaving the other copy in the main room. The restore now writes main-room copies first. The round trip covers an older archive whose « Salle B » copy comes first.
… versions An older version restores programme-part-assignments in file order, and a copy in another room met before its main room's names the meeting's still unnamed main room after itself (#700 review: 31 rows misplaced when a 2.23 app restored a 2.24 file). The export now writes every copy whose trackOrder is above 1 after the rest. The round trip's set-up moves into helpers (lint).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parallel rooms R4, PR 6. It ships before PR 7, which creates meetings whose parts hold a row per room, something a 2.23 archive cannot carry.
Export (2.24):
schedule-rooms.ndjson: each programme's rooms (name, the main room'skey, order, schedule).programme-part-rooms.ndjson: each part's room rows, with their people and conflict.programme-part-assignments.ndjsonkeeps its shape. A part held in several rooms is also written as one copy per room (as the user decided, 2026-11-28), the shape older versions read, so a restore by one loses nobody.track(« Salle principale » for an unnamed main room) and its place astrackOrder, with that room's people.Import:
importMeetingRooms(new, last of the meeting steps) gives the main room its archived name, brings the other rooms back in order, and writes each part's rows with their people.ARCHIVE_VERSION2.24, with its note indata-transfer.type.ts, and the two files inENTITY_FILES.Reference:
archive-files.jsongainsschedule-roomsandprogramme-part-rooms. The user approved this.archive-export.jsonandarchive-after-import.jsondon't move: the fixture holds no part in several rooms, so its copies and content are unchanged.Tests:
import-meeting-roomsintegration, a full round trip: the rooms fixture's meeting with a row per room (Paul, main room; Marc, « Salle B ») is exported, then restored in another congregation.Unit (6,984) and integration (195 files) pass, as do typecheck and guards.