-
Notifications
You must be signed in to change notification settings - Fork 18
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
Implement workflow dags endpoint #1330
Conversation
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 want a small change in the test. You can refer to the V2 tests I wrote up as reference. Other than that, it looks good to go!
resp = self.get_response(self.GET_DAGS_TEMPLATE % flow_id) | ||
resp = resp.json() | ||
|
||
assert len(resp) == 2 |
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.
To check the format of the response, I cast to a Response class object. I think you can do that for this too. As bonus, it will be easier for me to integrate into the SDK if the Response classes are already written up.
…g-2847-m1-implement-wfiddags-endpoint-with
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! Looks good
…g-2847-m1-implement-wfiddags-endpoint-with
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.
looks good here, once @eunice-chan's comments are addressed you can go ahead and merge.
76ae52b
to
ad3b740
Compare
Describe your changes and why you are making these changes
This PR implements workflow//dags endpoint that allows UI to retrieve workflow's latest dag when no result is avaiable.
Related issue number (if any)
ENG-2847
Loom demo (if any)
backend integration test included, and should be sufficient as no client is calling this endpoint yet.
Checklist before requesting a review
python3 scripts/run_linters.py -h
for usage).run_integration_test
: Runs integration testsskip_integration_test
: Skips integration tests (Should be used when changes are ONLY documentation/UI)