Skip to content

[api-minor] Change {PDFPageView, PDFThumbnailView}.update to take a parameter object #13973

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

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Sep 4, 2021

  • [api-minor] Change {PDFPageView, PDFThumbnailView}.update to take a parameter object

    The old update-signature started to annoy me back when I added optional content support to the viewer, since we're (often) forced to pass in a bunch of arguments that we don't care about whenever these methods are called.

    This is tagged api-minor since PDFPageView is being used in the pageviewer component example, and it's thus possible that these changes could affect some users; the next commit adds fallback handling for the old format.

  • [GENERIC viewer] Add fallback logic for the old PDFPageView.update method signature

    This is done separately from the previous commit, to make it easier to revert these changes in the future.

… parameter object

The old `update`-signature started to annoy me back when I added optional content support to the viewer, since we're (often) forced to pass in a bunch of arguments that we don't care about whenever these methods are called.

This is tagged `api-minor` since `PDFPageView` is being used in the `pageviewer` component example, and it's thus possible that these changes could affect some users; the next commit adds fallback handling for the old format.
@Snuffleupagus Snuffleupagus changed the title Viewer components refactor update [api-minor] Change {PDFPageView, PDFThumbnailView}.update to take a parameter object Sep 4, 2021
…method signature

This is done separately from the previous commit, to make it easier to revert these changes in the future.
@Snuffleupagus Snuffleupagus force-pushed the viewer-components-refactor-update branch from 033a328 to 8466204 Compare September 4, 2021 09:39
@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@pdfjsbot
Copy link

pdfjsbot commented Sep 4, 2021

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/30620a028b38fff/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 4, 2021

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/5eadd42a332dbec/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 4, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/30620a028b38fff/output.txt

Total script time: 3.54 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Sep 4, 2021

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/5eadd42a332dbec/output.txt

Total script time: 7.81 mins

  • Integration Tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Sep 4, 2021

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 1

Live output at: http://54.241.84.105:8877/619ffd14696c316/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 4, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/619ffd14696c316/output.txt

Total script time: 4.22 mins

Published

@timvandermeij timvandermeij merged commit 7889cfd into mozilla:master Sep 4, 2021
@timvandermeij
Copy link
Contributor

Looks good to me!

@Snuffleupagus Snuffleupagus deleted the viewer-components-refactor-update branch September 19, 2021 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants