-
Notifications
You must be signed in to change notification settings - Fork 159
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(BA-589): Apply pydantic handling decorator to VFolder APIs in storage-proxy (#3562) #3565
base: feat/add-pydantic-handling-decorator-for-req-res
Are you sure you want to change the base?
refactor(BA-589): Apply pydantic handling decorator to VFolder APIs in storage-proxy (#3562) #3565
Conversation
efcd288
to
5475cce
Compare
I wrote down wrong Jira number in commit messages. |
# import uuid | ||
# from pathlib import Path | ||
# from unittest.mock import AsyncMock | ||
|
||
# import pytest | ||
# from aiohttp import web | ||
|
||
# from ai.backend.common.types import BinarySize, QuotaConfig, QuotaScopeID, QuotaScopeType, VFolderID | ||
# from ai.backend.storage.api.vfolder.manager_handler import VFolderHandler | ||
# from ai.backend.storage.api.vfolder.response_model import ( | ||
# GetVolumeResponseModel, | ||
# NoContentResponseModel, | ||
# ProcessingResponseModel, | ||
# QuotaScopeResponseModel, | ||
# VFolderMetadataResponseModel, | ||
# ) | ||
# from ai.backend.storage.api.vfolder.types import ( | ||
# QuotaScopeIDModel, | ||
# QuotaScopeMetadataModel, | ||
# VFolderIDModel, | ||
# VFolderMetadataModel, | ||
# VolumeIDModel, | ||
# VolumeMetadataListModel, | ||
# VolumeMetadataModel, | ||
# ) |
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.
Why are all the test codes set as comments?
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.
I haven’t yet modified the necessary parts of the test code due to the decorator update, which is causing continuous errors, so I temporarily commented it out as well.
resolves #3562 (BA-589)
Applied pydantic decorator to vfolder APIs in sotrage-proxy.
Tests are not done yet.
Checklist: (if applicable)
ai.backend.test
docs
directory📚 Documentation preview 📚: https://sorna--3565.org.readthedocs.build/en/3565/
📚 Documentation preview 📚: https://sorna-ko--3565.org.readthedocs.build/ko/3565/