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(BA-507): GQL compute_session.vfolder_mounts returns folder id #3461

Merged
merged 5 commits into from
Jan 23, 2025

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented Jan 15, 2025

resolves #3437 (BA-507)

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

📚 Documentation preview 📚: https://sorna--3461.org.readthedocs.build/en/3461/


📚 Documentation preview 📚: https://sorna-ko--3461.org.readthedocs.build/ko/3461/

@fregataa fregataa self-assigned this Jan 15, 2025
@github-actions github-actions bot added comp:manager Related to Manager component size:XS ~10 LoC labels Jan 15, 2025
@fregataa fregataa added this to the 24.03 milestone Jan 15, 2025
@github-actions github-actions bot added area:docs Documentations size:L 100~500 LoC and removed size:XS ~10 LoC labels Jan 15, 2025
@fregataa fregataa modified the milestones: 24.03, 23.09 Jan 15, 2025
@fregataa fregataa force-pushed the fix/resolver-of-vfolder-mounts-in-compute-session branch from cdd752b to df413fc Compare January 15, 2025 06:08
@github-actions github-actions bot added size:XS ~10 LoC size:L 100~500 LoC and removed size:L 100~500 LoC size:XS ~10 LoC labels Jan 15, 2025
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
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.

Please resolve the conflicts :)

@fregataa fregataa force-pushed the fix/resolver-of-vfolder-mounts-in-compute-session branch from 6c6d570 to 34b6c31 Compare January 23, 2025 08:46
@fregataa fregataa requested a review from ironAiken2 January 23, 2025 08:46
@github-actions github-actions bot added size:XS ~10 LoC and removed size:L 100~500 LoC labels Jan 23, 2025
Co-authored-by: octodog <mu001@lablup.com>
@fregataa fregataa modified the milestones: 23.09, 24.09 Jan 23, 2025
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
Collaborator

@HyeockJinKim HyeockJinKim left a comment

Choose a reason for hiding this comment

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

lgtm

@HyeockJinKim HyeockJinKim added this pull request to the merge queue Jan 23, 2025
Merged via the queue into main with commit 83261d2 Jan 23, 2025
23 checks passed
@HyeockJinKim HyeockJinKim deleted the fix/resolver-of-vfolder-mounts-in-compute-session branch January 23, 2025 16:28
lablup-octodog added a commit that referenced this pull request Jan 23, 2025
…3461)

Co-authored-by: octodog <mu001@lablup.com>
Backported-from: main (25.1)
Backported-to: 24.09
Backport-of: 3461
github-merge-queue bot pushed a commit that referenced this pull request Jan 23, 2025
…3461) (#3537)

Co-authored-by: Sanghun Lee <sanghun@lablup.com>
yomybaby pushed a commit to lablup/backend.ai-webui that referenced this pull request Jan 24, 2025
…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
seedspirit pushed a commit that referenced this pull request Feb 4, 2025
seedspirit pushed a commit that referenced this pull request Feb 5, 2025
Yaminyam pushed a commit that referenced this pull request Feb 12, 2025
Yaminyam pushed a commit that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:docs Documentations comp:manager Related to Manager component size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The vfolder_mounts field of the compute session node was not properly resolved.
3 participants