Repository navigation
cards time: public DTC events entry beside the guest invitation - #507
Open
alexeygrigorev wants to merge 2 commits into
Open
alexeygrigorev wants to merge 2 commits into
alexeygrigorev wants to merge 2 commits into
Conversation
The standalone public entry id is recorded on the Card (eventTime.googleEventIds), but it was never passed back to syncLumaCalendarEvents: publicCopyIds was read after the public key had been removed from the invitation ids, so it was always empty. A same-time rerun still found the entry by matching title, time, location and Luma URL, but a move matched nothing, inserted a second entry and left the old one live on the public calendar at the old time. The recorded id is now taken before the invitation ids are filtered and is passed to the public leg, which updates that entry in place. A recorded id that is no longer a standalone entry (gone, cancelled, or a legacy attendee copy of the guest invitation with guests or Zoom) is neither reused nor edited: the entry is matched or created as before. Tests: course-event-slots moves a live cohort entry in place (same id, no second entry) beside the existing cancelled-copy replacement.
SOP sop.events.luma.creating-events-on-google-calendar names `dataops cards time` as the one route to the calendars and promises the DataTalks.Club events calendar for every live event. Only the silent Luma path (a course Q&A or Launch without a hold invitation) wrote the standalone public entry; podcast and other guest-invite Cards with a Luma link got the private invitation on orin@ and Alexey personal and nothing public. Every Luma-linked Card now runs the public leg beside its invitation (or its silent copies): one standalone entry on the DTC events calendar in SOP format - event title, real event time, location https://www.youtube.com/datatalksclub, description = subtitle + stream line + Luma link - with no guests, no Zoom and no conference data, written with sendUpdates=none. The legs are merged: the Card is synced and its invite Tasks close only when the public entry is live too. A deferred public leg keeps the Card deferred with its reason, and a rerun completes it without inviting anyone again. A guest-invite Card's description holds internal scheduling notes and is never published: the public subtitle is the Luma event's own (the first line of its public og:description). While Luma gives none, the public leg waits. The Card links exactly one DTC events row, so `cards invite list` shows it live. The hold itself keeps the invitation ids only, so releasing or expiring a hold never has to touch the public calendar. Tests: card-public-entry (SOP format and separation from the invitation, rerun and move in place, deferred public leg heals on rerun, Luma subtitle required, confirm-hold path, legacy attendee copy never reused, hand-made entry with guests left untouched, subtitle reader). The shared Google fake serves the Luma page; the CLI prints the public entry apart from the invitation.
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.
Why
SOP
sop.events.luma.creating-events-on-google-calendarnamesdataops cards timeas the one route to the calendars and promises the DataTalks.Club events calendar for every live event. In practice only the silent Luma path (a course Q&A or Launch without a hold invitation) wrote the standalone public entry. Podcast and other guest-invite Cards with a Luma link got the private invitation on orin@ and Alexey personal, and nothing on the public calendar — so the Task "Create event in the DTC community Calendar" could not be completed through the documented command.What changes
Public entry beside the guest invitation. Every Luma-linked Card now runs the public leg beside its invitation (or its silent copies): one standalone entry on the DTC events calendar in SOP format — event title, real event time, location
https://www.youtube.com/datatalksclub, description = subtitle +Stream:line +Luma:link — with no guests, no Zoom and no conference data, written withsendUpdates=none.cards invite listshows it live.Subtitle source. A guest-invite Card's description holds internal scheduling notes (guest mail ids, work email) and is never published. The public subtitle is the Luma event's own subtitle (first line of its public
og:description). While Luma gives none, the public leg waits rather than publish the Card description or an entry without a subtitle.Move in place (pre-existing bug, separate commit). The recorded public entry id was never passed back to the public leg —
publicCopyIdswas read after the public key had been removed — so moving a Luma Card inserted a second public entry and left the old one live at the old time. The recorded id is now reused and the entry is updated in place. A recorded id that is no longer a standalone entry (gone, cancelled, or a legacy attendee copy of the invitation) is neither reused nor edited.Tests
backend/tests/card-public-entry.test.ts(new): SOP format and separation from the invitation, rerun and move in place, deferred public leg heals on rerun, Luma subtitle required, confirm-hold path, legacy attendee copy never reused, hand-made entry with guests left untouched, subtitle reader.course-event-slots: a live cohort entry now moves in place (was pinning the orphan).public entry:apart frominvite:.card-time,cards-invite,cards-invitationpass. (Running whole suites in one go on this Node 24 host hits a test-runner flake unrelated to the change — files cancelled with "Promise resolution is still pending" — so the CI run on this head is the full-suite evidence.)Not changed
dataops event approve/reschedule/releaseandcalendar moveon a Card-backed hold write through the Event lifecycle service and still produce only the private invitation; acards timererun creates or moves the public entry in place. Flagged for a follow-up.cards timeroute (existing rule); production podcast Cards carry a hold.