-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Indexing options] Changes for find collections to return indexing option #779
Conversation
@@ -34,7 +34,8 @@ public record CreateCollectionCommand( | |||
public record Options( | |||
|
|||
// limit of returned documents | |||
@Schema( | |||
@JsonInclude(JsonInclude.Include.NON_NULL) |
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.
We could also use JsonInclude.Include.NON_EMPTY
which would exclude empty Collection
s.
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.
Ah., got it I will change it.
...ain/java/io/stargate/sgv2/jsonapi/service/operation/model/impl/FindCollectionsOperation.java
Outdated
Show resolved
Hide resolved
…e/jsonapi into indexing-find-collection
.body("status.collections", hasSize(4)) | ||
.body( | ||
"status.collections", | ||
containsInAnyOrder( |
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.
I thought we only expect 'expected4' here.
No need for expected1, expected2, expected3.
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.
find collection returns all the collection created thus far. So add all 4.
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
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 👍 Nice to know about the findCollections command
What this PR does:
Changes for find collections to return indexing option
Which issue(s) this PR fixes:
Fixes #769
Checklist