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

Allow to skip connection check for certain sources #2374

Merged

Conversation

ganisimov
Copy link
Contributor

Addresses #2359

Copy link
Collaborator

@chrisknoll chrisknoll left a comment

Choose a reason for hiding this comment

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

Looks good. Is there any other modifications you would want to make before we merge this PR?

@ganisimov
Copy link
Contributor Author

@chrisknoll , the checkConnection() is used in API call /source/connection/{key} here:

sourceService.checkConnection(source);

So, I'm not sure if it's desired to suppress connection check here in any case. If the change was requested to optionally skip the check only when dealing with daimons (#2350), I would handle the setting closer to that code and not in checkConnection(). Do you have any thoughts on this?

@chrisknoll
Copy link
Collaborator

Seems like if the setting on the source is to disable check connections, then it's reasonable that all calls to check connection will just bypass. So, in the case you show here, you would want to bypass the check in all cases.

@ganisimov
Copy link
Contributor Author

OK then I'm good with the changes, thanks!

@chrisknoll chrisknoll merged commit ca11010 into OHDSI:master May 23, 2024
2 checks passed
@ganisimov ganisimov deleted the source_connection_check_option_2359 branch May 24, 2024 08:14
@anthonysena anthonysena linked an issue May 28, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide configuration option to disable source connection checks
2 participants