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-247, FR-249): open folder explorer from session detail panel using vfolder_mounts #3038

Merged

Conversation

ironAiken2
Copy link
Contributor

@ironAiken2 ironAiken2 commented Jan 15, 2025

resolves #3051 (FR-249)

lablup/backend.ai#3461 PR must be merged first.

This PR makes folder explorer available in the Session Detail Panel.

In versions prior to Backend.AI Core 24.12.0, the vfolder_nodes field is not provided. Therefore, you must use the mounts field of the compute_session_node query.

Mounts field does not provide vfolder name. So we need to use vfolder_mounts field in legacy compute_session query. vfolder_mounts' provide the name of the vfolder in the same order as the mounts' field in compute_session_node'.

Feature:

  • allow to open folder explorer in session detail panel

How to test:

  • checkout Core branch to lablup/backend.ai#3461
  • open session detail panel. you can open session detail panel via using query string (?sessionDetail=)
  • click the folder icon in session detail panel
  • Verify that folder opener works for the vfolder you clicked on (name, contents, etc. match)

Checklist: (if applicable)

  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@github-actions github-actions bot added the size:S 10~30 LoC label Jan 15, 2025
Copy link
Contributor Author

ironAiken2 commented Jan 15, 2025


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.

@ironAiken2 ironAiken2 changed the title feat: open folder explorer from session detail panel feat(FR-249): open folder explorer from session detail panel Jan 15, 2025
Copy link

github-actions bot commented Jan 15, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
4.9% (-0% 🔻)
398/8116
🔴 Branches
4.24% (-0% 🔻)
239/5635
🔴 Functions
2.95% (-0% 🔻)
78/2643
🔴 Lines
4.82% (-0% 🔻)
383/7941

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 9c53670

@ironAiken2 ironAiken2 force-pushed the feat/open-folder-explorer-from-session-detail-panel branch from a864003 to e710c92 Compare January 20, 2025 05:04
@github-actions github-actions bot added area:lib Library and SDK related issue. size:M 30~100 LoC and removed size:S 10~30 LoC labels Jan 20, 2025
@ironAiken2 ironAiken2 force-pushed the feat/open-folder-explorer-from-session-detail-panel branch from e710c92 to 8468084 Compare January 20, 2025 05:23
@github-actions github-actions bot added size:S 10~30 LoC and removed size:M 30~100 LoC labels Jan 20, 2025
@ironAiken2 ironAiken2 marked this pull request as ready for review January 20, 2025 05:35
@ironAiken2 ironAiken2 changed the title feat(FR-249): open folder explorer from session detail panel feat(FR-249): open folder explorer from session detail panel using vfolder_mounts Jan 20, 2025
@ironAiken2 ironAiken2 changed the title feat(FR-249): open folder explorer from session detail panel using vfolder_mounts feat(FR-247, FR-249): open folder explorer from session detail panel using vfolder_mounts Jan 20, 2025
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM

@ironAiken2 ironAiken2 force-pushed the feat/open-folder-explorer-from-session-detail-panel branch 2 times, most recently from 61191e3 to b9992c8 Compare January 24, 2025 06:49
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

Copy link

graphite-app bot commented Jan 24, 2025

Merge activity

…using vfolder_mounts (#3038)

resolves #3051 (FR-249)
<!-- replace NNN, MMM with the GitHub issue number and the corresponding Jira issue number. -->

>lablup/backend.ai#3461 PR must be merged first.

<!--
Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes,
and how it affects the users and other developers.
-->

This PR makes folder explorer available in the Session Detail Panel.

In versions prior to Backend.AI Core 24.12.0, the vfolder_nodes field is not provided. Therefore, you must use the `mounts` field of the `compute_session_node` query.

Mounts field does not provide vfolder name. So we need to use `vfolder_mounts` field in legacy `compute_session` query.  vfolder_mounts' provide the name of the vfolder in the same order as the `mounts' field in `compute_session_node'.

**Feature:**
- allow to open folder explorer in session detail panel

**How to test:**
- checkout Core branch to [lablup/backend.ai#3461](lablup/backend.ai#3461)
- open session detail panel. you can open session detail panel via using query string (?sessionDetail=<sessionID>)
- click the folder icon in session detail panel
- Verify that folder opener works for the vfolder you clicked on (name, contents, etc. match)

**Checklist:** (if applicable)

- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
@yomybaby yomybaby force-pushed the feat/open-folder-explorer-from-session-detail-panel branch from b9992c8 to 9c53670 Compare January 24, 2025 10:02
@graphite-app graphite-app bot merged commit 9c53670 into main Jan 24, 2025
7 checks passed
@graphite-app graphite-app bot deleted the feat/open-folder-explorer-from-session-detail-panel branch January 24, 2025 10:04
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. size:S 10~30 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Link the VFolder name to open the Folder Explorer in Session detail Panel
3 participants