Skip to content

[feature branch] Search Content API #786

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

mongodben
Copy link
Collaborator

Ben Perlmutter and others added 5 commits June 24, 2025 17:01
* Create MongoDbSearchResultsStore, add limit to DefaultFindContent and add test for limit

* Implement saveSearchResult, create MongoDbSearchResultsStore.test.ts

* lint, format

* Check entire returned document in MongoDbSearchResultsStore.test.ts

* Create ResultChunk type and zod check

* Correct usage of limit in makeDefaultFindContent

* PR feedback: cast badSearchResultRecord as any

* Use unknown instead of any for ResultChunk additional metadata

* PR feedback: Combine describe blocks in MongoDbSearchResultsStore.test.ts, remove zod checks where unnecessary in MongoDbSearchResultsStore

* Combine describes
* Create MongoDbSearchResultsStore, add limit to DefaultFindContent and add test for limit

* Implement saveSearchResult, create MongoDbSearchResultsStore.test.ts

* lint, format

* Check entire returned document in MongoDbSearchResultsStore.test.ts

* Create ResultChunk type and zod check

* Correct usage of limit in makeDefaultFindContent

* PR feedback: cast badSearchResultRecord as any

* Starting structure of searchContent

* Use unknown instead of any for ResultChunk additional metadata

* Add searchContent test file, broaden QueryFilter & MongoDbAtlasVectorSearchFilter types

* Work on clarity of comments in contentRouter

* PR feedback: Combine describe blocks in MongoDbSearchResultsStore.test.ts, remove zod checks where unnecessary in MongoDbSearchResultsStore

* Use generics on middleware: requireRequestOrigin, requireValidIpAddress

* Structure out contentRouter test file

* Combine describes

* Clean

* makeFindContentWithMongoDbMetadata

* config.test.ts

* Clean

* PR feedback

* Correct types

* Correct test

* Fix test return type

* lint

* Revert move of classifyMongoDbProgrammingLanguageAndProduct, jest needs function outside of file to mock

* Remove unnecessary tests and comments
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.

2 participants