Skip to content

feat(ignore): .kbcignore support for notification subscriptions#2546

Draft
Matovidlo wants to merge 1 commit intomvasko/notification-subscriptions-supportfrom
mvasko/notification-kbcignore-support
Draft

feat(ignore): .kbcignore support for notification subscriptions#2546
Matovidlo wants to merge 1 commit intomvasko/notification-subscriptions-supportfrom
mvasko/notification-kbcignore-support

Conversation

@Matovidlo
Copy link
Copy Markdown
Contributor

Release Notes

Added .kbcignore support for notification subscriptions. Users can now exclude specific notifications or all notifications for a config from pull/push operations using these patterns:

keboola.component/config-id/notifications
keboola.component/config-id/notifications/sub-xxx

Plans for customer communication

None.

Impact analysis

  • No breaking changes. IgnoreConfigsOrRows()IgnoreObjects() rename is internal (only called in pull/push operations).
  • Notifications explicitly ignored will not appear in kbc pull diff (remote state nulled) and will not be pushed by kbc push (both states nulled).
  • Notifications belonging to an ignored branch are now also correctly excluded via NullIgnoredBranchStates() — previously this was a gap.

Change type

Feature (non-breaking)

Justification

Notification subscriptions were the only object type without .kbcignore support despite having the Ignore bool field already present on NotificationState.

Deployment

Merge & automatic deploy.

Rollback plan

Revert of this PR.

Post release support plan

None.

Wire up full .kbcignore support for NotificationState objects:

Pattern syntax:
  keboola.component/config-id/notifications          → ignore all notifications for config
  keboola.component/config-id/notifications/sub-xxx  → ignore specific notification

Changes:
- ignore.go: rename IgnoreConfigsOrRows → IgnoreObjects; add 3-part
  "notifications" and 4-part "notifications/<id>" cases to applyIgnorePattern
- registry.go: add IgnoreNotificationsForConfig, IgnoreNotification,
  IgnoredNotifications methods; extend NullIgnoredBranchStates to also
  null NotificationState objects belonging to ignored branches
- pull/operation.go: null remote state for ignored notifications in ignoreObjects
- push/operation.go: null both states for ignored notifications before diff
- Tests: add notification objects to test registries, add test cases for
  all new patterns and registry methods

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant