Commit d85b540
authored
fix(linear): track only sub-issues as action items and re-enable parent reopen (#262)
## Summary
Follow-up to #261. A user flagged that Firetower was treating
loosely-**related** Linear issues as incident action items, which then
dragged the parent issue's auto-status around — the confusing behavior
#261 tried to fix by making parent status one-way (complete-only, never
reopen).
This change addresses the root cause instead:
1. **Only sub-issues (children) of the Linear parent are tracked as
action items.** Related / blocking / duplicate relations are no longer
synced. `get_related_issues` / `_fetch_relations` /
`LINEAR_RELATION_TYPE_MAP` are removed.
2. **Re-enable the two-way parent status sync** (reverting #261's
one-way change). The parent advances to **Completed** when the incident
is resolved (DONE/CANCELED) and all sub-issues are done, and reopens to
**Started** when the incident is reopened or sub-issues remain.
3. **Restored the "Started" status-change comment** and its config key
`PARENT_STATUS_COMMENT_STARTED` (still present in the prod
`config.toml`).
4. Updated `LINEAR_PARENT_DESCRIPTION` to say only sub-issues are
tracked and that the ticket will both auto-complete and reopen.
The captain-change assignee sync from #261 is left untouched. The
`relation_type` field on `ActionItem` is intentionally kept (now always
`child`).1 parent 682d993 commit d85b540
8 files changed
Lines changed: 190 additions & 539 deletions
File tree
- src/firetower
- incidents
- tests
- integrations
- services
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | | - | |
1002 | | - | |
| 1001 | + | |
| 1002 | + | |
1003 | 1003 | | |
1004 | | - | |
1005 | | - | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
1006 | 1008 | | |
1007 | 1009 | | |
1008 | 1010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 210 | + | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
211 | 215 | | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
239 | 244 | | |
240 | 245 | | |
241 | 246 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| 251 | + | |
| 252 | + | |
249 | 253 | | |
250 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
251 | 263 | | |
252 | 264 | | |
253 | | - | |
| 265 | + | |
254 | 266 | | |
255 | 267 | | |
256 | 268 | | |
257 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
258 | 272 | | |
259 | 273 | | |
260 | 274 | | |
| |||
297 | 311 | | |
298 | 312 | | |
299 | 313 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 314 | | |
310 | 315 | | |
311 | 316 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
| |||
0 commit comments