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

Make dry run merge / transplant throw exceptions #6685

Merged
merged 2 commits into from Apr 25, 2023

Conversation

dimas-b
Copy link
Member

@dimas-b dimas-b commented Apr 25, 2023

The dryRun API parameter is different from returnConflictAsResult.

If a dry run is requested it should produce the same client-side effect as a normal merge / transplant.

At the VersionStore level this means throwing the same exception regardless of the dryRun parameter because returnConflictAsResult does not exist at that level.

The `dryRun` API parameter is different from `returnConflictAsResult`.

If a dry run is requested it should produce the same client-side effect
as a normal merge / transplant.

At the `VersionStore` level this means throwing the same exception
regardless of the `dryRun` parameter because `returnConflictAsResult`
does not exist at that level.
@dimas-b
Copy link
Member Author

dimas-b commented Apr 25, 2023

I'll make another PR for testing returnConflictAsResult

snazy
snazy previously approved these changes Apr 25, 2023
Copy link
Member

@snazy snazy left a comment

Choose a reason for hiding this comment

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

WFM (assuming all tests pass ;) )

@dimas-b
Copy link
Member Author

dimas-b commented Apr 25, 2023

fixed the test - interleaved non-conflict merge :)

@dimas-b dimas-b requested a review from snazy April 25, 2023 20:36
@dimas-b dimas-b merged commit 95d2f56 into projectnessie:main Apr 25, 2023
24 checks passed
@dimas-b dimas-b deleted the dry-run-merge-exceptions branch April 25, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants