Skip to content

Allow Rootly plugin to collect incidents without service identifiers assigned#8892

Merged
klesh merged 3 commits into
apache:mainfrom
brianfeucht:fix/rootly-incident-collection
May 30, 2026
Merged

Allow Rootly plugin to collect incidents without service identifiers assigned#8892
klesh merged 3 commits into
apache:mainfrom
brianfeucht:fix/rootly-incident-collection

Conversation

@brianfeucht
Copy link
Copy Markdown
Contributor

@brianfeucht brianfeucht commented May 29, 2026

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

What does this PR do?
Allows the Rootly plugin to collect incidents missing service identifiers

Does this close any open issues?

Closes 8891

brianfeucht and others added 3 commits May 29, 2026 10:30
The mapStatus function was missing 'completed' as a terminal status,
causing incidents with that status to be written as IN_PROGRESS instead
of DONE.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rootly's 'completed' status represents a fully resolved incident that has
gone through post-incident review. These incidents may not have a
resolved_date populated. Fall back to updated_date so MTTR is computed
correctly instead of showing the incident as unresolved.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Allow collecting all incidents without filtering by service ID.
Previously, all incidents required a service association to be collected;
incidents created without service tags (common in Rootly) were silently
dropped.

Changes:
- ValidateTaskOptions: service_id is now optional (no longer required)
- GetParams: falls back to scope_id 'all' when service_id is empty
- buildIncidentsQuery: only adds filter[service_ids] when service_id is set
- extractRootlyIncident: skips the service-membership guard when
  collecting globally (service_id = '') to avoid false drops

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug labels May 29, 2026
Copy link
Copy Markdown
Contributor

@klesh klesh left a comment

Choose a reason for hiding this comment

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

LGTM.
Thanks for your contribution.

@klesh klesh merged commit 048adfb into apache:main May 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Rootly] Incidents without service tags are silently dropped during collection

2 participants