Skip to content

Comments

[PER-10447] Web app not refreshing consistently#921

Open
aasandei-vsp wants to merge 2 commits intomainfrom
PER-10447-inconsistent-refresh
Open

[PER-10447] Web app not refreshing consistently#921
aasandei-vsp wants to merge 2 commits intomainfrom
PER-10447-inconsistent-refresh

Conversation

@aasandei-vsp
Copy link
Contributor

@aasandei-vsp aasandei-vsp commented Feb 17, 2026

PER-10447

STEPS TO TEST

Delete record

  1. Log in to existing account or create a new one
  2. Upload multiple files
  3. Delete one of the files
    EXPECTED: The deleted file will disappear from the list of records/folders.

Delete folder

  1. Log in to existing account or create a new one
  2. Create a folder
  3. Delete the folder
    EXPECTED: The deleted folder will disappear from the list of records/folders.

Delete keyword sidebar

  1. Log in to existing account or create a new one
  2. Upload multiple files
  3. Click one of the files
  4. Add multiple keywords to the file
  5. Go to Manage keywords
  6. Delete one of the keywords that has also been added to the file
  7. Close the modal
    EXPECTED: The deleted keyword will no longer appear in the sidepanel of the file

Delete keyword file viewer

  1. Log in to existing account or create a new one
  2. Upload multiple files
  3. Double click one of the files
  4. Add multiple keywords to the file
  5. Go to Manage keywords
  6. Delete one of the keywords that has also been added to the file
  7. Close the modal
    EXPECTED: The deleted keyword will no longer appear in the keywords modal
  8. Close the keywords modal
    EXPECTED: The deleted keyword will no longer appear on the side of the file viewer

!!!!OBSERVATION: The inconsistent reload in the app is not a generic problem, every case presented above had a very specific fix. In order to make the reload more consistent, we would need to go through the whole app and pick each inconsistent behavior one by one.

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.49%. Comparing base (b3c9c11) to head (67c58f7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #921      +/-   ##
==========================================
+ Coverage   48.25%   48.49%   +0.23%     
==========================================
  Files         350      350              
  Lines       11320    11328       +8     
  Branches     1892     1895       +3     
==========================================
+ Hits         5463     5494      +31     
+ Misses       5667     5642      -25     
- Partials      190      192       +2     

☔ 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 changed the title Refresh records/folders list when an item has been deleted [PER-10447] Web app not refreshing consistently Feb 17, 2026
Copy link
Contributor

@slifty slifty left a comment

Choose a reason for hiding this comment

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

The code looks great! Thank you for organizing this so that the two fixes were in separate commits, made it super easy to review.

I did have one place you might consider DRYing, but this was a small enough change that I don't need to do a full additional review / feel free to ignore the thought.

this.keywords = this.currentRecord.TagVOs.filter(
(tag) => !tag.type.includes('type.tag.metadata'),
(tag) =>
!tag.type.includes('type.tag.metadata') &&
Copy link
Contributor

@slifty slifty Feb 17, 2026

Choose a reason for hiding this comment

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

This pair of checks is repeated in two places and is complex enough to not necessarily be clear at a glance what it's doing. All this is to say, if it could be in a named function I think that would DRY it and make it more self-documenting.

E.g. tagExistsAndIsMetadata

@cecilia-donnelly cecilia-donnelly added the QA This issue is ready for QA / user acceptance testing label Feb 17, 2026
When deleting a record or a folder, the current folder was not retrieved
from the BE, so the list would have stale data. The deleted item would
appear as disabled, but it should be removed from the list.

Issue: PER-10447
When removing a keyword from the archive settings, the currently
open file would not be updated and stale keywords would appear.
The current record subscribes to tags changes and then compares
the record keywords with the ones from the archive and makes sure
it only shows the ones that are still present in the archive.

Issue: PER-10447
@aasandei-vsp aasandei-vsp force-pushed the PER-10447-inconsistent-refresh branch from d6a83b6 to 67c58f7 Compare February 20, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QA This issue is ready for QA / user acceptance testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants