Skip to content

Conversation

@spalger
Copy link
Contributor

@spalger spalger commented May 25, 2021

In order to migrate the root test directory to its own TypeScript project that can be ref'd we need to stop returning class expressions from provider functions. Part of #99148

Migrates the "toasts" service to the new FtrService class, basically just extracted the class from the provider and remapped services/PageObjects referenced in scope to access private properties on the service instance. Viewing changes with whitespace disabled will help with review.

@spalger spalger force-pushed the migrate/ftr-service-class/toasts branch from 47bdfea to 679c1a3 Compare May 25, 2021 20:05
@spalger spalger changed the title [ftr] migrate "queryBar" service to FtrService class [ftr] migrate "toasts" service to FtrService class May 25, 2021
@spalger spalger added release_note:skip Skip the PR/issue when compiling release notes Team:AppServices v7.14.0 v8.0.0 auto-backport Deprecated - use backport:version if exact versions are needed labels May 25, 2021
@spalger spalger marked this pull request as ready for review May 25, 2021 22:30
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@spalger spalger requested a review from lizozom May 25, 2021 22:30
@spalger spalger enabled auto-merge (squash) May 25, 2021 22:30
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger requested review from dmlemeshko and flash1293 and removed request for flash1293 and lizozom May 26, 2021 19:19
@spalger spalger merged commit dbd0ce7 into elastic:master May 26, 2021
@spalger spalger deleted the migrate/ftr-service-class/toasts branch May 26, 2021 19:41
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 26, 2021
Co-authored-by: spalger <spalger@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request May 26, 2021
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.14.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants