Skip to content

fix: show DNS record changes in the activity feed#50

Merged
scotwells merged 1 commit into
mainfrom
fix/activity-policy-dnsrecordset-summary-guards
Jun 25, 2026
Merged

fix: show DNS record changes in the activity feed#50
scotwells merged 1 commit into
mainfrom
fix/activity-policy-dnsrecordset-summary-guards

Conversation

@scotwells

@scotwells scotwells commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

What this does

Adding or changing a DNS record should show up in your activity feed. For some records that entry was quietly going missing. This makes DNS changes show up reliably — and when a friendly label isn't available, it gracefully falls back to a simple, still-useful description instead of dropping the entry entirely.

What changed

  • Summaries now use optional details (like a display label or the record type) only when they're actually present, and fall back to a clear generic message otherwise.
  • No user-facing wording changed — this just stops entries from being dropped.

Several DNSRecordSet create/update/delete/system activity rules built
their summary from annotations or spec fields that the rule's match did
not guarantee were present. When a record set lacked the dereferenced
key, summary evaluation errored (no such key) and the activity event was
dead-lettered, so the operation never appeared in the activity feed.

Tighten each affected rule's match so events missing a field fall
through to the existing generic and last-resort fallback rules instead
of erroring.

Key changes:
- A/AAAA, CNAME, ALIAS, MX create/update rules now require the
  display-value annotation their summary reads
- Rules whose summary or match reads spec.recordType now require
  has(...spec.recordType): type-specific create/update, create/update
  -other-annotated, create/update-from-request, delete-from-response,
  and both system-create rules
- Summary wording is unchanged; the fallback chain (generic record-type
  summary, then "a DNS record") requires no field access and stays safe

Claude-Session: https://claude.ai/code/session_01KnYuL5Pf1R5ysZoxxNkKiu
@scotwells scotwells changed the title fix: stop DNSRecordSet activity events dead-lettering on missing fields fix: show DNS record changes in the activity feed Jun 25, 2026
@scotwells scotwells requested review from a team and savme June 25, 2026 16:53
@scotwells scotwells marked this pull request as ready for review June 25, 2026 16:53

@ecv ecv 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.

woof compounds. these are nasty

@scotwells scotwells merged commit 5162d1a into main Jun 25, 2026
10 checks passed
@scotwells scotwells deleted the fix/activity-policy-dnsrecordset-summary-guards branch June 25, 2026 18:02
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.

3 participants