We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ccecd1 commit 1a428d2Copy full SHA for 1a428d2
backend/infrahub/graphql/mutations/proposed_change.py
@@ -135,6 +135,10 @@ async def mutate_update(
135
"proposed_change_name": proposed_change.name.value,
136
},
137
)
138
+ # When the PROPOSED_CHANGE_MERGE succeeds it will have correctly changed the state
139
+ # from the overridden "merging" value, so here we change it back to reflect the
140
+ # correct value for the event that will be generated.
141
+ proposed_change.node_changelog.attributes["state"].value = ProposedChangeState.MERGED.value
142
143
return proposed_change, result
144
changelog/5600.fixed.md
@@ -0,0 +1 @@
1
+Set correct state in events after merging a proposed change, they were incorrectly set as "merging" instead of "merged"
0 commit comments