[Reporting] Convert plugin setup and start to synchronous#68326
[Reporting] Convert plugin setup and start to synchronous#68326tsullivan merged 13 commits intoelastic:masterfrom
Conversation
x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
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 |
spalger
left a comment
There was a problem hiding this comment.
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.
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 <joel.griffith@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…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 <joel.griffith@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Joel Griffith <joel.griffith@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
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