-
Notifications
You must be signed in to change notification settings - Fork 139
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
REST V2: Key ranges for entries + diff #6743
Conversation
cbdcedb
to
20ec663
Compare
api/model/src/main/java/org/projectnessie/api/v2/doc/ApiDoc.java
Outdated
Show resolved
Hide resolved
api/model/src/main/java/org/projectnessie/api/v2/doc/ApiDoc.java
Outdated
Show resolved
Hide resolved
api/model/src/main/java/org/projectnessie/api/v2/params/KeyRangeParams.java
Show resolved
Hide resolved
...e/store/src/main/java/org/projectnessie/versioned/storage/versionstore/VersionStoreImpl.java
Outdated
Show resolved
Hide resolved
api/client/src/main/java/org/projectnessie/client/http/v2api/HttpGetDiff.java
Show resolved
Hide resolved
03c5fcb
to
6187611
Compare
.../storage/store/src/main/java/org/projectnessie/versioned/storage/versionstore/KeyRanges.java
Outdated
Show resolved
Hide resolved
...rage/store/src/test/java/org/projectnessie/versioned/storage/versionstore/TestKeyRanges.java
Outdated
Show resolved
Hide resolved
...rsist/store/src/main/java/org/projectnessie/versioned/persist/store/PersistVersionStore.java
Outdated
Show resolved
Hide resolved
...rage/store/src/test/java/org/projectnessie/versioned/storage/versionstore/TestKeyRanges.java
Outdated
Show resolved
Hide resolved
...torage/common/src/main/java/org/projectnessie/versioned/storage/common/indexes/StoreKey.java
Outdated
Show resolved
Hide resolved
...torage/common/src/main/java/org/projectnessie/versioned/storage/common/indexes/StoreKey.java
Outdated
Show resolved
Hide resolved
Reverted the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly optimization concerns
...torage/common/src/main/java/org/projectnessie/versioned/storage/common/indexes/StoreKey.java
Outdated
Show resolved
Hide resolved
.../common/src/main/java/org/projectnessie/versioned/storage/common/indexes/StoreIndexImpl.java
Outdated
Show resolved
Hide resolved
.../storage/store/src/main/java/org/projectnessie/versioned/storage/versionstore/KeyRanges.java
Show resolved
Hide resolved
...e/store/src/main/java/org/projectnessie/versioned/storage/versionstore/VersionStoreImpl.java
Show resolved
Hide resolved
608020b
to
99db9e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, but prefix handling seems to contradict (older) docs
api/model/src/main/java/org/projectnessie/api/v2/doc/ApiDoc.java
Outdated
Show resolved
Hide resolved
...e/store/src/main/java/org/projectnessie/versioned/storage/versionstore/VersionStoreImpl.java
Show resolved
Hide resolved
api/client/src/main/java/org/projectnessie/client/http/v1api/HttpGetEntries.java
Show resolved
Hide resolved
* In "diff" API * In "get entries" This is just an API-level change to reserve REST paths and query parameters. Server-side implementation to be done separately. Closes projectnessie#5591
Builds upon the work in #5656.
However, the "get range of contents" has been removed, because it's tricky to add it to the current Nessie Java API and since it's probably not a very useful functionality. It would also require adding paging and min/max-keys to the
GetMultipleContentRequest
/Response
types to leverage the existing paging infrastructure and/or addContentsParams
parameter object - neither works well with the existing code.Adds the necessary
VersionStore
changes, which are pretty straight forward.Fixes #3957
Fixes #5591