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

Implement workflow dags endpoint #1330

Merged
merged 10 commits into from
May 19, 2023

Conversation

likawind
Copy link
Contributor

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

  • I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
  • I have performed a self-review of my code.
  • I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
  • If this is a new feature, I have added unit tests and integration tests.
  • I have run the integration tests locally and they are passing.
  • I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
  • All features on the UI continue to work correctly.
  • Added one of the following CI labels:
    • run_integration_test: Runs integration tests
    • skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

@likawind likawind requested review from eunice-chan and agiron123 May 16, 2023 22:29
@likawind likawind added the run_integration_test Triggers integration tests label May 16, 2023
Copy link
Contributor

@eunice-chan eunice-chan left a 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
Copy link
Contributor

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.

@likawind likawind requested a review from eunice-chan May 17, 2023 20:29
Copy link
Contributor

@eunice-chan eunice-chan left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good

Copy link
Contributor

@agiron123 agiron123 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 here, once @eunice-chan's comments are addressed you can go ahead and merge.

@likawind likawind force-pushed the eng-2847-m1-implement-wfiddags-endpoint-with branch from 76ae52b to ad3b740 Compare May 18, 2023 20:34
@likawind likawind merged commit 52ad125 into main May 19, 2023
@likawind likawind deleted the eng-2847-m1-implement-wfiddags-endpoint-with branch May 22, 2023 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run_integration_test Triggers integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants