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: ruler menu re-renders on undo collection change #1650

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

kswenson
Copy link
Member

[PT-188548516]

The PT story mentions a React warning which is a duplicate of another PT story and an MST warning, which is addressed in this PR. The error occurred in the case table/card inspector's ruler menu, which was accessing a stale collection that no longer existed after the undo. The fix is to make the RulerMenuList an observer, so that it re-renders when the collections change, flushing any stale collection references.

Copy link

codecov bot commented Nov 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.61%. Comparing base (44ec8a3) to head (a867156).
Report is 31 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1650      +/-   ##
==========================================
- Coverage   85.69%   85.61%   -0.08%     
==========================================
  Files         601      601              
  Lines       30550    30551       +1     
  Branches     7832     8421     +589     
==========================================
- Hits        26179    26156      -23     
+ Misses       4216     4072     -144     
- Partials      155      323     +168     
Flag Coverage Δ
cypress 75.10% <100.00%> (-0.11%) ⬇️
jest 52.70% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

cypress bot commented Nov 24, 2024

codap-v3    Run #5356

Run Properties:  status check passed Passed #5356  •  git commit b466d3364f: fix: ruler menu re-renders on undo collection change (#1650)
Project codap-v3
Branch Review main
Run status status check passed Passed #5356
Run duration 05m 49s
Commit git commit b466d3364f: fix: ruler menu re-renders on undo collection change (#1650)
Committer Kirk Swenson
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 36
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 220
View all changes introduced in this branch ↗︎

@kswenson kswenson force-pushed the 188548516-fix-ruler-menu-undo branch from dddbf34 to a867156 Compare November 25, 2024 01:08
@kswenson kswenson requested a review from eireland November 25, 2024 01:16
@kswenson kswenson marked this pull request as ready for review November 25, 2024 01:16
Copy link
Contributor

@eireland eireland left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@kswenson kswenson merged commit b466d33 into main Nov 26, 2024
20 of 21 checks passed
@kswenson kswenson deleted the 188548516-fix-ruler-menu-undo branch November 26, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants