Add missing admin endpoints for assets - #681
Merged
Merged
Conversation
GianlucaFicarelli
force-pushed
the
admin_asset_endpoints_3
branch
2 times, most recently
from
July 22, 2026 15:51
98a8565 to
1eae09c
Compare
GianlucaFicarelli
force-pushed
the
admin_asset_endpoints_3
branch
from
July 22, 2026 15:57
1eae09c to
9de99ba
Compare
eleftherioszisis
approved these changes
Jul 23, 2026
eleftherioszisis
left a comment
Contributor
There was a problem hiding this comment.
Nice, thanks for adding them.
GianlucaFicarelli
force-pushed
the
admin_asset_endpoints_3
branch
from
July 23, 2026 06:24
9de99ba to
79a06b1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the following admin endpoints for assets, mirroring the existing user-facing endpoints in
routers/asset.py:POST /admin/{entity_route}/{entity_id}/assets— small file uploadPOST /admin/{entity_route}/{entity_id}/assets/register— register existing cloud assetGET /admin/{entity_route}/{entity_id}/assets/{asset_id}/list— list directory contentsPOST /admin/{entity_route}/{entity_id}/assets/multipart-upload/initiatePOST /admin/{entity_route}/{entity_id}/assets/{asset_id}/multipart-upload/completePOST /admin/{entity_route}/{entity_id}/assets/directory/multipart-upload/initiatePOST /admin/{entity_route}/{entity_id}/assets/{asset_id}/directory/multipart-upload/completeAll new endpoints delegate to
_unverifiedfunctions, avoiding code duplication. A_get_entity_and_vlabhelper inservice/admin.pyhandles the auth-bypass entity + virtual lab lookup shared across the write endpoints.