Skip to content

fix(events): return populated event details - #234

Merged
KalebCole merged 1 commit into
mainfrom
fix/issue-232-events-get-details
Sep 15, 2026
Merged

KalebCole merged 1 commit into
mainfrom
fix/issue-232-events-get-details

Conversation

@KalebCole

Copy link
Copy Markdown
Owner

Summary

  • project populated getEventInfo details into events.get output
  • publish the nullable detail field types in the command schema
  • retain null for absent or null remote fields

Verification

  • go mod verify
  • go test ./...
  • go test -race ./...
  • go vet ./...
  • go build ./...

Fixes #232

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5ab10105-bb0b-4753-bc07-1a2a0bea4948


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.

@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-15 21:00 UTC

@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: b02f489dee

ℹ️ 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
End: event.End,
Timezone: event.Timezone,
State: state,
Description: event.RawFields["description"],

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 Prevent raw event fields from exposing PII

When an event description contains an email address or phone number (for example, an RSVP contact), this forwards it verbatim into events.get output; the adjacent raw location, address, and custom-field projections have the same problem. That newly exposes data that the repository safety rule forbids, so keep these unstructured fields null or apply an approved redaction before encoding the success response.

AGENTS.md reference: AGENTS.md:L62-L64

Useful? React with 👍 / 👎.

Comment thread internal/app/events.go
Location: event.RawFields["location"],
Address: event.RawFields["locationInfo"],
Visibility: event.RawFields["visibility"],
GuestLimit: event.RawFields["guestLimit"],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Project guest limits from maxCapacity

getEventInfo represents an event capacity as maxCapacity (which decodeEventSafeguards already parses), not guestLimit. As a result, every capped event that follows the reviewed response shape is returned with guestLimit: null even though the newly advertised schema promises its populated value; derive this field from event.Safeguards.MaxCapacity while preserving absent/null semantics.

Useful? React with 👍 / 👎.

Comment thread internal/app/events.go
Comment on lines +243 to +247
Description: event.RawFields["description"],
Location: event.RawFields["location"],
Address: event.RawFields["locationInfo"],
Visibility: event.RawFields["visibility"],
GuestLimit: event.RawFields["guestLimit"],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate raw values against the advertised schema

These values are emitted as unchecked json.RawMessage, so a received description: 1, locationInfo: "text", or customFields: {} produces a successful response that violates the new success schema rather than contract.protocol_changed. Only image receives a shape check in decodeEventInfo; decode and validate each projected nullable field before building the success envelope to preserve the documented malformed-property failure boundary.

Useful? React with 👍 / 👎.

@KalebCole
KalebCole merged commit 9d1bb2a into main Sep 15, 2026
3 checks passed
@KalebCole
KalebCole deleted the fix/issue-232-events-get-details branch September 15, 2026 20:59
@KalebCole
KalebCole restored the fix/issue-232-events-get-details branch November 12, 2026 21:28
@KalebCole
KalebCole deleted the fix/issue-232-events-get-details 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.

bug(events): get drops populated event detail fields as null

1 participant