-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat(editor): auto commit before save; add onBeforeEditMode
callback
#1353
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1353 +/- ##
========================================
+ Coverage 99.5% 99.5% +0.1%
========================================
Files 199 199
Lines 21571 21574 +3
Branches 7203 7203
========================================
+ Hits 21457 21460 +3
Misses 114 114 ☔ View full report in Codecov by Sentry. |
awesome, so I assume the Duration problem that I described earlier is all gone now that you use the editor commit? |
yep. additionally I've made sure to only call it if the respective save button is the same as the active editor (multirow edit). hmm seems example16 is failing in e2e tests. will have to check whehter its due to my changes |
nahhh forget about it, it's a flaky Cypress tests, it fails every 20 runs or so. The auto-scroll speed is not entirely consistent, I typically just rerun the test and it passes every single time afterward. I wish that Cypress had an option to rerun the entire spec instead of just @zewa666 so unless you have other things in mind, I'm expecting to push a new release tomorrow. I think pretty much covered all small fixes I could get since I'm approaching the end of what I'm able to test in SlickGrid core file (~100 lines left to test, but I'll probably stop soon since they will require too much effort to find how to test them all). It's also nice to see that the amount of Cypress E2E tests also increased quite a lot in this repo, especially since latest v4.x, more tests is always good :) |
onBeforeEditMode
callback
@zewa666 Totally out of topic but didn't want to open a new discussion or anything... I just added a new Column option |
This addresses the latest review feedback by adding the onBeforeEditMode callback and commiting active changes before running save.
related issue ##1299