Skip to content

Conversation

@Heenawter
Copy link
Contributor

@Heenawter Heenawter commented Oct 7, 2024

Closes #194733

Summary

In #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:

    Screen.Recording.2024-10-07.at.11.19.45.AM.mov
  • After:

    Screen.Recording.2024-10-07.at.11.22.05.AM.mov

For maintainers

@Heenawter Heenawter added Feature:Dashboard Dashboard related features regression release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. backport:prev-minor labels Oct 7, 2024
@Heenawter Heenawter self-assigned this Oct 7, 2024
@kibana-ci
Copy link

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #56 / Reporting Functional Tests with Security enabled Access to Management > Reporting Download report user can access download link for export type that is no longer supported

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

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

cc @Heenawter

@Heenawter Heenawter marked this pull request as ready for review October 7, 2024 17:23
@Heenawter Heenawter requested a review from a team as a code owner October 7, 2024 17:23
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@Heenawter Heenawter added the loe:small Small Level of Effort label Oct 7, 2024
Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
code review only

@Heenawter Heenawter merged commit 10271a2 into elastic:main Oct 7, 2024
@Heenawter Heenawter deleted the fix-dashboard-await-services_2024-10-07 branch October 7, 2024 17:36
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11220912148

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 7, 2024
)

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
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 7, 2024
…) (#195301)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Dashboard] Await new services in exported listing table
(#195277)](#195277)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Hannah
Mudge","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-07T17:36:27Z","message":"[Dashboard]
Await new services in exported listing table (#195277)\n\nCloses
https://github.com/elastic/kibana/issues/194733\r\n\r\n##
Summary\r\n\r\nIn #193644, I
forgot to remove\r\nreferences to the old `servicesReady` promise - this
caused an issue\r\nwhere it never resolved `true`, so anywhere that
depended on this would\r\nbe stuck in a loading state. This PR fixes
this by replacing all\r\ninstances of `servicesReady` with the
new\r\n`untilPluginStartServicesReady` promise.\r\n\r\nSpecifically,
this fixes the exported `DashboardListingTable` that the\r\nSecurity
page uses:\r\n\r\n-
**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/78fc8ad8-7bff-43bf-95ec-d52f4da91371\r\n\r\n-
**After:**\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/af1be9d3-9af5-4a30-9b5d-bc4352214a97\r\n\r\n\r\n###
For maintainers\r\n\r\n- [ ] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"10271a2e1fb5860a8a6d3d3e3f072d5b67a3f63f","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Dashboard","regression","release_note:fix","Team:Presentation","loe:small","impact:medium","v9.0.0","backport:prev-minor"],"title":"[Dashboard]
Await new services in exported listing
table","number":195277,"url":"https://github.com/elastic/kibana/pull/195277","mergeCommit":{"message":"[Dashboard]
Await new services in exported listing table (#195277)\n\nCloses
https://github.com/elastic/kibana/issues/194733\r\n\r\n##
Summary\r\n\r\nIn #193644, I
forgot to remove\r\nreferences to the old `servicesReady` promise - this
caused an issue\r\nwhere it never resolved `true`, so anywhere that
depended on this would\r\nbe stuck in a loading state. This PR fixes
this by replacing all\r\ninstances of `servicesReady` with the
new\r\n`untilPluginStartServicesReady` promise.\r\n\r\nSpecifically,
this fixes the exported `DashboardListingTable` that the\r\nSecurity
page uses:\r\n\r\n-
**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/78fc8ad8-7bff-43bf-95ec-d52f4da91371\r\n\r\n-
**After:**\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/af1be9d3-9af5-4a30-9b5d-bc4352214a97\r\n\r\n\r\n###
For maintainers\r\n\r\n- [ ] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"10271a2e1fb5860a8a6d3d3e3f072d5b67a3f63f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195277","number":195277,"mergeCommit":{"message":"[Dashboard]
Await new services in exported listing table (#195277)\n\nCloses
https://github.com/elastic/kibana/issues/194733\r\n\r\n##
Summary\r\n\r\nIn #193644, I
forgot to remove\r\nreferences to the old `servicesReady` promise - this
caused an issue\r\nwhere it never resolved `true`, so anywhere that
depended on this would\r\nbe stuck in a loading state. This PR fixes
this by replacing all\r\ninstances of `servicesReady` with the
new\r\n`untilPluginStartServicesReady` promise.\r\n\r\nSpecifically,
this fixes the exported `DashboardListingTable` that the\r\nSecurity
page uses:\r\n\r\n-
**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/78fc8ad8-7bff-43bf-95ec-d52f4da91371\r\n\r\n-
**After:**\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/af1be9d3-9af5-4a30-9b5d-bc4352214a97\r\n\r\n\r\n###
For maintainers\r\n\r\n- [ ] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"10271a2e1fb5860a8a6d3d3e3f072d5b67a3f63f"}}]}]
BACKPORT-->

Co-authored-by: Hannah Mudge <[email protected]>
@angorayc
Copy link
Contributor

angorayc commented Oct 8, 2024

@Heenawter Thanks so much for fixing this 👍 👍 👍

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

Labels

Feature:Dashboard Dashboard related features impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort regression release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SecuritySolution][Bug] Custom dashboards list don't load

6 participants