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

fix: ComputeSessionList GraphQL query raising 400 #1343

Merged
merged 17 commits into from
Jul 3, 2023
Merged

Conversation

kyujin-cho
Copy link
Member

This PR updates both sessions.vfolder_mounts and kernels.vfolder_mounts to match new VFolderID format.

@github-actions github-actions bot added comp:manager Related to Manager component require:db-migration Automatically set when alembic migrations are added or updated size:L 100~500 LoC labels Jun 22, 2023
@kyujin-cho kyujin-cho added this to the 23.03 milestone Jun 22, 2023
@fregataa
Copy link
Member

let's update news fragment. This pr update VFolderID to handle null quota_scope_id field, so it would be good to mention about it.

from sqlalchemy.sql.expression import bindparam

from ai.backend.common.types import VFolderMount
from ai.backend.manager.models import SessionRow, kernels, vfolders
Copy link
Member

Choose a reason for hiding this comment

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

It is better to avoid directly import the model definitions in alembic migration but manually define the table schema with only relevant columns.
If the database schema evolves in the future, these imports may not represent the state when this migration script is written.

@achimnol achimnol added the type:bug Reports about that are not working label Jun 29, 2023
- Fetch only necessary base branch & PR commits.
achimnol added a commit that referenced this pull request Jun 30, 2023
- Fetch only necessary base branch & PR commits.

Backported-from: #1343
Backported-to: main
achimnol added a commit that referenced this pull request Jun 30, 2023
- Fetch only necessary base branch & PR commits.

Backported-from: #1343
Backported-to: main
@kyujin-cho kyujin-cho added the urgency:blocker IT SHOULD BE RESOLVED BEFORE NEXT RELEASE! label Jul 2, 2023
@kyujin-cho
Copy link
Member Author

We have a quota scope ID syntax to come, which is being discussed on #1354. Therefore delaying merge of this branch until we're done with the PR.

@kyujin-cho kyujin-cho added this pull request to the merge queue Jul 3, 2023
@kyujin-cho kyujin-cho removed this pull request from the merge queue due to a manual request Jul 3, 2023
@kyujin-cho kyujin-cho added this pull request to the merge queue Jul 3, 2023
@kyujin-cho kyujin-cho removed this pull request from the merge queue due to a manual request Jul 3, 2023
@kyujin-cho kyujin-cho added this pull request to the merge queue Jul 3, 2023
Merged via the queue into main with commit 0fb2f7f Jul 3, 2023
@kyujin-cho kyujin-cho deleted the fix/session-gql-400 branch July 3, 2023 16:17
kyujin-cho added a commit that referenced this pull request Jul 3, 2023
Co-authored-by: Joongi Kim <joongi@lablup.com>
Backported-from: main
Backported-to: 23.03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component require:db-migration Automatically set when alembic migrations are added or updated size:L 100~500 LoC type:bug Reports about that are not working urgency:blocker IT SHOULD BE RESOLVED BEFORE NEXT RELEASE!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants