-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added study distribution #144
Conversation
☂️ Python Coverage
Overall Coverage
New Files
Modified Files
|
1fe6c8e
to
92c0439
Compare
200, | ||
), | ||
("invalid_study", "https://github.com/smart-on-fhir/invalid_study", 500), | ||
("non_cumulus_repo", "https://github.com/user/non_cumulus_repo", 500), |
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.
This line is trying to test that a ValueError is thrown when no smart-on-fhir
string is detected, yeah? Can this test code distinguish from the case where the code does try to hit that URL but no responses
mock has been set up for it?
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.
probably with some work.
this would be easier if we could use something other than the generic error handler, but security has requested these endpoints be extremely vague in their error reporting until the dashboard is deployed inside AWS.
8f4ecaf
to
7541a56
Compare
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.
Addressed some PR comments.
Note that this also decouples 'i receieved a message' from 'i'm taking a long while to build a study', since API gateway automatically throws a timeout error at 29 seconds of runtime.
ff9cfad
to
597a2f9
Compare
597a2f9
to
628df18
Compare
parsed_url = urllib.parse.urlparse(config["url"]) | ||
if ( | ||
not parsed_url.netloc == "github.com" | ||
or not parsed_url.path.startswith("/smart-on-fhir") |
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.
Should add a trailing slash, else the smart-on-fhir-for-realz
org can send URLs.
This PR adds a mechanism for shipping prepared studies from github directly to sites, by adding a new lambda and an SNS queue with cross-account subscription permissions.