Skip to content

fix(guests): list host guests from the guests subcollection - #249

Merged
KalebCole merged 4 commits into
mainfrom
cursor/guests-host-fallback-823f
Nov 13, 2026
Merged

KalebCole merged 4 commits into
mainfrom
cursor/guests-host-fallback-823f

Conversation

@KalebCole

Copy link
Copy Markdown
Owner

Same change as #243. That pull request comes from a fork, and GitHub Actions leaves its workflows waiting for a maintainer to approve them, so checks never start. This branch is in this repository so Verify Native Release can run.

Summary

  • getGuests rejects the event host with HTTP 400 User is host / FAILED_PRECONDITION, so guests list failed with GUESTS_PROTOCOL_CHANGED on events the caller hosts.
  • On exactly that first-page rejection, read events/{eventId}/guests from Firestore and decode the reviewed guest subset: name, status, count, userId, and anchorGuestId. Unknown document shapes still fail closed.

Verification

  • go test ./... and go test -race ./... pass locally.

The populated-guest field names follow the getGuests payload and were only live-checked on an empty host list in the original pull request. A shape that does not match still fails closed.

Open in Web Open in Cursor 

getGuests now rejects the event host with HTTP 400
{"error":{"message":"User is host","status":"FAILED_PRECONDITION"}}
(observed 2026-09-29), so guests list failed with GUESTS_PROTOCOL_CHANGED for
every event the caller hosts, which is the only case the command allows.

On exactly that rejection, read events/{eventId}/guests from Firestore (the
same subcollection blasts already reads as host) and decode the reviewed guest
subset: name, status, count, userId, anchorGuestId. Unknown document shapes
still fail closed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1871f5b5-9594-41ff-91a0-6f801e4f36b0
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T22:31:52.761394Z 9c9fb70 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-11-13 01:05 UTC

Preserve host guest fallback schemas alongside main's deletion and chip-in additions. Advance the reviewed product contract to 2026-11-12.3 and regenerate goldens while retaining bounded Firestore traversal.
@KalebCole
KalebCole merged commit bf4b714 into main Nov 13, 2026
3 checks passed

Copy link
Copy Markdown
Owner Author

Thanks for the PR, @xonack! We merged it with a few additions on top:

  • Added a safety check so guest list paging stops with an error if Partiful repeats a page or the list goes past 10,000 guests, so it can't loop forever
  • Added paging tests for host guest lists and blasts
  • Added the guest list endpoints to the OpenAPI spec, with evidence notes
  • Brought it up to date with main, refreshed the goldens, and bumped the contract revision

Your commits are kept as-is. Really appreciate it!

@KalebCole
KalebCole deleted the cursor/guests-host-fallback-823f branch November 14, 2026 22:35
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.

2 participants