Skip to content

Attempt to solve timeout issue when loading legacy visualizations dashboard#271948

Merged
maryam-saeidi merged 4 commits into
elastic:mainfrom
maryam-saeidi:271816-unskip-test
May 29, 2026
Merged

Attempt to solve timeout issue when loading legacy visualizations dashboard#271948
maryam-saeidi merged 4 commits into
elastic:mainfrom
maryam-saeidi:271816-unskip-test

Conversation

@maryam-saeidi
Copy link
Copy Markdown
Member

@maryam-saeidi maryam-saeidi commented May 29, 2026

Closes #271816

Summary

Theory

#271520 exposed the issue because it changed the timing of FTR’s first authenticated navigation.

Before that PR, common.navigateToApp('dashboards') hit the login page, filled the UI form, waited for Kibana chrome, then navigated to the app URL again. That slower, multi-step flow gave the Dashboards app more time to settle on #/list before the next call to loadDashboardInEditMode().

After that PR, login is done by API and cookie injection. loginIfPrompted() now injects the sid cookie and navigates directly to the target app URL. That is faster and skips some of the old UI-login waits. So the test reaches:

dashboard.initTests() -> dashboard.loadDashboardInEditMode() -> gotoDashboardLandingPage()

sooner, while the Dashboards route can still be settling.

The underlying bug was already in gotoDashboardLandingPage(): it checks the URL once, and if it does not see dashboards#/list at that exact moment, it assumes it must be inside a dashboard and waits for the in-dashboard breadcrumb.

@maryam-saeidi maryam-saeidi added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels May 29, 2026
@maryam-saeidi maryam-saeidi self-assigned this May 29, 2026
@maryam-saeidi maryam-saeidi added the Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// label May 29, 2026
@maryam-saeidi
Copy link
Copy Markdown
Member Author

/flaky ftrConfig:x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/config.ts:10

@kibanamachine
Copy link
Copy Markdown
Contributor

Flaky Test Runner

✅ Build triggered - kibana-flaky-test-suite-runner#12515

  • x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/config.ts x10

@kibanamachine
Copy link
Copy Markdown
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#12515

[✅] x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/config.ts: 10/10 tests passed.

see run history

@maryam-saeidi
Copy link
Copy Markdown
Member Author

/flaky ftrConfig:x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/config.ts:50

@kibanamachine
Copy link
Copy Markdown
Contributor

Flaky Test Runner

✅ Build triggered - kibana-flaky-test-suite-runner#12516

  • x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/config.ts x50

@maryam-saeidi maryam-saeidi added v9.4.3 backport:version Backport to applied version labels and removed backport:skip This PR does not require backporting labels May 29, 2026
@maryam-saeidi maryam-saeidi marked this pull request as ready for review May 29, 2026 17:44
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner May 29, 2026 17:44
@infra-vault-gh-plugin-prod
Copy link
Copy Markdown

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@kibanamachine
Copy link
Copy Markdown
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#12516

[✅] x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/config.ts: 50/50 tests passed.

see run history

@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #106 / Cloud Security Posture - Group 5 (KSPM + Flyouts) Security Alerts Page - Graph visualization expanded flyout - filter by node
  • [job] [logs] FTR Configs #172 / discover Discover CSV Export Generate CSV: new search generates a report from a new search with data: default

Metrics [docs]

✅ unchanged

cc @maryam-saeidi

Copy link
Copy Markdown
Contributor

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

Nice!

