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

Cleanup V2 MergeResponse #6747

Merged
merged 1 commit into from
May 4, 2023
Merged

Cleanup V2 MergeResponse #6747

merged 1 commit into from
May 4, 2023

Conversation

snazy
Copy link
Member

@snazy snazy commented May 4, 2023

Ensure that all non-V2 attributes in MergeResponse (those that are present for V1, but deprecated) are properly annotated with @JsonView(Views.V1.class).

On top of the already deprecated attributes,
MergeResponse.ContentKeyDetails.getConflictType() is deprecated and V1-only now as well. It already has a better replacement with MergeResponse.getConflictType.getConflict(). The corresponding enum is also deprecated now.

Fixes #5689

Ensure that all non-V2 attributes in `MergeResponse` (those that are
present for V1, but deprecated) are properly annotated with
`@JsonView(Views.V1.class)`.

On top of the already deprecated attributes,
`MergeResponse.ContentKeyDetails.getConflictType()` is deprecated and
V1-only now as well. It already has a better replacement with
`MergeResponse.getConflictType.getConflict()`. The corresponding enum is
also deprecated now.

Fixes projectnessie#5689
@snazy snazy requested a review from dimas-b May 4, 2023 14:14
Copy link
Member

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@snazy snazy merged commit 28edb70 into projectnessie:main May 4, 2023
@snazy snazy deleted the v1-deprecated branch May 4, 2023 17:55
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.

Refactor MergeResponse in API v2
2 participants