Skip to content

Conversation

@nickpeihl
Copy link
Contributor

@nickpeihl nickpeihl commented Aug 1, 2025

Summary

Removes unnecessary promises in DashboardStorage class.

All of the functions are synchronous so we don't need to await or wrap in Promise.all.

@nickpeihl nickpeihl requested a review from a team as a code owner August 1, 2025 21:02
@nickpeihl nickpeihl added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// backport:all-open Backport to all branches that could still receive a release labels Aug 1, 2025
@elasticmachine
Copy link
Contributor

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

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 - thanks for moving this into is own PR
code review only

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #59 / security APIs - Audit Log Audit Log logs audit events when reading and writing saved objects

Metrics [docs]

✅ unchanged

History

@nickpeihl nickpeihl merged commit edb3fa8 into elastic:main Aug 4, 2025
13 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.18, 8.19, 9.0, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 4, 2025
## Summary

Removes unnecessary promises in DashboardStorage class.

All of the functions are synchronous so we don't need to await or wrap
in Promise.all.

(cherry picked from commit edb3fa8)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 4, 2025
## Summary

Removes unnecessary promises in DashboardStorage class.

All of the functions are synchronous so we don't need to await or wrap
in Promise.all.

(cherry picked from commit edb3fa8)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.17 Backport failed because of merge conflicts
8.18 Backport failed because of merge conflicts
8.19
9.0 Backport failed because of merge conflicts
9.1

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 230313

Questions ?

Please refer to the Backport tool documentation

@nickpeihl nickpeihl added backport:version Backport to applied version labels v9.1.1 v8.19.1 and removed backport:all-open Backport to all branches that could still receive a release labels Aug 4, 2025
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 4, 2025
## Summary

Removes unnecessary promises in DashboardStorage class.

All of the functions are synchronous so we don't need to await or wrap
in Promise.all.

(cherry picked from commit edb3fa8)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 4, 2025
## Summary

Removes unnecessary promises in DashboardStorage class.

All of the functions are synchronous so we don't need to await or wrap
in Promise.all.

(cherry picked from commit edb3fa8)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

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 Aug 4, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[Dashboard] Remove unncessary promises
(#230313)](#230313)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Nick
Peihl","email":"nick.peihl@elastic.co"},"sourceCommit":{"committedDate":"2025-08-04T19:21:20Z","message":"[Dashboard]
Remove unncessary promises (#230313)\n\n## Summary\n\nRemoves
unnecessary promises in DashboardStorage class. \n\nAll of the functions
are synchronous so we don't need to await or wrap\nin
Promise.all.","sha":"edb3fa8fcf8ec473e061a90305e9f222ecaa2715","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","backport:all-open","v9.2.0"],"title":"[Dashboard]
Remove unncessary
promises","number":230313,"url":"https://github.com/elastic/kibana/pull/230313","mergeCommit":{"message":"[Dashboard]
Remove unncessary promises (#230313)\n\n## Summary\n\nRemoves
unnecessary promises in DashboardStorage class. \n\nAll of the functions
are synchronous so we don't need to await or wrap\nin
Promise.all.","sha":"edb3fa8fcf8ec473e061a90305e9f222ecaa2715"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230313","number":230313,"mergeCommit":{"message":"[Dashboard]
Remove unncessary promises (#230313)\n\n## Summary\n\nRemoves
unnecessary promises in DashboardStorage class. \n\nAll of the functions
are synchronous so we don't need to await or wrap\nin
Promise.all.","sha":"edb3fa8fcf8ec473e061a90305e9f222ecaa2715"}}]}]
BACKPORT-->

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>
kibanamachine added a commit that referenced this pull request Aug 4, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[Dashboard] Remove unncessary promises
(#230313)](#230313)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Nick
Peihl","email":"nick.peihl@elastic.co"},"sourceCommit":{"committedDate":"2025-08-04T19:21:20Z","message":"[Dashboard]
Remove unncessary promises (#230313)\n\n## Summary\n\nRemoves
unnecessary promises in DashboardStorage class. \n\nAll of the functions
are synchronous so we don't need to await or wrap\nin
Promise.all.","sha":"edb3fa8fcf8ec473e061a90305e9f222ecaa2715","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","backport:all-open","v9.2.0"],"title":"[Dashboard]
Remove unncessary
promises","number":230313,"url":"https://github.com/elastic/kibana/pull/230313","mergeCommit":{"message":"[Dashboard]
Remove unncessary promises (#230313)\n\n## Summary\n\nRemoves
unnecessary promises in DashboardStorage class. \n\nAll of the functions
are synchronous so we don't need to await or wrap\nin
Promise.all.","sha":"edb3fa8fcf8ec473e061a90305e9f222ecaa2715"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230313","number":230313,"mergeCommit":{"message":"[Dashboard]
Remove unncessary promises (#230313)\n\n## Summary\n\nRemoves
unnecessary promises in DashboardStorage class. \n\nAll of the functions
are synchronous so we don't need to await or wrap\nin
Promise.all.","sha":"edb3fa8fcf8ec473e061a90305e9f222ecaa2715"}}]}]
BACKPORT-->

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>
szaffarano pushed a commit to szaffarano/kibana that referenced this pull request Aug 5, 2025
## Summary

Removes unnecessary promises in DashboardStorage class. 

All of the functions are synchronous so we don't need to await or wrap
in Promise.all.
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
## Summary

Removes unnecessary promises in DashboardStorage class. 

All of the functions are synchronous so we don't need to await or wrap
in Promise.all.
@wildemat wildemat mentioned this pull request Aug 7, 2025
10 tasks
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
## Summary

Removes unnecessary promises in DashboardStorage class. 

All of the functions are synchronous so we don't need to await or wrap
in Promise.all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.19.1 v9.1.1 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants