You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rootly: add Incident Events data stream to show incident timeline - #219
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.
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.
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: 4
Check name
Status
Explanation
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Pr Template
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.
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.
I think the value of showing it in SquaredUp is low
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
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.
📋 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.
incidentEvents(Incident Events): callsGET /v1/incidents/{id}/eventswith paging (page[number],page[size]=100).incidentOptions: lists the 100 most recent incidents to fill the dropdown (label#<number> <title>, value = incident ID).kind), Source, User, Starred. Visibility, raw event text, created/updated and ID are available but hidden by default.🔗 Related issue(s)
🧩 Plugin details
🧪 Testing
Deployed to a dev tenant with a live Rootly data source:
{ value }objects. Both return the same rows.Notes:
kind,source,user_display_name,starred_atandevent_raware returned by the live API but are not in Rootly's API reference. They were confirmed against a live response.timeframes: falseand returns all events for the incident, newest first (Rootly's order)./v1/events/{id}/services), so they are left out of this change.include=services,functionalitieson the events endpoint is ignored by the API.📚 Documentation
✅ Checklist
Summary by CodeRabbit