[PER-10476] Skip folder fetches for synthetic folders without a folderId#1087
Open
aasandei-vsp wants to merge 1 commit into
Open
[PER-10476] Skip folder fetches for synthetic folders without a folderId#1087aasandei-vsp wants to merge 1 commit into
aasandei-vsp wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1087 +/- ##
==========================================
+ Coverage 52.15% 52.34% +0.19%
==========================================
Files 354 354
Lines 12090 12094 +4
Branches 2186 2187 +1
==========================================
+ Hits 6305 6331 +26
+ Misses 5560 5537 -23
- Partials 225 226 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Opening /app/shares triggered GET /api/v2/folder?folderIds[]=undefined (500): the sidebar fetched the current folder to get its displayTime, but the Shares workspace is a synthetic FolderVO with no folderId. Guard the sidebar fetch so only folders with a real folderId are requested, and filter invalid ids in FolderRepo.getStelaFolders, skipping the request entirely when none remain. Issue: PER-10476
aasandei-vsp
force-pushed
the
PER-10476-get-folder-extra-call-bug
branch
from
July 23, 2026 11:20
62363f9 to
44c4686
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opening /app/shares triggered GET /api/v2/folder?folderIds[]=undefined (500): the sidebar fetched the current folder to get its displayTime, but the Shares workspace is a synthetic FolderVO with no folderId. Guard the sidebar fetch so only folders with a real folderId are requested, and filter invalid ids in FolderRepo.getStelaFolders, skipping the request entirely when none remain.
This is just a small bug that I found, not the full story.
Issue: PER-10476
Subtask: PER-10676
Manual test cases — Shares page
folderIds[]=undefinedfix needShares page load
/app/shares(make sure you have no shared items) and filter the Network tab(after you inspected the element) byv2/folder.folderIds[]=undefinedis sent, no 500 responseSidebar on the Shares page
/app/shares, open the sidebar.folderIds[]=149939— neverundefined.v2/folderrequest at all.Regression — My Files
/app/private, open any folder, and leave nothing selected so the sidebar shows the current folder.folderIds[].