Skip to content

Commit

Permalink
updating unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Nov 3, 2024
1 parent 297a4eb commit 45c6572
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 751,414 deletions.
8 changes: 7 additions & 1 deletion beacon/connections/mongo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ build:
docker cp data/datasets.json mongoprod:tmp/datasets.json
docker cp data/genomicVariations.json mongoprod:tmp/genomicVariations.json
docker cp data/individuals.json mongoprod:tmp/individuals.json
docker cp data/runs.json mongoprod:tmp/runs.json
docker cp data/targets.json mongoprod:tmp/targets.json
docker cp data/caseLevelData.json mongoprod:tmp/caseLevelData.json
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/datasets.json --collection datasets
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/individuals.json --collection individuals
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/cohorts.json --collection cohorts
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/analyses.json --collection analyses
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/biosamples.json --collection biosamples
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/genomicVariations.json --collection genomicVariations
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/genomicVariations.json --collection genomicVariations
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/runs.json --collection runs
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/targets.json --collection targets
docker exec mongoprod mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/caseLevelData.json --collection caseLevelData
3 changes: 2 additions & 1 deletion beacon/connections/mongo/analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ def get_variants_of_analysis(self, entry_id: Optional[str], qparams: RequestPara
if limit > 100 or limit == 0:
limit = 100# pragma: no cover
idq="caseLevelData.biosampleId"
count, dataset_count, docs = get_docs_by_response_type(self, include, query, dataset, limit, skip, mongo_collection, idq)
count, dataset_count, docs = get_docs_by_response_type(self, include, query, dataset, limit, skip, mongo_collection, idq)
return schema, count, dataset_count, docs, dataset
3 changes: 2 additions & 1 deletion beacon/connections/mongo/biosamples.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,5 @@ def get_runs_of_biosample(self, entry_id: Optional[str], qparams: RequestParams,
if limit > 100 or limit == 0:
limit = 100# pragma: no cover
idq="biosampleId"
count, dataset_count, docs = get_docs_by_response_type(self, include, query, dataset, limit, skip, mongo_collection, idq)
count, dataset_count, docs = get_docs_by_response_type(self, include, query, dataset, limit, skip, mongo_collection, idq)
return schema, count, dataset_count, docs, dataset
1 change: 1 addition & 0 deletions beacon/connections/mongo/data/caseLevelData.json

Large diffs are not rendered by default.

Loading

0 comments on commit 45c6572

Please sign in to comment.