Skip to content

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

Merged
KalebCole merged 1 commit into
KalebCole:mainfrom
xonack:fix/guests-list-host-fallback
Nov 13, 2026
Merged

KalebCole merged 1 commit into
KalebCole:mainfrom
xonack:fix/guests-list-host-fallback

Conversation

@xonack

@xonack xonack commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • getGuests rejects the event host with HTTP 400 {"error":{"message":"User is host","status":"FAILED_PRECONDITION"}}, so guests list failed with GUESTS_PROTOCOL_CHANGED on every event the caller hosts (the only case the command allows).
  • On exactly that rejection, read events/{eventId}/guests from Firestore (the subcollection blasts send already reads as host) and decode the reviewed guest subset: name, status, count, userId, anchorGuestId. Unknown document shapes still fail closed.

Caveat

  • Live-verified only on a zero-guest event (empty list returned). The Firestore guest field names mirror the getGuests payload fields and are unverified on a populated event; I will follow up after the first real event with guests.

Verification

  • go vet ./..., go test ./... pass (new test fails without the fix)
  • Live check on 2026-09-29 against a real account with a throwaway event: empty host guest list returned instead of the protocol error.

🤖 Generated with Claude Code

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 Sep 29, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 581d664c-94be-463e-b096-767c729db0fa


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

Comment @coderabbitai help to get the list of available commands.

@KalebCole
KalebCole merged commit d3d0dc4 into KalebCole:main Nov 13, 2026
4 checks passed
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