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

feat(FR-372): support id based object resolution #3040

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Jan 15, 2025

resolves #3039 (FR-372)
related PR: lablup/backend.ai#3451

Adds support for vfolder ID-based operations in the backend client and updates related components to handle both name-based and ID-based folder operations. This change enables more reliable folder management by using unique IDs instead of potentially ambiguous folder names.

Changes:

  • Introduces vfolder-id-based feature flag for manager versions 25.1.0, 24.09.5, and 24.03.11
  • Updates folder operations (clone, rename, share, info) to use folder IDs when supported
  • Modifies file operations within folders to use the appropriate identifier
  • Updates UI components to handle both ID and name-based operations seamlessly

How to check:

  1. checkout core branch. refer: fix(BA-515): Let the vfolder REST API accept vfolder UUIDs as intended backend.ai#3451
  2. check BA-518 in webui part.
  3. modify manager compatible versions in esm file for testing

Checklist:

  • Documentation
  • Minimum required manager version: 24.03.12, 24.09.6, or 25.1.0
  • Test case(s) to demonstrate the difference of before/after

@github-actions github-actions bot added area:lib Library and SDK related issue. size:M 30~100 LoC labels Jan 15, 2025
Copy link
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

github-actions bot commented Jan 15, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 4.93% 398/8072
🔴 Branches 4.27% 239/5601
🔴 Functions 2.95% 78/2640
🔴 Lines 4.85% 383/7897

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 85cae43

Copy link
Contributor Author

agatha197 commented Jan 15, 2025

Merge activity

  • Jan 15, 5:49 AM EST: The merge label 'flow:hotfix' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 15, 5:49 AM EST: The merge label 'flow:hotfix' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 15, 5:49 AM EST: The merge label 'flow:hotfix' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 17, 12:46 AM EST: A user added this pull request to the Graphite merge queue.
  • Jan 17, 12:48 AM EST: A user merged this pull request with the Graphite merge queue.

@agatha197 agatha197 added urgency:5 It is imperative that action be taken right away. urgency:blocker IT SHOULD BE RESOLVED BEFORE DISTRIBUTING labels Jan 15, 2025 — with Graphite App
@agatha197 agatha197 requested a review from fregataa January 15, 2025 10:50
@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from 2463346 to ce97896 Compare January 15, 2025 11:02
@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from ce97896 to 8cda7c0 Compare January 16, 2025 01:34
@ironAiken2 ironAiken2 self-requested a review January 16, 2025 01:42
ironAiken2

This comment was marked as resolved.

@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from 8cda7c0 to 433194e Compare January 16, 2025 02:11
@agatha197

This comment was marked as resolved.

ironAiken2

This comment was marked as resolved.

react/src/components/ModelCardModal.tsx Outdated Show resolved Hide resolved
src/lib/backend.ai-client-esm.ts Show resolved Hide resolved
@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from 433194e to 19f49e7 Compare January 16, 2025 02:51
ironAiken2

This comment was marked as resolved.

@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from 19f49e7 to 1eb8d27 Compare January 16, 2025 03:27
@agatha197 agatha197 requested a review from ironAiken2 January 16, 2025 03:27
@agatha197 agatha197 requested a review from yomybaby January 16, 2025 03:27
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch 2 times, most recently from d708bec to ab1bf24 Compare January 16, 2025 07:36
@github-actions github-actions bot added size:L 100~500 LoC and removed size:M 30~100 LoC labels Jan 16, 2025
yomybaby

This comment was marked as resolved.

yomybaby

This comment was marked as duplicate.

@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from ab1bf24 to be1b7af Compare January 16, 2025 08:19
@github-actions github-actions bot added size:M 30~100 LoC and removed size:L 100~500 LoC labels Jan 16, 2025

This comment was marked as resolved.

@agatha197 agatha197 requested a review from yomybaby January 16, 2025 08:21
@yomybaby yomybaby requested a review from ironAiken2 January 16, 2025 08:49
src/components/backend-ai-data-view.ts Outdated Show resolved Hide resolved
@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from be1b7af to 13c06f7 Compare January 16, 2025 09:22
@agatha197 agatha197 requested a review from yomybaby January 16, 2025 09:23
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM

@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from 13c06f7 to 83395f4 Compare January 16, 2025 12:28
@agatha197 agatha197 requested a review from ironAiken2 January 16, 2025 12:28
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM

resolves #3039 (FR-372)
related PR: lablup/backend.ai#3451

Adds support for vfolder ID-based operations in the backend client and updates related components to handle both name-based and ID-based folder operations. This change enables more reliable folder management by using unique IDs instead of potentially ambiguous folder names.

**Changes:**
- Introduces `vfolder-id-based` feature flag for manager versions 25.1.0, 24.09.5, and 24.03.11
- Updates folder operations (clone, rename, share, info) to use folder IDs when supported
- Modifies file operations within folders to use the appropriate identifier
- Updates UI components to handle both ID and name-based operations seamlessly

**How to check:**
1. checkout core branch. refer: lablup/backend.ai#3451
2. check [BA-518](https://lablup.atlassian.net/browse/BA-518) in webui part.
3. modify manager compatible versions in esm file for testing

**Checklist:**
- [ ] Documentation
- [x] Minimum required manager version: 24.03.12, 24.09.6, or 25.1.0
- [ ] Test case(s) to demonstrate the difference of before/after

[BA-518]: https://lablup.atlassian.net/browse/BA-518?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@agatha197 agatha197 force-pushed the feature/vfolder-id-based-operations branch from 83395f4 to 85cae43 Compare January 17, 2025 05:47
@graphite-app graphite-app bot merged commit 85cae43 into main Jan 17, 2025
7 checks passed
@graphite-app graphite-app bot deleted the feature/vfolder-id-based-operations branch January 17, 2025 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:lib Library and SDK related issue. flow:hotfix size:M 30~100 LoC urgency:blocker IT SHOULD BE RESOLVED BEFORE DISTRIBUTING urgency:5 It is imperative that action be taken right away.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vfolder Refactoring - support id based object resolution
4 participants