Skip to content

[8.x] [Dashboard] Await new services in exported listing table (#195277)#195301

Merged
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-195277
Oct 7, 2024
Merged

[8.x] [Dashboard] Await new services in exported listing table (#195277)#195301
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-195277

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

)

Closes elastic#194733

## Summary

In elastic#193644, I forgot to remove
references to the old `servicesReady` promise - this caused an issue
where it never resolved `true`, so anywhere that depended on this would
be stuck in a loading state. This PR fixes this by replacing all
instances of `servicesReady` with the new
`untilPluginStartServicesReady` promise.

Specifically, this fixes the exported `DashboardListingTable` that the
Security page uses:

- **Before:**

https://github.com/user-attachments/assets/78fc8ad8-7bff-43bf-95ec-d52f4da91371

- **After:**

https://github.com/user-attachments/assets/af1be9d3-9af5-4a30-9b5d-bc4352214a97

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 10271a2)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Oct 7, 2024
@kibanamachine kibanamachine enabled auto-merge (squash) October 7, 2024 17:41
@kibanamachine kibanamachine merged commit 8579a52 into elastic:8.x Oct 7, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dashboard 27.8KB 27.8KB -24.0B

cc @Heenawter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants