Repository navigation
[COR2-1556] fix(catalog_entity): keep Slack channel and link fields on update - #136
Merged
Merged
Conversation
Update POSTs the whole descriptor, which replaces the stored one. The provider did not read a Slack channel's id and description or a link's description, so every update deleted them, also with ignore_changes. Read and write these fields, make the channel name optional (a channel needs id, name, or both), and reject empty strings, which the provider omits on write. Default notifications_enabled to false, so a channel without it no longer fails the apply with an inconsistent result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
name is now optional next to id, so read it like id and description: a null name no longer crashes the provider, and a numeric name is kept as text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion in acceptance tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ryanduffin
approved these changes
Dec 2, 2026
EmiiFont
deleted the
emiliofont/cor2-1556-attentive-terraform-provider
branch
December 3, 2026 15:02
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.
Fixes #135. Linear: COR2-1556.
Problem
Updating a
cortex_catalog_entitydeleted a Slack channel'sidanddescriptionand a link'sdescriptionthat were set outside Terraform, even withignore_changes. The provider didn't read those fields, and an update writes the whole descriptor back.Changes
idanddescription, and links read and writedescription. A channel needsid,name, or both. Empty strings are rejected.slack.channels[].notifications_enableddefaults tofalse, so a channel without it no longer fails the apply.Testing
main).idand a linkdescription.Follow-up
Updating with PATCH would also keep descriptor fields the provider doesn't model at all. That's a bigger change, so it will be its own ticket.
🤖 Generated with Claude Code