-
Notifications
You must be signed in to change notification settings - Fork 21
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
Changes to CLI to support Axios Proxy, Large FHIR List Downloads, and Downloads of Layouts #80
Conversation
…g insights and patient layouts.
…layouts to layouts.
…o support a json to CSV conversion via a specification with the mappings of fhir jmesPath to column mapping.
…spath-csv to master * commit 'f82c2c4e5c0f71ea3d1c2e87d40eae74bff2477b': PHD-417 restored build.sh PHD-417 Added --jsonLine to make line per resource output and --csv to support a json to CSV conversion via a specification with the mappings of fhir jmesPath to column mapping. PHD-417 Updated list to dump output per bundle rather than collect them all.
I think the |
test/unit/commands/fhir-test.js
Outdated
@@ -61,6 +61,7 @@ test.serial.cb('The "fhir" command should list fhir resources', t => { | |||
|
|||
yargs.command(list) | |||
.parse('list Patient --project projectId'); | |||
t.end(); |
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.
I think this will end the test before the verification completes in the callback.
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.
You may need to mock out there proxy module here like you did for api.test.js
.
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.
Thanks - I'll re-test it with the mock.
This file should still be removed as the project uses a yarn lock file. |
I tried axios 1.18.0 and get this error when hitting the outbound proxy:
This appears to be related to this issue which is fixed in 1.19.0: So to enable the proxy it appears we need the 1.19.0-beta release. |
@taylordeatri I also tried using 1.18.0 with a proxy and got the same error. Looks like using the beta is the only option for now. |
@anthonyroach you were able to get this to work with the axios beta, right?
@taylordeatri can you use the environment variable approach? Then we would not need to add the proxy configuration to the setup. |
Yes I was able to get that working with the axios beta. |
Oops, didn't mean to close this PR. |
I'm closing this - tested and confirmed that with the 1.19.0-beta.1 version of axios the property https_proxy DOES work. I'm removing the Proxy configuration code in the changes and will re-submit a new PR. |
…works with just the environment https_proxy variable.
…feomic master post PR lifeomic#80 merge.
Changes to support configuring Proxy
Changed FHIR list to support option to output in a CSV, TSV, etc. format using a json file that maps JmesPaths to column names for building a CSV from the deep json structure.
Added apps.js to support calling application APIs
Also updated some dependencies which resolved some issues I encountered using Axios Proxy support.