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

Remove hydra use query api #491

Merged
merged 7 commits into from
Oct 8, 2023
Merged

Remove hydra use query api #491

merged 7 commits into from
Oct 8, 2023

Conversation

amrit110
Copy link
Member

@amrit110 amrit110 commented Oct 6, 2023

PR Type ([Feature | Fix | Documentation | Test])

Fix

Short Description

Use of hydra to load configuration and then override for database is not ideal in the API itself since it obscures what parameters are being passed around, and you would need to go and look at the configs. The hydra config can be introduced during workflow orchestration when some higher level program accepts config files and calls the APIs.

Also added URL encoding of the password to allow for characters like @to be used without issues.

Tests Added

Just modified existing ones.

@amrit110 amrit110 self-assigned this Oct 6, 2023
@amrit110 amrit110 added bug Something isn't working refactor Refactor existing code, with same or similar functionality labels Oct 6, 2023
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #491 (ad853d3) into main (a8886c5) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #491      +/-   ##
==========================================
- Coverage   64.77%   64.71%   -0.07%     
==========================================
  Files          99       99              
  Lines        9907     9873      -34     
==========================================
- Hits         6417     6389      -28     
+ Misses       3490     3484       -6     
Files Coverage Δ
cyclops/query/base.py 97.14% <100.00%> (+0.63%) ⬆️
cyclops/query/eicu.py 100.00% <ø> (ø)
cyclops/query/gemini.py 24.24% <ø> (-0.76%) ⬇️
cyclops/query/mimiciii.py 100.00% <ø> (ø)
cyclops/query/mimiciv.py 100.00% <ø> (+2.63%) ⬆️
cyclops/query/omop.py 94.25% <100.00%> (-0.20%) ⬇️
cyclops/query/orm.py 92.62% <100.00%> (+0.58%) ⬆️

Impacted file tree graph

Copy link
Collaborator

@hoxell hoxell left a comment

Choose a reason for hiding this comment

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

Wait a minute, this isn't C++ 😮

@amrit110 amrit110 merged commit 9b9d544 into main Oct 8, 2023
10 checks passed
@amrit110 amrit110 deleted the remove_hydra_use_query_api branch October 8, 2023 17:41
@hoxell
Copy link
Collaborator

hoxell commented Oct 9, 2023

Wait a minute, this isn't C++ 😮

Eh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactor Refactor existing code, with same or similar functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants