feat(slack): add author, space, and environment context to notifications [AIS-323] - #11167
Merged
Harika Kondur (harikakondur) merged 2 commits intoAug 3, 2026
Merged
Conversation
Enriches the Slack notification payload with the entry author, space name, and environment ID, addressing the customer feature request in #10075. Based on the prototype attached to the issue by @rschwager. Adds two CMA lookups (user.getManyForSpace, space.get), each wrapped in try/catch with ID fallbacks so a failed lookup degrades gracefully rather than dropping the notification. Updates the message header and context block, and extends the getResolvedEntity unit tests to cover the new fields. Closes #10075 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mitch Goudy (mgoudy91)
force-pushed
the
feat/slack-enrich-notification-context
branch
from
July 27, 2026 19:58
abda728 to
352a690
Compare
Mitch Goudy (mgoudy91)
marked this pull request as ready for review
July 27, 2026 19:58
Harika Kondur (harikakondur)
approved these changes
Aug 3, 2026
Harika Kondur (harikakondur)
deleted the
feat/slack-enrich-notification-context
branch
August 3, 2026 15:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Enriches the Contentful → Slack notification payload with the entry author, space name, and environment ID, so notifications carry the context requested in #10075.
An entry was published by Jane Doe in space "Marketing" (master environment)!Why
Customer feature request (#10075, ZoomInfo). The current notification only shows the entry name, content type, and date, which isn't enough context to act on in a shared channel.
How
Based on the prototype
service.ts/types.tsattached to the issue by Russell Schwager (@rschwager). Two new CMA lookups are added insidegetResolvedEntity:user.getManyForSpace→ resolves the actor's display name (falls back to email, then user ID)space.get→ resolves the space name (falls back to space ID)Both are wrapped in
try/catchwith ID fallbacks, so a failed lookup degrades gracefully rather than dropping the notification. Environment ID comes straight off the event body (no extra call).Tests
getResolvedEntityunit tests to assert the newactorName,spaceName, andenvironmentIdfields across all four event types, and stubbed the newuser/spaceCMA calls in the mock client.tsc --noEmitclean, ESLint + Prettier clean on the changed files.Notes for reviewers
Closes #10075
🤖 Generated with Claude Code