Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SO-4901: identical component conflict #1160

Merged
merged 7 commits into from
Jun 5, 2023

Conversation

cmark
Copy link
Member

@cmark cmark commented May 11, 2023

This PR improves the automatic conflict resolution to allow identical objects to be added to both sides of the merge. This earlier resulted in a conflict now it passes through.

cmark added 5 commits May 11, 2023 11:26
...use cases

1. added vs added with same object key and values (should not be
reported as conflict)
2. added vs added with same object key but different values (still
conflict)
...there is only one present on each side of the merge
...added vs added conflict is detected and ensure we only report
conflict for objects with different properties
@cmark cmark requested review from apeteri, nagyo and AAAlinaaa May 11, 2023 10:03
@cmark cmark self-assigned this May 11, 2023
@codecov
Copy link

codecov bot commented May 11, 2023

Codecov Report

Patch coverage: 46.34% and project coverage change: -0.02 ⚠️

Comparison is base (0a528c8) 64.07% compared to head (d03f1d8) 64.05%.

Additional details and impacted files
@@             Coverage Diff              @@
##                8.x    #1160      +/-   ##
============================================
- Coverage     64.07%   64.05%   -0.02%     
- Complexity    12771    12778       +7     
============================================
  Files          1763     1763              
  Lines         59596    59628      +32     
  Branches       5496     5508      +12     
============================================
+ Hits          38184    38197      +13     
- Misses        19042    19058      +16     
- Partials       2370     2373       +3     
Impacted Files Coverage Δ
...sion/AddedInSourceAndDetachedInTargetConflict.java 66.66% <0.00%> (-24.25%) ⬇️
...sion/AddedInTargetAndDetachedInSourceConflict.java 60.00% <0.00%> (-21.82%) ⬇️
...national/index/revision/BaseRevisionBranching.java 89.47% <ø> (ø)
...rnational/index/revision/BranchMergeOperation.java 95.45% <ø> (ø)
...dex/revision/ChangedInSourceAndTargetConflict.java 60.00% <0.00%> (-40.00%) ⬇️
...c/com/b2international/index/revision/Conflict.java 50.00% <22.22%> (-35.72%) ⬇️
...on/ChangedInSourceAndDetachedInTargetConflict.java 57.14% <25.00%> (-42.86%) ⬇️
...ons/src/com/b2international/commons/json/Json.java 80.76% <100.00%> (ø)
...om/b2international/index/revision/StagingArea.java 93.70% <100.00%> (+0.58%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cmark cmark marked this pull request as ready for review May 11, 2023 12:48
Copy link
Member

@apeteri apeteri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@nagyo nagyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍏

@cmark cmark merged commit 036e9e6 into 8.x Jun 5, 2023
@cmark cmark added the port-to-7.x Pull requests that need a complementary PR targeting the 7.x stream label Jun 5, 2023
@cmark cmark deleted the issue/SO-4901-identical-component-conflict branch September 27, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement port-to-7.x Pull requests that need a complementary PR targeting the 7.x stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants