Skip to content

fix(events): report create visibility and capacity in events get - #242

Merged
KalebCole merged 2 commits into
KalebCole:mainfrom
xonack:fix/event-get-capacity-visibility
Nov 12, 2026
Merged

KalebCole merged 2 commits into
KalebCole:mainfrom
xonack:fix/event-get-capacity-visibility

Conversation

@xonack

@xonack xonack commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • events get echoed raw visibility and guestLimit. Live getEventInfo has no guestLimit (create writes maxCapacity), and raw visibility is always "public" because create sends it that way for every event. A private event created with --guest-limit 2 read back as visibility: public, guestLimit: null.
  • Project visibility from isPublic (the field create sets for --visibility public) and fall back to maxCapacity when guestLimit is absent.

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: a private event with --guest-limit 2 now reads back private / 2.

🤖 Generated with Claude Code

events get echoed the raw "visibility" and "guestLimit" fields. Live
getEventInfo (observed 2026-09-29) has no guestLimit and stores the create
guest limit as maxCapacity, and "visibility" is always "public" because
create sends it that way for every event. A private event created with
--guest-limit 2 therefore read back as visibility public, guestLimit null.

Project visibility from isPublic (the field create sets for public events)
and fall back to maxCapacity when guestLimit is absent.

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

  • 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: b86707a5-8903-45e0-bfbc-706b34aa0fd5
  • 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

events get now reports product visibility from isPublic and capacity from
maxCapacity. The product contract still described those fields as raw
same-named projections.

Co-authored-by: Kaleb Cole <[email protected]>
@KalebCole
KalebCole merged commit 30bc3b1 into KalebCole:main Nov 12, 2026
3 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.

3 participants