-
Notifications
You must be signed in to change notification settings - Fork 137
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
SQL Export template error on new Cohort #2825
Comments
There is another issue related to this function, that we may be able to extend this issue to cover: When you select other sources from the dropdown, the input boxes don't populate with the values of cdmschema, etc. I haven't looked closely a tthe code but what is surprising to me is that the text boxes for each of the paramaters is dynamically built based on what tokens are found in the SQL....but how does the values in the SOURCE map over to the tokens found in the SQL? Seems like this couldn't be done...unless you somehow hard coded that the token 'cdmdatabaseschema' maps over to the cdm schema in the source. Steps to reproduce:
|
You're right, there is a map: https://github.com/OHDSI/Atlas/blob/master/js/components/utilities/sql/sqlExportPanelConfig.js. It maps parameter names to daimon types (https://github.com/OHDSI/Atlas/blob/master/js/pages/configuration/sources/source-manager.js#L39). |
…es change on source selection
@chrisknoll I reproduced the issue you mentioned. For sure, parameter values should reflect selected source and it even worked before... Anyway, I fixed it and added to the PR - please check. |
Excellent, I will check this as soon as I am able. Thank you. |
Expected behavior
No errors.
Actual behavior
Steps to reproduce behavior
Create new cohort, observe console log.
The text was updated successfully, but these errors were encountered: