Repository navigation
fix(events): repair events get — /getEvent retired, use /getEventInfo - #59
Conversation
…/getEventInfo
`events get` (and every helper that fetches a single event: clone, share,
export, guests list header, cancel confirmation) returned 404 for all events.
Partiful retired the `/getEvent` API endpoint; the current endpoint is
`/getEventInfo`.
Verified empirically against the live API: `/getEventInfo` returns the exact
same envelope shape the CLI already consumes — `result.data.event` with
title, startDate, endDate, location, address, description, status, timezone,
guestStatusCounts, etc. — for both hosted and guest events. No consumer code
changes were needed, only the endpoint string.
Replaced all 8 call sites (events.js get/clone/cancel, guests.js,
helpers/{share,clone,export}.js) and the `events get --dry-run` endpoint
label. Updated the integration test asserting the dry-run endpoint.
Verified after fix: `events get`, `+export`, `+clone` succeed against real
events that previously 404'd.
Closes #57
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 52 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
Closes #57.
partiful events get— and every helper that fetches a single event (+clone,+share,+export, theguests listheader, and theevents cancelconfirmation) — returned 404 for every event. Partiful retired the/getEventAPI endpoint. The current endpoint is/getEventInfo.Root cause
Diagnosed empirically (not guessed): probing the live API,
/getEvent404s for all event IDs, while/getEventInforeturns200with the identical response envelope the CLI already consumes —result.data.eventwithtitle,startDate,endDate,status,timezone,guestStatusCounts,displaySettings,description, etc. Verified for both hosted and guest events.Changes
Endpoint string
/getEvent→/getEventInfoat all 8 live call sites:src/commands/events.js(get, +clone source-fetch, cancel confirmation) + theevents get --dry-runlabelsrc/commands/guests.js(event header)src/helpers/share.js,src/helpers/clone.js,src/helpers/export.jsNo consumer logic changed — only the endpoint. (Historical
docs/plans/*.mdreferences are intentionally left as-is.)Testing
events getreturns real data on both a hosted and a guest event (both previously 404'd), and the dependent+exportpath succeeds.Known follow-up (out of scope)
For guest events (ones you don't host),
/getEventInforeturns location as a nestedlocationInfoobject rather than the flatlocation/addressfields — soevents geton a guest event currently showslocation: nulleven when an approximate location exists. This is not a regression (the endpoint 404'd entirely before) and there's no crash — the existing|| nulldefaults absorb it. A flat-field mapping would need to be consumer-specific (e.g.+cloneshould not inherit a vague "Seattle, WA" approximation), so it belongs in its own change. Tracked in #60.