Skip to content

cards time: public DTC events entry beside the guest invitation - #507

Open
alexeygrigorev wants to merge 2 commits into
mainfrom
hub/intake-1b007e35ead32843fbda349e423759a5d3a069f2c347e2e7f3d5109e5f26083d
Open

alexeygrigorev wants to merge 2 commits into
mainfrom
hub/intake-1b007e35ead32843fbda349e423759a5d3a069f2c347e2e7f3d5109e5f26083d

Conversation

@alexeygrigorev

Copy link
Copy Markdown
Member

Why

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. 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 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; a rerun completes it without inviting anyone again.
  • The Card links exactly one DTC events row, so cards invite list shows it live.
  • The hold keeps the invitation ids only, so releasing or expiring a hold never has to touch the public calendar.

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 — publicCopyIds was 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).
  • Shared Google fake serves the Luma page; CLI prints public entry: apart from invite:.
  • Local: typecheck clean; all 21 backend test files touching card time / holds / invites / Luma pass in small batches; CLI card-time, cards-invite, cards-invitation pass. (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/release and calendar move on a Card-backed hold write through the Event lifecycle service and still produce only the private invitation; a cards time rerun creates or moves the public entry in place. Flagged for a follow-up.
  • A Luma Card without any hold is still refused guests by the cards time route (existing rule); production podcast Cards carry a hold.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant