Commit 9ab7bfb
fix(branch): do not reopen merged branches when converting agnostic nodes
_get_other_active_branches in object_conversion returned MERGED and
DELETING branches, which the caller then unconditionally set to
NEED_REBASE — effectively reopening merged branches when converting an
agnostic node with aware attributes. Filter them out using
Branch.is_terminal.
Refs #9103
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ec7ca5f commit 9ab7bfb
3 files changed
Lines changed: 11 additions & 1 deletion
File tree
- backend
- infrahub/core/convert_object_type
- tests/component/core/convert_object_type
- changelog
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
321 | 326 | | |
322 | 327 | | |
323 | 328 | | |
| |||
359 | 364 | | |
360 | 365 | | |
361 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments