Skip to content

incident: drop special handling of ACK events#425

Open
yhabteab wants to merge 1 commit into
mainfrom
no-ack-handling
Open

incident: drop special handling of ACK events#425
yhabteab wants to merge 1 commit into
mainfrom
no-ack-handling

Conversation

@yhabteab
Copy link
Copy Markdown
Member

The ACK event will still be processed just like before, but the special handling of the ACK event promoting the event author to incident manager is now completely removed as requested in the referenced issue. The event type TypeAcknowledgementSet and TypeAcknowledgementCleared are still not removed from Icinga Go Library, but since we're going to drop the type field from the event request with #407 anyway, it's not a problem to keep them around for now and not break existing implementations of Icinga DB with this change.

resolves #410

@yhabteab yhabteab added this to the 1.0 milestone May 19, 2026
@yhabteab yhabteab requested review from Copilot and oxzi May 19, 2026 12:36
@cla-bot cla-bot Bot added the cla/signed CLA is signed by all contributors of a PR label May 19, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the special-case handling of acknowledgement events in incident processing, where the ACK author was previously auto-promoted to incident manager. Acknowledgement events are still processed by the surrounding pipeline; only the manager-promotion side effect (and its associated helper, sentinel error, and history entry) is dropped. This implements the decision in #410 that managers should only be designated via the UI.

Changes:

  • Replaces the switch ev.Type with a simple if ev.Type == baseEv.TypeState block, removing the TypeAcknowledgementSet case.
  • Deletes the processAcknowledgementEvent helper and the errSuperfluousAckEvent sentinel error.
  • Removes the now-unused errors import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop support for sources to designate a manager

2 participants