Skip to content

Commit d3491db

Browse files
committed
fix(rootly): add id to PATCH body and unchanged option to update status dropdown
- Include incident id in JSON:API PATCH body per spec requirement - Add 'Unchanged' empty option to updateStatus dropdown to avoid accidental overwrites
1 parent a61518b commit d3491db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/sim/blocks/blocks/rootly.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
189189
title: 'Status',
190190
type: 'dropdown',
191191
options: [
192+
{ label: 'Unchanged', id: '' },
192193
{ label: 'In Triage', id: 'in_triage' },
193194
{ label: 'Started', id: 'started' },
194195
{ label: 'Detected', id: 'detected' },

apps/sim/tools/rootly/update_incident.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const rootlyUpdateIncidentTool: ToolConfig<
104104
if (params.groupIds) {
105105
attributes.group_ids = params.groupIds.split(',').map((s: string) => s.trim())
106106
}
107-
return { data: { type: 'incidents', attributes } }
107+
return { data: { type: 'incidents', id: params.incidentId.trim(), attributes } }
108108
},
109109
},
110110

0 commit comments

Comments
 (0)