-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/find by name #305
Feature/find by name #305
Conversation
dec2e3c
to
cd54b09
Compare
Adds docker-compose configuration for mongo container to run script on newly initialized database. Adds js script to build database collections and indexes.
Folder is updated with new field text_name which is populated during folder creation from folder name as delimiter splited words. This ensures filtering name with string. Schema is updated with new field.
cbc448b
to
713f3fc
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.
small suggestions of improvement and maybe we want to update the docs with this PR or a follow-up one, namely the https://github.com/CSCfi/metadata-submitter/blob/master/docs/test.rst#integration-testing section
Adds python script for collections and indexes creation to be run if database is destroyed. Updates clean_db script with new functionality to only delete documents from collection. Old functionality ergo dropping database can be run with flag `--purge`.
Adds dependencies and configs to be able running integration tests on local environment.
Add env vars to github workflow file as database scripts and integration tests use environment variables.
713f3fc
to
d0c83ab
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.
looks very good.
Description
Adds functionality to filter folders by folder name eg.
/folders?name="test string"
.The folder collection is updated with the new field
text_name
which is populated during folder creation from folder name as delimiter separated words e.g 'test_file' becomes 'test file'. This field is indexed so a text search would be possible.The database is indexed during database container initialization.
Related issues
Feature #280
Type of change
Changes Made
Add indexing on database initialization
newly initialized database.
Add new field
text_name
to folder collectiontext_name
which is populatedduring folder creation from folder name as delimiter separated words.
Add folder querying by name.
Python scripts for database operations
the database is destroyed.
documents from collections. Old functionality ergo dropping database
can be run with the flag
--purge
.Add openapi specs.
Minor changes:
to make it easier to run stuff in the local environment.
Testing
Mentions