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 two of the missing invocation routes to FastAPI #17237

Merged
merged 34 commits into from Jan 16, 2024

Conversation

heisner-tillman
Copy link
Contributor

@heisner-tillman heisner-tillman commented Jan 2, 2024

This is a part of #10889 and continues the work done in #16707.

Summary

  • Refactored API routes
    • POST: /api/invocations/from_store
    • GET: /api/invocations
    • GET: /api/workflows/{workflow_id}/invocations
    • GET: /api/workflows/{workflow_id}/usage
  • Added pydantic models to input and return
  • 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#/workflows

image

@heisner-tillman heisner-tillman marked this pull request as draft January 2, 2024 14:10
@github-actions github-actions bot added this to the 24.0 milestone Jan 2, 2024
@heisner-tillman heisner-tillman force-pushed the invocations_ branch 2 times, most recently from 6adb682 to e69078c Compare January 11, 2024 14:24
lib/galaxy/schema/invocation.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/workflows.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/workflows.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/workflows.py Outdated Show resolved Hide resolved
lib/galaxy/webapps/galaxy/api/workflows.py Outdated Show resolved Hide resolved
@heisner-tillman heisner-tillman marked this pull request as draft January 16, 2024 11:59
@heisner-tillman heisner-tillman changed the title Refactor the missing invocation routes to FastAPI Refactor two of the missing invocation routes to FastAPI Jan 16, 2024
@heisner-tillman heisner-tillman marked this pull request as ready for review January 16, 2024 12:12
@mvdbeek mvdbeek merged commit 1e3051d into galaxyproject:dev Jan 16, 2024
58 checks passed
@mvdbeek
Copy link
Member

mvdbeek commented Jan 16, 2024

Thank you, great work as usual @heisner-tillman!

Copy link

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

@bgruening bgruening added the kind/refactoring cleanup or refactoring of existing code, no functional changes label Jan 16, 2024
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

3 participants