Skip to content

chore: add tests for read operations #102

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

Merged
merged 4 commits into from
Apr 24, 2025
Merged

chore: add tests for read operations #102

merged 4 commits into from
Apr 24, 2025

Conversation

nirinchev
Copy link
Collaborator

No description provided.

@coveralls
Copy link
Collaborator

coveralls commented Apr 23, 2025

Pull Request Test Coverage Report for Build 14640623132

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.7%) to 77.5%

Totals Coverage Status
Change from base Build 14640556611: 1.7%
Covered Lines: 637
Relevant Lines: 769

💛 - Coveralls

@nirinchev nirinchev requested a review from gagik April 23, 2025 20:07

export const AggregateArgs = {
pipeline: z.array(z.object({}).passthrough()).describe("An array of aggregation stages to execute"),
limit: z.number().optional().default(10).describe("The maximum number of documents to return"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm a bit worried about this, we should run the MCP against a very very large collection and ask for all documents: #108

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That wasn't previously used, so figured it's better to remove it rather than lie to the model. Agree that we should investigate mechanisms to mitigate that risk post initial release.

Base automatically changed from ni/integration-dbstats to main April 24, 2025 11:32
@nirinchev nirinchev force-pushed the ni/integration-read branch from 09b74ec to b5b5edc Compare April 24, 2025 11:36
@nirinchev nirinchev merged commit ab1e3fa into main Apr 24, 2025
7 checks passed
@nirinchev nirinchev deleted the ni/integration-read branch April 24, 2025 11:47
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.

3 participants