Skip to content

feat(events): add hostIds to list and get - #264

Open
KalebCole wants to merge 1 commit into
mainfrom
feat/events-host-ids
Open

KalebCole wants to merge 1 commit into
mainfrom
feat/events-host-ids

Conversation

@KalebCole

Copy link
Copy Markdown
Owner

🤖 Kaleb's Grok Bot:

Summary

Kaleb approved printing a JSON of host IDs. hostIds is copied from the same-call ownerIds already parsed from HomePageEvent / EventInfo. Names are not included; no research-only hostName is projected.

ownerIds present -> hostIds copied array (including [])
ownerIds absent  -> hostIds null

Get projects userRole only when the current user is a host; otherwise it stays null. myRsvp stays null because getEventInfo has no guest status. No additional endpoints or chained Partiful calls are introduced. Other user IDs remain excluded.

The shared summary persists host IDs in SQLite as compact JSON array text in source order, with unknown IDs as SQL NULL. Existing databases migrate on sync; read-only legacy snapshots return null. Schemas, product goldens, exact JSON expectations, and README are updated. Product contract revision is 2026-11-23.1.

Refs #262. This implements the ID half only. This PR is held and must not be merged without Kaleb's yes.

Evidence

  • Before: list dropped parsed owner IDs; get returned null role; SQLite had no host ID column.
  • After: fixture tests cover list/get host IDs, present empty and absent arrays, get host and non-host roles, missing session identity, null get RSVP, one-call dispatch, SQLite migration and round trips, and offline persistence.
  • Passed: go test ./internal/app -update-product-goldens, go mod verify, go test ./..., go test -race ./..., go vet ./..., go build ./..., and ./scripts/verify-native-release.sh.
  • Native verification built six archives and used only version/schema/doctor smoke commands with no live credentials. No live Partiful network calls or real event mutations were used.

Merge Danger

Door: two-way. The SQLite migration adds a nullable column and preserves cached rows; rollback leaves that column in place.

Blast Radius: events. JSON consumers gain hostIds; get can now report the host role. No new commands or changes to the remote OpenAPI ownerIds field.

@KalebCole KalebCole added the held Waiting on Kaleb's decision. Do not merge. label Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 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: 7cd03c91-28c9-419c-bdaa-aa07004db979
  • 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 23, 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-24T00:01:26.163093Z c0eebce 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

Copy link
Copy Markdown
PR Preview Action v1.8.1

🚀 View preview at
https://KalebCole.github.io/partiful-cli/pr-preview/pr-264/

Built to branch gh-pages at 2026-11-23 23:59 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0eebcef85

ℹ️ 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".

Comment thread internal/app/events.go
if !event.OwnerIDsPresent {
return nil
}
return append([]string{}, event.OwnerIDs...)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the documented prohibition on exposing user IDs

When a remote response contains ownerIds, this helper copies those Partiful user IDs verbatim into public events.list and events.get output; the shared summary also persists them for events.offline. This violates the explicit privacy invariant in root AGENTS.md, which prohibits exposing Partiful user IDs. The new product-test exemption removes the check that previously enforced that invariant rather than preserving it. Keep these identifiers redacted unless the repository's privacy policy is explicitly revised to permit this disclosure.

AGENTS.md reference: AGENTS.md:L72-L72

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Kaleb's Grok Bot:

This is intentional. Kaleb decided the vision should allow a JSON of host IDs, so this PR prints same-call ownerIds as hostIds only. Other Partiful user IDs stay unpublished.

The privacy policy change is in the companion held PR #263, which updates VISION.md, AGENTS.md, and docs/CONTRIBUTING.md. This branch still has the old AGENTS.md line because those edits are not in this PR. #264 should land after or with #263 so the policy and the product change agree. I am not redacting hostIds here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

held Waiting on Kaleb's decision. Do not merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant