Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 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. Comment |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ab716d0b7c
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ShowActivityTimestamps: true, | ||
| DisplayInviteButton: true, | ||
| Visibility: "public", | ||
| Visibility: input.Visibility, |
There was a problem hiding this comment.
Keep the protocol visibility field fixed to public
For the default input and for --visibility private, this now serializes "visibility":"private". The reviewed create-event schema constrains that transport field to the constant "public" (spec/partiful.openapi.json:2325-2328), while the product contract specifies that private/public behavior is controlled separately by omitting or sending isPublic: true (docs/CLI-PRODUCT-CONTRACT.md:513). Consequently, default private event creations no longer match the reviewed remote request contract and can be rejected or handled differently by the callable endpoint.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The review matches the code on current main. buildCreateEventDraft still sets the transport visibility field to the constant "public", and the product choice is isPublic: --visibility public sends isPublic: true, while private omits isPublic. That is the reviewed create contract in docs/CLI-PRODUCT-CONTRACT.md (public sends isPublic: true; private omits it; the separate first-party visibility field stays "public").
Sending input.Visibility would put "private" on that transport field and no longer match the reviewed request. Main already preserves the requested product visibility the way the contract describes, so this branch should not be updated onto main. The events-get readback gap (raw visibility is always "public", and capacity is maxCapacity rather than guestLimit) is the separate change in #242.
|
Triage bot: held. This has merge conflicts with main, and it changes the default create visibility from public to private, a public behavior change while #211 (visibility lifecycle) is still research. Needs: a rebase on main and Kaleb's call on the default. |
Summary
Verification