Skip to content

feat(events): add events delete for zero-guest events - #250

Merged
KalebCole merged 4 commits into
mainfrom
cursor/events-delete-823f
Nov 13, 2026
Merged

KalebCole merged 4 commits into
mainfrom
cursor/events-delete-823f

Conversation

@KalebCole

Copy link
Copy Markdown
Owner

Same change as #244. That pull request comes from a fork, and GitHub Actions leaves its workflows waiting for a maintainer to approve them, so checks never start. This branch is in this repository so Verify Native Release can run.

Summary

  • events cancel requires guests. Events with no guests had no CLI teardown.
  • Add events delete <event-id>: re-read getEventInfo, require ownership, PUBLISHED, and guestCount == 0, dry-run preview, TTY confirmation unless --force, and one deleteEvent dispatch with no retry. Events with guests get EVENT_PRECONDITION_FAILED pointing at events cancel.

Verification

  • go test ./... and go test -race ./... pass locally.
Open in Web Open in Cursor 

`events cancel` refuses events with no guests because it mirrors
Partiful's web client, which offers "Cancel" only when guestCount > 0 and
otherwise offers "Delete event for everyone?". That left no CLI path to
remove an empty event.

Add `partiful events delete <event-id> [--dry-run] [--force] [--no-input]`,
which calls the Firebase callable `deleteEvent` with `{eventId}` through the
existing callEventMutation helper. It re-reads getEventInfo and mirrors the
cancel preconditions with the guest gate inverted: caller in ownerIds,
status PUBLISHED, guestCount present and exactly 0. There is no future-start
requirement. An event with guests returns EVENT_PRECONDITION_FAILED pointing
to `events cancel`, so cancel and delete stay disjoint like the web UI.

The command is destructive: TTY confirmation unless --force, dry-run
preview without dispatch, one attempt with no retry, and success output
`{"eventId": "...", "submitted": true}`. Catalog lists, docs, the smoke
script, and the agent skill are updated to include events.delete.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 12, 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: 3288b453-8b2e-41a3-b200-11c74c9dc145
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T22:32:17.023134Z ba079cb PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-11-13 00:44 UTC

Preserve events.delete and chip-in RSVP contracts, and advance the combined product baseline to 2026-11-12.2 with regenerated goldens.
@KalebCole
KalebCole merged commit c39931a into main Nov 13, 2026
3 checks passed

Copy link
Copy Markdown
Owner Author

Thanks for the PR, @xonack! We're merging it with a few additions on top:

  • Added the delete endpoint to the OpenAPI spec, with evidence notes
  • Added a y/N confirmation (or --force) before deleting, like other destructive commands
  • Added dry-run and send-once checks
  • Added schema and error-mapping goldens and bumped the product contract revision

Your commits are kept as-is. Really appreciate it!

@KalebCole
KalebCole deleted the cursor/events-delete-823f branch November 14, 2026 22:35
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