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

Migrate a part of the jobs API to Fast API #16778

Merged
merged 110 commits into from Nov 22, 2023
Merged

Conversation

heisner-tillman
Copy link
Contributor

@heisner-tillman heisner-tillman commented Oct 3, 2023

This is a part of #10889.

Summary

  • Refactored API routes
  • Added pydantic models
  • Operations now return pydanctic models
  • Removed the mapping to the legacy routes

How to test the changes?

  • This is a refactoring of components with existing test coverage.
  • I added automated tests for the operations missing tests
  • Instructions for manual testing are as follows:
    You can find the interactive API documentation here: http://127.0.0.1:8080/api/docs#/jobs

image

License

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

@heisner-tillman heisner-tillman marked this pull request as draft October 3, 2023 15:50
@github-actions github-actions bot added this to the 23.2 milestone Oct 3, 2023
lib/galaxy/schema/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/schema/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/schema/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/schema/jobs.py Show resolved Hide resolved
lib/galaxy/schema/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/schema/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/jobs.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/jobs.py Outdated Show resolved Hide resolved
lib/galaxy_test/api/test_jobs.py Outdated Show resolved Hide resolved
@mvdbeek
Copy link
Member

mvdbeek commented Nov 8, 2023

Thanks a lot @heisner-tillman, this is shaping up very nicely!

Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

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

Very nice work, thanks so much @heisner-tillman!

@mvdbeek mvdbeek merged commit e95e60a into galaxyproject:dev Nov 22, 2023
50 of 51 checks passed
Copy link

This PR was merged without a "kind/" label, please correct.

@davelopez davelopez added the kind/refactoring cleanup or refactoring of existing code, no functional changes label Nov 22, 2023
nsoranzo added a commit to nsoranzo/galaxy that referenced this pull request Dec 4, 2023
Fix 500 response when searching jobs via API as seen in BioBlend
tests on release_23.2 and dev, e.g.:

https://github.com/galaxyproject/bioblend/actions/runs/7090125691/job/19296402084#step:10:3256

Broken in galaxyproject#16778 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/API kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants