Skip to content

Commit

Permalink
remove HAS_VALUE conflict from the property
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtmccarty committed Sep 5, 2024
1 parent 721d404 commit 24ad2c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
1 change: 1 addition & 0 deletions backend/infrahub/graphql/queries/diff/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def to_diff_attribute(
for diff_prop in diff_properties:
if diff_prop.property_type == DatabaseEdgeType.HAS_VALUE.value and diff_prop.conflict:
conflict = diff_prop.conflict
diff_prop.conflict = None
return DiffAttribute(
name=enriched_attribute.name,
last_changed_at=enriched_attribute.changed_at.obj,
Expand Down
17 changes: 1 addition & 16 deletions backend/tests/unit/graphql/test_diff_tree_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,22 +386,7 @@ async def test_diff_tree_one_attr_change(
"previous_label": None,
"new_label": None,
"status": UPDATED_ACTION,
"conflict": {
"uuid": enriched_conflict.uuid,
"base_branch_action": UPDATED_ACTION,
"base_branch_value": "#fedcba",
"base_branch_changed_at": enriched_conflict.base_branch_changed_at.to_string(
with_z=False
),
"base_branch_label": None,
"diff_branch_action": UPDATED_ACTION,
"diff_branch_value": "#abcdef",
"diff_branch_changed_at": enriched_conflict.diff_branch_changed_at.to_string(
with_z=False
),
"diff_branch_label": None,
"selected_branch": GraphQLConfictSelection.DIFF_BRANCH.name,
},
"conflict": None,
}
],
}
Expand Down

0 comments on commit 24ad2c5

Please sign in to comment.