-
Notifications
You must be signed in to change notification settings - Fork 40
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
Update MathJS to v12.4.3 and handle the new approach to scope/partitioned map #1371
Conversation
3 flaky tests on run #3835 ↗︎
Details:
table.spec.ts • 1 flaky test
slider.spec.ts • 2 flaky tests
Review all test suite changes for PR #1371 ↗︎ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1371 +/- ##
==========================================
- Coverage 85.84% 83.03% -2.82%
==========================================
Files 521 521
Lines 25266 25281 +15
Branches 6875 6831 -44
==========================================
- Hits 21690 20992 -698
- Misses 3301 3983 +682
- Partials 275 306 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thx for doing this. Quick review for now -- I'll do a more thorough review on the next round. Two suggestions before that, however:
- There's a failing jest test that appears related that should be fixed. (I suspect the failing cypress test is just one of our usual flaky ones.)
- A comment that explains how this interacts with MathJS would be very helpful. I'm interested in the question of whether we're relying on documented aspects of MathJS, in which case the change that triggered this should have been semver-major, or perhaps more likely, we're relying on undocumented implementation details, in which case we should at least document that fact so that we'll know where to start looking the next time this comes up and you're not around. 😉
Also, since |
@kswenson, sorry, I actually forgot to push the last changes, that's why the test was broken. The last commit fixes that and reactors a few things a bit. I've actually added a type called
I based that implementation on the fact that the official documentation described scope as an object that implements the Map interface, and also on this example (which seems to be outdated now, btw): My last commit adds a comment about all that where the MathJSPartitionedMap is defined. I'm also talking directly to MathJS maintainer: |
@kswenson, small update. I think this long conversation between the MathJS maintainer and me can actually answer some of your questions whether we're using documented or undocumented features (there's no clear answer, but I think we're fine at this point): josdejong/mathjs#3150 I'm going to modify this PR to implement |
Okay, I've just pushed the final commit. I followed the suggested approach: I hope that new types and variable names are also clearer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks great! Thx for the fix and for contacting the maintainer to get some additional guidance.
Co-authored-by: Kirk Swenson <[email protected]>
Co-authored-by: Kirk Swenson <[email protected]>
https://www.pivotaltracker.com/story/show/187950451
This fix doesn't look pretty, but it seems to work. @kswenson, you're right that the problematic change on the MathJS side was introduced here: josdejong/mathjs#3150.