@maryam-saeidi maryam-saeidi merged commit 5ed988c into elastic:main May 29, 2026
32 checks passed
@maryam-saeidi maryam-saeidi deleted the 271816-unskip-test branch May 29, 2026 19:10
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.4

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

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
9.4

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 May 29, 2026
…ns dashboard (#271948) (#271986)

# Backport

This will backport the following commits from `main` to `9.4`:
- [Attempt to solve timeout issue when loading legacy visualizations
dashboard (#271948)](#271948)

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

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

<!--BACKPORT [{"author":{"name":"Maryam
Saeidi","email":"maryam.saeidi@elastic.co"},"sourceCommit":{"committedDate":"2026-05-29T19:09:56Z","message":"Attempt
to solve timeout issue when loading legacy visualizations dashboard
(#271948)\n\nCloses
https://github.com/elastic/kibana/issues/271816\n\n## Summary\n\n###
Theory\n\n[#271520](#271520)
exposed the\nissue because it changed the timing of FTR’s first
authenticated\nnavigation.\n\nBefore that PR,
common.navigateToApp('dashboards') hit the login page,\nfilled the UI
form, waited for Kibana chrome, then navigated to the app\nURL again.
That slower, multi-step flow gave the Dashboards app more\ntime to
settle on #/list before the next call
to\nloadDashboardInEditMode().\n\nAfter that PR, login is done by API
and cookie injection.\nloginIfPrompted() now injects the sid cookie and
navigates directly to\nthe target app URL. That is faster and skips some
of the old UI-login\nwaits. So the test
reaches:\n\n```\ndashboard.initTests() ->
dashboard.loadDashboardInEditMode() ->
gotoDashboardLandingPage()\n```\n\nsooner, while the Dashboards route
can still be settling.\n\nThe underlying bug was already in
gotoDashboardLandingPage(): it checks\nthe URL once, and if it does not
see dashboards#/list at that exact\nmoment, it assumes it must be inside
a dashboard and waits for the\nin-dashboard
breadcrumb.","sha":"5ed988c106ac137cb6898f98eb53c7be52a6d014","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","backport:version","v9.5.0","v9.4.3"],"title":"Attempt
to solve timeout issue when loading legacy visualizations
dashboard","number":271948,"url":"https://github.com/elastic/kibana/pull/271948","mergeCommit":{"message":"Attempt
to solve timeout issue when loading legacy visualizations dashboard
(#271948)\n\nCloses
https://github.com/elastic/kibana/issues/271816\n\n## Summary\n\n###
Theory\n\n[#271520](#271520)
exposed the\nissue because it changed the timing of FTR’s first
authenticated\nnavigation.\n\nBefore that PR,
common.navigateToApp('dashboards') hit the login page,\nfilled the UI
form, waited for Kibana chrome, then navigated to the app\nURL again.
That slower, multi-step flow gave the Dashboards app more\ntime to
settle on #/list before the next call
to\nloadDashboardInEditMode().\n\nAfter that PR, login is done by API
and cookie injection.\nloginIfPrompted() now injects the sid cookie and
navigates directly to\nthe target app URL. That is faster and skips some
of the old UI-login\nwaits. So the test
reaches:\n\n```\ndashboard.initTests() ->
dashboard.loadDashboardInEditMode() ->
gotoDashboardLandingPage()\n```\n\nsooner, while the Dashboards route
can still be settling.\n\nThe underlying bug was already in
gotoDashboardLandingPage(): it checks\nthe URL once, and if it does not
see dashboards#/list at that exact\nmoment, it assumes it must be inside
a dashboard and waits for the\nin-dashboard
breadcrumb.","sha":"5ed988c106ac137cb6898f98eb53c7be52a6d014"}},"sourceBranch":"main","suggestedTargetBranches":["9.4"],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/271948","number":271948,"mergeCommit":{"message":"Attempt
to solve timeout issue when loading legacy visualizations dashboard
(#271948)\n\nCloses
https://github.com/elastic/kibana/issues/271816\n\n## Summary\n\n###
Theory\n\n[#271520](#271520)
exposed the\nissue because it changed the timing of FTR’s first
authenticated\nnavigation.\n\nBefore that PR,
common.navigateToApp('dashboards') hit the login page,\nfilled the UI
form, waited for Kibana chrome, then navigated to the app\nURL again.
That slower, multi-step flow gave the Dashboards app more\ntime to
settle on #/list before the next call
to\nloadDashboardInEditMode().\n\nAfter that PR, login is done by API
and cookie injection.\nloginIfPrompted() now injects the sid cookie and
navigates directly to\nthe target app URL. That is faster and skips some
of the old UI-login\nwaits. So the test
reaches:\n\n```\ndashboard.initTests() ->
dashboard.loadDashboardInEditMode() ->
gotoDashboardLandingPage()\n```\n\nsooner, while the Dashboards route
can still be settling.\n\nThe underlying bug was already in
gotoDashboardLandingPage(): it checks\nthe URL once, and if it does not
see dashboards#/list at that exact\nmoment, it assumes it must be inside
a dashboard and waits for the\nin-dashboard
breadcrumb.","sha":"5ed988c106ac137cb6898f98eb53c7be52a6d014"}},{"branch":"9.4","label":"v9.4.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
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:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v9.4.2 v9.4.3 v9.5.0

Projects

None yet

3 participants