Commit 160c5e5
committed
Resolves #4311 ([FR-1498](https://lablup.atlassian.net/browse/FR-1498))
## Summary
This PR fixes a bug where VirtualFolder storage paths incorrectly included hyphens from quota scope IDs and vfolder IDs, causing issues with storage location mapping.
The full path format should be like below:
```
f38dea2350fa42a0b5ae338f5f4693f4/bd/6e/e89fa47145a1b2d00ea0ef9b9051
```
## Changes
- Remove hyphens from quota scope IDs when constructing storage paths in `useVirtualFolderNodePath.ts`
- Remove hyphens from vfolder IDs when constructing storage paths
- Update UI display in `VirtualFolderPath.tsx` to show truncated paths without hyphens
## Why This Fix Is Needed
VirtualFolder storage paths should not contain hyphens (-) from the various ID values when used as actual filesystem paths. The hyphens were causing mismatches between expected and actual storage locations.
## Testing
- Verify that VirtualFolder paths are correctly generated without hyphens
- Ensure path display in UI shows properly truncated paths
- Confirm storage operations work correctly with the new path format
[FR-1498]: https://lablup.atlassian.net/browse/FR-1498?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 16eaa65 commit 160c5e5
File tree
2 files changed
+6
-4
lines changed- react/src
- components/VirtualFolderNodeItems
- hooks
2 files changed
+6
-4
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments