-
Notifications
You must be signed in to change notification settings - Fork 1k
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 ItemTags API to FastAPI #17064
Conversation
tagged_item_id and tagged_item_tag
a2ff3b4
to
a10f574
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool indeed! 🚀
Just some minor comments from my side below.
Also, the OpenAPI linting failures seem relevant, and I guess they are somewhat legitimate:
validating _schema.yaml...
[1] _schema.yaml:17120:7 at #/paths/~1api~1histories~1{history_id}~1contents~1{id}~1tags/get/parameters
The operation does not define the path parameter `{history_id}` expected by path `/api/histories/{history_id}/contents/{id}/tags`.
17118 | 'get':
17119 | 'operationId': 'index_api_histories__history_id__contents__id__tags_get'
17120 | 'parameters':
17121 | - 'description': 'history_content_id'
17122 | 'in': 'path'
Error was generated by the path-parameters-defined rule.
Maybe we can do some kind of trick/workaround to fix this using https://fastapi.tiangolo.com/advanced/path-operation-advanced-configuration/#custom-openapi-path-operation-schema? 🤔
Relocate ItemTags API test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me!
Thanks again for addressing all comments diligently!
Co-authored-by: David López <[email protected]>
This PR was merged without a "kind/" label, please correct. |
Before galaxyproject#17064 it was possible to create a tag by simply making a POST request like `/api/histories/911dde3ddb677bcd/tags/tag1` , this restores the previous behaviour. Fix BioBlend test failure: https://github.com/galaxyproject/bioblend/actions/runs/7094150509/job/19308900670#step:10:3029
Before galaxyproject#17064 it was possible to create a tag by simply making a POST request like `/api/histories/911dde3ddb677bcd/tags/tag1` , this restores the previous behaviour. Fix BioBlend test failure: https://github.com/galaxyproject/bioblend/actions/runs/7094150509/job/19308900670#step:10:3029
What did you do?
lib/galaxy_test/api/
ItemTags
API logic so all the logic is contained in theItemTagsManager
classrelated to #10889
Why did you make this change?
This is part of the efforts to migrate the full Galaxy API to FastAPI see #10889.
How to test the changes?
License