Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lens] Fixes the transition to a dashboard when originatingApp is not given #172543

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Dec 5, 2023

Summary

Closes #172410

This is a regression caused by #167019.

The originatingApp on the navigateToPrefilledEditor defaults to "" (empty string) and not undefined.

Checklist

@stratoula stratoula added Feature:Lens release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting v8.12.0 labels Dec 5, 2023
const path =
getOriginatingPath?.(dashboardId) ??
(dashboardId === 'new' ? '#/create' : `#/view/${dashboardId}`);
const appId = originatingApp || 'dashboards';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the fix. It was originatingApp ?? 'dashboards' causing the problematic redirect

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
lens 1147 1148 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.4MB 1.4MB -7.0B

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

@stratoula stratoula marked this pull request as ready for review December 5, 2023 10:34
@stratoula stratoula requested a review from a team as a code owner December 5, 2023 10:34
Copy link
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.

Code changes LGTM!

@stratoula stratoula merged commit 07f62bf into elastic:main Dec 5, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens release_note:skip Skip the PR/issue when compiling release notes v8.12.0
Projects
None yet
3 participants