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

Refactor models enums to eliminate schema dependency on model layer. #16080

Merged
merged 2 commits into from
May 13, 2023

Conversation

jmchilton
Copy link
Member

This is a piece that is needed to create a schema package - which is implemented in #15639 and I would like to have available in general to write higher-level API tests that do more validation with less code but without bringing in heavy dependencies on the model layer either.

How to test the changes?

(Select all options that apply)

  • This is a refactoring of components with existing test coverage.

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

jmchilton added 2 commits May 12, 2023 10:05
This is a piece that is needed to create a schema package - which I would really like to have around for galaxyproject#15639 and to in general write higher-level API tests.
@jmchilton jmchilton added kind/refactoring cleanup or refactoring of existing code, no functional changes area/API area/packaging labels May 12, 2023
@jmchilton jmchilton marked this pull request as ready for review May 12, 2023 21:04
@github-actions github-actions bot added this to the 23.1 milestone May 12, 2023
Copy link
Contributor

@davelopez davelopez left a comment

Choose a reason for hiding this comment

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

Thank you! I should have done that from the beginning! 😅

We move the rest of the enums defined in models to the schema as we continue migrating them right?

@bgruening
Copy link
Member

Restarted the 2 failing tests and now everything is green.
Thanks @jmchilton

@bgruening bgruening merged commit ad5ca5c into galaxyproject:dev May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/API area/packaging kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants