-
Notifications
You must be signed in to change notification settings - Fork 10.5k
fix: deleteAnnotationElement takes a full editor object #20413
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
base: master
Are you sure you want to change the base?
fix: deleteAnnotationElement takes a full editor object #20413
Conversation
|
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/dae3c6d7b9d0885/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/6f739c5c046b4d4/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/dae3c6d7b9d0885/output.txt Total script time: 19.63 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/6f739c5c046b4d4/output.txt Total script time: 42.41 mins
|
|
So it's a fixing a real issue I can easily reproduce in moving an existing annotation from a page to another. pdf.js/test/integration/stamp_editor_spec.mjs Lines 1420 to 1445 in 2cc809a
The zoom level must be small enough to be sure we've the two pages in the view and then move the stamp from page 1 to the top of page 2 to make sure that everything is fine. In order to just run your test you can set fdescribe or fit on it and then run it with npx gulp integrationtest.Tell me if you don't want to write it and I'll merge your PR and will do a follow-up with a test. |
|
I added an integration test, and checked that it fails without this change (unfamiliar with the testing framework, so please lmk if there is a better way to write it). |
timvandermeij
left a comment
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 good. Please squash the commits into one after addressing the comment, and then we can trigger the integration tests on the bots.
bc53e29 to
7d55b6e
Compare
|
Hey @timvandermeij thanks for taking a look! I've addressed the comment and squashed the changes together. |
timvandermeij
left a comment
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 good to me, with passing integration tests; thank you! @calixteman Feel free to merge this if you're also OK with this version.
|
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/431e3b62645872c/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 1 Live output at: http://54.193.163.58:8877/497750ef6abd11f/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/431e3b62645872c/output.txt Total script time: 20.22 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/497750ef6abd11f/output.txt Total script time: 44.75 mins
|
8a2569e to
4a87426
Compare
I noticed that
addDeletedAnnotationElementtakes an editor object not an annotation element id. I think this is papered over by the creation of a fake editor, which then results in the deletion of the annotation.However, I think this change preserves the types, and keeps the deletion list accurate.