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

[Indexing options] Changes for find collections to return indexing option #779

Merged
merged 8 commits into from
Jan 10, 2024

Conversation

maheshrajamani
Copy link
Contributor

@maheshrajamani maheshrajamani commented Jan 9, 2024

What this PR does:
Changes for find collections to return indexing option

Which issue(s) this PR fixes:
Fixes #769

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@maheshrajamani maheshrajamani self-assigned this Jan 9, 2024
@maheshrajamani maheshrajamani requested a review from a team as a code owner January 9, 2024 18:38
@@ -34,7 +34,8 @@ public record CreateCollectionCommand(
public record Options(

// limit of returned documents
@Schema(
@JsonInclude(JsonInclude.Include.NON_NULL)
Copy link
Contributor

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 Collections.

Copy link
Contributor Author

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.

.body("status.collections", hasSize(4))
.body(
"status.collections",
containsInAnyOrder(
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@tatu-at-datastax tatu-at-datastax left a comment

Choose a reason for hiding this comment

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

LGTM

@maheshrajamani maheshrajamani merged commit ed7fdc6 into main Jan 10, 2024
2 checks passed
@maheshrajamani maheshrajamani deleted the indexing-find-collection branch January 10, 2024 18:28
Copy link
Collaborator

@vkarpov15 vkarpov15 left a 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

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.

[Indexing options] Add indexing options to findCollection response
4 participants