Skip to content

fix(events): repair events get — /getEvent retired, use /getEventInfo - #59

Merged
KalebCole merged 1 commit into
mainfrom
fix/get-event-404
Jul 5, 2026
Merged

KalebCole merged 1 commit into
mainfrom
fix/get-event-404

Conversation

@KalebCole

@KalebCole KalebCole commented Jul 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #57.

partiful events get — and every helper that fetches a single event (+clone, +share, +export, the guests list header, and the events cancel confirmation) — returned 404 for every event. Partiful retired the /getEvent API endpoint. The current endpoint is /getEventInfo.

Root cause

Diagnosed empirically (not guessed): probing the live API, /getEvent 404s for all event IDs, while /getEventInfo returns 200 with the identical response envelope the CLI already consumes — result.data.event with title, startDate, endDate, status, timezone, guestStatusCounts, displaySettings, description, etc. Verified for both hosted and guest events.

Changes

Endpoint string /getEvent → /getEventInfo at all 8 live call sites:

  • src/commands/events.js (get, +clone source-fetch, cancel confirmation) + the events get --dry-run label
  • src/commands/guests.js (event header)
  • src/helpers/share.js, src/helpers/clone.js, src/helpers/export.js

No consumer logic changed — only the endpoint. (Historical docs/plans/*.md references are intentionally left as-is.)

Testing

  • Suite green (106); updated the one integration assertion on the dry-run endpoint label.
  • Live-verified after the fix: events get returns real data on both a hosted and a guest event (both previously 404'd), and the dependent +export path succeeds.

Known follow-up (out of scope)

For guest events (ones you don't host), /getEventInfo returns location as a nested locationInfo object rather than the flat location/address fields — so events get on a guest event currently shows location: null even when an approximate location exists. This is not a regression (the endpoint 404'd entirely before) and there's no crash — the existing || null defaults absorb it. A flat-field mapping would need to be consumer-specific (e.g. +clone should not inherit a vague "Seattle, WA" approximation), so it belongs in its own change. Tracked in #60.

…/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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Jul 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@KalebCole, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 52 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 251272bf-0798-43c7-8cbf-a7754983297d

📥 Commits

Reviewing files that changed from the base of the PR and between a4bb263 and 7293946.

📒 Files selected for processing (6)
  • src/commands/events.js
  • src/commands/guests.js
  • src/helpers/clone.js
  • src/helpers/export.js
  • src/helpers/share.js
  • tests/events-integration.test.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/get-event-404

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

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@KalebCole
KalebCole merged commit a33b3b2 into main Jul 5, 2026
1 check passed
@KalebCole
KalebCole deleted the fix/get-event-404 branch July 5, 2026 21:43
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.

bug(events): events get <id> returns 404 for all events (/getEvent endpoint)

1 participant