Skip to content

Comments

[PER-10392] Update folder with children endpoint#903

Merged
aasandei-vsp merged 4 commits intomainfrom
PER-10392-update-folder-with-children-endpoint
Feb 5, 2026
Merged

[PER-10392] Update folder with children endpoint#903
aasandei-vsp merged 4 commits intomainfrom
PER-10392-update-folder-with-children-endpoint

Conversation

@aasandei-vsp
Copy link
Contributor

@aasandei-vsp aasandei-vsp commented Jan 19, 2026

Solves isssue: https://permanent.atlassian.net/browse/PER-10392

STEPS TO TEST:

Private workspace

  1. Log in or create an account
  2. Upload multiple files at once
  3. Upload files until there is a scroll present on the screen, because not all items fit anymore
    EXPECTED: All files are loading correctly and can be previewed

Record preview

  1. Log in or create an account
  2. Upload multiple files
  3. Double click one of them
    EXPECTED: The file preview appears
  4. Click the right/left arrows to go through multiple files
    EXPECTED: All files should preview correctly.

Change profile information for archive

  1. Log in or create an account
  2. Go to Archive Profile
  3. Upload a new image for the profile
  4. Upload a new image for the banner
  5. Change various data in the form
    EXPECTED: All filled data will remain in the form(especially the image and the banner)
  6. Click the back arrow, the list of records will appear
  7. Go back to the Archive Profile
    EXPECTED: All the data filled at steps 3,4 and 5 is still there(especially the image and the banner)
  8. Refresh the page
    EXPECTED: All the data filled at steps 3,4 and 5 is still there(especially the image and the banner)

@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.15%. Comparing base (41bfdd3) to head (5aec324).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #903      +/-   ##
==========================================
+ Coverage   47.91%   48.15%   +0.23%     
==========================================
  Files         350      350              
  Lines       11321    11317       -4     
  Branches     1894     1890       -4     
==========================================
+ Hits         5425     5450      +25     
+ Misses       5707     5675      -32     
- Partials      189      192       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aasandei-vsp aasandei-vsp force-pushed the PER-10392-update-folder-with-children-endpoint branch 5 times, most recently from d3b69c3 to 0829f95 Compare January 21, 2026 09:59
@aasandei-vsp aasandei-vsp changed the title WIP -- [PER-10392] Update folder with children endpoint [PER-10392] Update folder with children endpoint Jan 22, 2026
Copy link
Member

@cecilia-donnelly cecilia-donnelly left a comment

Choose a reason for hiding this comment

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

It looks like there are some inconsistencies between the endpoints (notably the capitalization of the thumbnail properties) that need to be addressed in the shim/translation that @slifty wrote earlier. Casting the records to any feels risky. Maybe let's chat about the tradeoffs?

@aasandei-vsp aasandei-vsp force-pushed the PER-10392-update-folder-with-children-endpoint branch from 60662bc to e398726 Compare February 2, 2026 12:23
Copy link
Member

@cecilia-donnelly cecilia-donnelly left a comment

Choose a reason for hiding this comment

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

This is working, thank you!

thumbURL200: stelaRecord.thumbUrl200,
thumbURL500: stelaRecord.thumbUrl500,
thumbURL1000: stelaRecord.thumbUrl1000,
thumbURL2000: stelaRecord.thumbUrl2000,
Copy link
Member

Choose a reason for hiding this comment

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

Got it, so this is the new mapping.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, so this is the new mapping.

Yes, it was easier to do this mapping to RecordVO than try to map all URL to camelcase Url.

Copy link
Member

@cecilia-donnelly cecilia-donnelly left a comment

Choose a reason for hiding this comment

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

Sorry, meant to approve just now. :)

@aasandei-vsp
Copy link
Contributor Author

Sorry, meant to approve just now. :)

Thank you!

Copy link
Member

@omnignorant omnignorant left a comment

Choose a reason for hiding this comment

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

This seems to be working! The only minor glitch I observed was that after setting the profile pic and leaving the profile editor, when I returned to it the pic was missing and I had to add it again. It definitely worked the second time and persisted through refreshes.

…dpoint

The endpoint getLeanItems is from the old api and is quite slow, so we
will be using the endpoint from the new api /folder/<folderId>/children instead.
The only place it is used is the data service, so the observable will be
transforming into a promise, which was what the fetchLeanItems method
needed anyways.
… edit

The profile edit component is used for fillind the profile information and
the folder children endpoint provides the data for that. Because the old one
had some different property names, thumbnailURL needs mapping and the archiveNbr
is actually archiveNumber in the new endpoint. Because of the archive number
mismatch, the banner does not update at the moment.

Issue: PER-10392 Stop using folder/getLeanItems
The thumbnail properties in the StelaRecord use camelcase for url
and in the RecordVO it's all caps lock. In order to be consistent
all over the app, all thumbnail properties will use caps lock for
URL. Ex: thumbnailURL200

Issue: PER-10392
The updateRootColumns endpoint uses the archiveNbr property to generate
the image for the banner. The record object has both the archiveNbr and
the archiveNumber, both having the same value. So we will be using the
archiveNbr for consistency, because it is the correct property from
RecordVO.

Issue: PER-10392
@aasandei-vsp aasandei-vsp force-pushed the PER-10392-update-folder-with-children-endpoint branch from e398726 to 5aec324 Compare February 5, 2026 10:02
@aasandei-vsp aasandei-vsp merged commit c7a3874 into main Feb 5, 2026
10 checks passed
@aasandei-vsp aasandei-vsp deleted the PER-10392-update-folder-with-children-endpoint branch February 5, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants