Skip to content

Rootly: add Incident Events data stream to show incident timeline - #219

Closed
noorulkhan-n wants to merge 1 commit into
mainfrom
feature/rootly-incident-events
Closed

noorulkhan-n wants to merge 1 commit into
mainfrom
feature/rootly-incident-events

Conversation

@noorulkhan-n

@noorulkhan-n noorulkhan-n commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📋 Summary

Adds a new Incident Events data stream to the Rootly plugin, so users can show the timeline of a single Rootly incident on a SquaredUp dashboard.

  • New stream incidentEvents (Incident Events): calls GET /v1/incidents/{id}/events with paging (page[number], page[size]=100).
  • Users pick the incident from a dropdown (no incident objects are imported).
  • New hidden helper stream incidentOptions: lists the 100 most recent incidents to fill the dropdown (label #<number> <title>, value = incident ID).
  • Columns: Time, Event, Type (kind), Source, User, Starred. Visibility, raw event text, created/updated and ID are available but hidden by default.
  • Version bumped from 1.2.0 to 1.3.0.

🔗 Related issue(s)

  • None

🧩 Plugin details

  • Plugin name: Rootly
  • Type of change:
    • Bug fix
    • New datastream
    • Enhancement to existing datastream
    • Performance improvement
    • Documentation / metadata / logo
    • Other

🧪 Testing

Deployed to a dev tenant with a live Rootly data source:

  • The incident dropdown lists recent incidents and search works (for example "database" returns #2801 and #2718).
  • Incident #2801 returns all 21 timeline events; #2797 returns 18.
  • Tested with the incident saved both as plain text (how the tile editor stores it) and as an array of { value } objects. Both return the same rows.
  • Built a rich table tile on the stream to check that columns, timestamps and paging behave as expected.
image

Notes:

  • kind, source, user_display_name, starred_at and event_raw are returned by the live API but are not in Rootly's API reference. They were confirmed against a live response.
  • The events API has no date filter or sort, so the stream uses timeframes: false and returns all events for the incident, newest first (Rootly's order).
  • Affected services/functionalities per event need a separate call per event (/v1/events/{id}/services), so they are left out of this change. include=services,functionalities on the events endpoint is ignored by the API.

⚠️ Breaking changes

  • No
  • Yes

📚 Documentation

  • Documentation updated
  • No documentation changes needed

✅ Checklist

  • This PR changes a single plugin only
  • No secrets or credentials included
  • Plugin, datastream and UI naming follow SquaredUp guidelines
  • I agree to the Code of Conduct

Summary by CodeRabbit

  • New Features
    • Added access to timeline events for a selected incident, including event details and timestamps.
    • Added an incident selector displaying each incident’s number and title, making it easier to choose which timeline to view.

@noorulkhan-n
noorulkhan-n requested a review from a team December 2, 2026 08:01
@noorulkhan-n noorulkhan-n added the enhancement New feature or request label Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Rootly plugin adds incident selection and timeline event retrieval streams. Its metadata version changes from 1.2.0 to 1.3.0.

Changes: Incident event retrieval

Layer / File(s) Summary
Incident selection and event retrieval
plugins/Rootly/v1/dataStreams/incidentOptions.json, plugins/Rootly/v1/dataStreams/incidentEvents.json, plugins/Rootly/v1/metadata.json
Adds a hidden incident selector that requests up to 100 incidents. The event stream uses the selected incident’s /events endpoint, paginates through data, and defines event metadata. The plugin metadata version changes from 1.2.0 to 1.3.0.
Merge Risk: Minimal · up to 7fcb8

This adds an incident timeline stream and a helper incident selector to the Rootly plugin without changing existing streams or authentication. It is additive and low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: adding an Incident Events data stream that shows an incident timeline. The raw summary and objectives confirm the incidentEvents stream, its incident selector helper, …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Pr Template Passed The PR body matches the "Change to an existing plugin" template. This PR changes the existing Rootly plugin (plugins/Rootly/v1/), so the "Miscellaneous change" rule does not apply. Evidence: - Templ…
Full details: Title check

Explanation

The title names the main change: adding an Incident Events data stream that shows an incident timeline. The raw summary and objectives confirm the incidentEvents stream, its incident selector helper, and the plugin version bump. The title is specific and matches the changeset.

Full details: Pr Template

Explanation

The PR body matches the "Change to an existing plugin" template. This PR changes the existing Rootly plugin (plugins/Rootly/v1/), so the "Miscellaneous change" rule does not apply. Evidence: - Template headings in .github/PULL_REQUEST_TEMPLATE/Change to an existing plugin.md: Summary, Related issue(s), Plugin details, Testing, Breaking changes, Documentation, Checklist. - The PR body contains every one of these headings: "📋 Summary", "🔗 Related issue(s)", "🧩 Plugin details", "🧪 Testing", "⚠️ Breaking changes", "📚 Documentation", "✅ Checklist". - The Testing section has real content. It describes a deployment to a dev tenant with a live Rootly data source, the incidents tested (#2801 with 21 events, #2797 with 18), and the stored-value variants tested. - The body is not free text and is not the template picker from .github/pull_request_template.md. - Extra content (the "Plugin name" and "Type of change" fields are filled in) is allowed. Provider-reported identity: PR #219 in squaredup/plugins, author login noorulkhan-n, target main, source feature/rootly-incident-events. Changed files (from the review range): incidentEvents.json (added), incidentOptions.json (added), metadata.json (modified). The Plugin details checkbox list and the other sections are filled. No failure condition applies.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Automatic approval policy

Commit: 7fcb861ee65b.

Setting Effective value Source
Automatic approvals Enabled Global configuration
Merge risk Low Global configuration
Security risk Not set Global configuration

No overrides matched. The global limits apply.

Not set means no limit was configured after inheritance. Use @coderabbitai configuration to inspect the resolved settings and their sources.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ed7aa55 and 7fcb861.

Files selected for processing: 3

  • plugins/Rootly/v1/dataStreams/incidentEvents.json
  • plugins/Rootly/v1/dataStreams/incidentOptions.json
  • plugins/Rootly/v1/metadata.json

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🧩 Plugin PR Summary

📦 Modified Plugins

  • plugins/Rootly/v1

📋 Results

Step Status
Scope & version ✅ Passed
Validation ✅ Passed
Deployment 🚀 Deployed

🔍 Validation Details

✅ rootly
{
  "valid": true,
  "pluginName": "rootly",
  "pluginType": "cloud",
  "summary": {
    "Data Streams": 7,
    "Import Definitions": 1,
    "Correlation Rules": 0,
    "UI Configuration": true,
    "Has Icon": true,
    "Has Default Content": true,
    "Config Validation": false,
    "Custom Types": true
  }
}

@noorulkhan-n

Copy link
Copy Markdown
Contributor Author

I think the value of showing it in SquaredUp is low

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

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

1 participant