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

Eng 2702 Implement v2 workflow metadata routes #1151

Merged
merged 11 commits into from
Apr 3, 2023

Conversation

likawind
Copy link
Contributor

Describe your changes and why you are making these changes

This PR implements 2 workflow metadata routes: dag_get and dag_result_get. Besides following standard RTK boilerplate introduced in #1148 , we added a few adjustments:

  • Moved all go response structs to response package so that it's easier to maintain 1-1 mapping against UI codes
  • Marked all existing response structs in UI code as deprecated.

Related issue number (if any)

ENG-2702

Tests

Compiles
Manual QA WIP

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)

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a deprecated handler, right? Is there some way we can differentiate it from the v2 handlers? Maybe either appending deprecated to this or v2 to the new ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's a good idea!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually this file shouldn't be included, removed

Copy link
Contributor

@saurav-c saurav-c left a comment

Choose a reason for hiding this comment

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

Left a couple minor comments, otherwise looks great! I like the clean implementation for generating the response objects 😎

src/golang/cmd/server/handler/v2/dag_get.go Outdated Show resolved Hide resolved
…g-2702-m1-implement-workflow-metadata-routes
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@likawind likawind changed the base branch from eng-2698-m1-implement-v2-api-framework to main April 3, 2023 21:56
@likawind likawind added the run_integration_test Triggers integration tests label Apr 3, 2023
@likawind likawind merged commit 10b1822 into main Apr 3, 2023
@vsreekanti vsreekanti deleted the eng-2702-m1-implement-workflow-metadata-routes branch April 4, 2023 18:33
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