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

Restore dynamic update of mean adornment #1663

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

bfinzer
Copy link
Contributor

@bfinzer bfinzer commented Dec 3, 2024

[#188640918] Bug fix: When points in dot plot are dragged, mean isn't updating

  • This bug first appeared in build 1949, in October, 2024. Some update machinery in data-configuration-model.ts was removed around then so GraphContentModel:updateAdornments was no longer being called when case values are changed. The only thing that needed to be fixed was to increment the DataConfigurationModel's casesChangeCount in handleSetCaseValues. Doing so restored the previous behavior with no apparent added cost.

… updating

* This bug first appeared in build 1949, in October, 2024. Some update machinery in data-configuration-model.ts was removed around then so `GraphContentModel:updateAdornments` was no longer being called when case values are changed. The only thing that needed to be fixed was to increment the `DataConfigurationModel`'s `casesChangeCount` in `handleSetCaseValues`. Doing so restored the previous behavior with no apparent added cost.
@bfinzer bfinzer requested a review from kswenson December 3, 2024 00:54
@bfinzer bfinzer added the v3 CODAP v3 label Dec 3, 2024
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.74%. Comparing base (a588a8e) to head (ba73504).
Report is 12 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (a588a8e) and HEAD (ba73504). Click for more details.

HEAD has 9 uploads less than BASE
Flag BASE (a588a8e) HEAD (ba73504)
cypress 10 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1663       +/-   ##
===========================================
- Coverage   85.78%   67.74%   -18.04%     
===========================================
  Files         604      604               
  Lines       30737    30738        +1     
  Branches     8479     8488        +9     
===========================================
- Hits        26367    20823     -5544     
- Misses       4052     9307     +5255     
- Partials      318      608      +290     
Flag Coverage Δ
cypress 43.56% <0.00%> (-31.81%) ⬇️
jest 52.78% <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 Dec 3, 2024

codap-v3    Run #5431

Run Properties:  status check passed Passed #5431  •  git commit 918716f55a: Merge pull request #1663
Project codap-v3
Branch Review main
Run status status check passed Passed #5431
Run duration 05m 51s
Commit git commit 918716f55a: Merge pull request #1663
Committer William Finzer
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
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 ↗︎

Copy link
Member

@kswenson kswenson left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@bfinzer bfinzer merged commit 918716f into main Dec 3, 2024
12 of 13 checks passed
@bfinzer bfinzer deleted the 188640918-mean-not-updating-under-point-drag-v3 branch December 3, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 CODAP v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants