-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Reporting] Convert plugin setup and start to synchronous #68326
[Reporting] Convert plugin setup and start to synchronous #68326
Conversation
x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.ts
Outdated
Show resolved
Hide resolved
|
||
export interface BrowserDownload { | ||
createDriverFactory: CreateDriverFactory; |
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.
Previously, the BrowserDownload
interface wasn't being instantiated anywhere. Once I instantiated a variable as this interface, adding this createDriverFactory
field was necessary.
8657ab2
to
5f6c6a6
Compare
294bc3a
to
af636ab
Compare
af636ab
to
9e654f1
Compare
Fix test mocks + add some plugin async helpers where needed
There is still a TODO for testing on this, but it is ready for review |
Pinging @elastic/kibana-reporting-services (Team:Reporting Services) |
@elasticmachine merge upstream |
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.
Not quite sure what to verify here, but I don't see any obvious issues from an operations perspective.
Add plugin test for sync/error cases
I'm happy with the changes here, let's let platform folks give final approval and then we should be good to merge |
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
runValidations(config, elasticsearch, browserDriverFactory, this.logger); | ||
|
||
this.logger.debug('Start complete'); | ||
this.start$.next(true); |
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.
Does someone read them?
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.
This is just for a unit test
) * [Reporting] Convert plugin setup and start to synchronous * revert class conversion * diff prettify * Fix test mocks + add some plugin async helpers where needed * no setupReady startReady needed * Add plugin test for sync/error cases * PR feedback on tests/setup logs * rename symbol Co-authored-by: Joel Griffith <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
…68932) * [Reporting] Convert plugin setup and start to synchronous * revert class conversion * diff prettify * Fix test mocks + add some plugin async helpers where needed * no setupReady startReady needed * Add plugin test for sync/error cases * PR feedback on tests/setup logs * rename symbol Co-authored-by: Joel Griffith <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Joel Griffith <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Summary
Close #68292
x-pack/plugins/reporting/server/browsers/create_browser_driver_factory.ts
. The function had to be broken up. Afterwards, it's not useful as a wrapper helper function.Checklist
Delete any items that are not applicable to this PR.
For maintainers