-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: undoing and redoing parameter events #6721
Conversation
17c3cc2
to
ed3063b
Compare
ed3063b
to
2facdad
Compare
Unskipped the unnamed caller tests because after changes to #6718 these are no longer broken. |
blocks/procedures.js
Outdated
return null; | ||
} | ||
const params = this.getProcedureModel().getParameters(); | ||
if (!params.length && this.hasStatements_) return; |
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.
nit: add undefined to the return type for this function
(nit because i'm not sure anything is currently checking/enforcing these types...?)
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.
Ah whoops, thanks for the catch. This actually needs to return null
, not undefined
!
The basics
npm run format
andnpm run lint
The details
Resolves
Fixes #6040
Work on #6526
Proposed Changes
Fixes two bugs found with undo and redo and parameters:
Reason for Changes
Fixing bugs is fun!
Test Coverage
Added tests for undoing and redoing:
Also changes a bunch of tests to properly tick the clock instead of calling
compose
or doing other things.Documentation
N/A
Additional Information
Had to skip some tests for dealing with unnamed procedures, because once I fixed them to properly tick the clock, I found out they were broken. They are fixed in a follow-up PR.
Dependent on #6718