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

WIP - Add MergeResponseInspector functionality to Java API #7196

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

snazy
Copy link
Member

@snazy snazy commented Jul 6, 2023

Provides a simple API to collect information that is necessary for content-aware merges.

The base for that information is already available via the Conflicts returned in a MergeResponse. The approach is based on information from the merge-request and merge-response. It collects the conflicting contents from the merge-base using a Nessie-API "get-contents" call and then uses Nessie's diff-operations to identify and filter the conflicting contents from the diffs of merge-base-to-merge-source and merge-base-to-merge-target. The content information is aggregated ("grouped" by content-ID) and returned as a Java Stream via the introduced API.

This change does not implement any content-aware merge operation.

This is a pure Nessie-Java-API/client change, no REST API change.

Provides a simple API to collect information that is necessary for content-aware merges.

The base for that information is already available via the `Conflict`s returned in a `MergeResponse`. The approach is based on information from the merge-request and merge-response. It collects the conflicting contents from the _merge-base_ using a Nessie-API "get-contents" call and then uses Nessie's diff-operations to identify and filter the conflicting contents from the diffs of _merge-base_-to-_merge-source_ and _merge-base_-to-_merge-target_. The content information is aggregated ("grouped" by content-ID) and returned as a Java `Stream` via the introduced API.

This change does not implement any content-aware merge operation.

This is a pure Nessie-Java-API/client change, no REST API change.
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.

1 participant