-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fix] Lose OriginatingApp Connection on Save As #72725
[Fix] Lose OriginatingApp Connection on Save As #72725
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in Firefox for both Lens and Visualize:
- Create new from dashboard, save without returning
- Edit from dashboard, save as new without returning
In both cases, the app behaves as if there is no dashboard connection afterwards.
I feel a bit weird about using a mutable local variable which just happens to get picked up by the next render cycle triggered by the subsequent push, but I can't think of a better way for now. Thanks for the functional tests here! We can address this when improving state management overall.
LGTM
…omthomson/kibana into fix/originatingAppPersistsAfterSaveAs
As I looked over it again, I also felt a little weird mutating the variable in |
Tested in Chrome on Mac OS for following scenarios:
I can confirm the regression is gone. Looking at the code now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch @flash1293, that was caused by a typo which has been fixed in the latest commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works fine, LGTM
💚 Build SucceededBuild metricsasync chunks size
History
To update your PR or re-run it, just comment with: |
Reset originatingApp in lens and visualize when return to dashboard on saving is false
Reset originatingApp in lens and visualize when return to dashboard on saving is false
…onnection not to be lost properly after Create new
Fixed typo created in #72725 which caused the originatingApp connection not to be lost properly after Create new
…c#74420) Fixed typo created in elastic#72725 which caused the originatingApp connection not to be lost properly after Create new
…c#74420) Fixed typo created in elastic#72725 which caused the originatingApp connection not to be lost properly after Create new
Summary
Closes #72429 by restoring the flow from 7.8. When a user has redirected to an editor from a container, then used the 'save as' button and chosen not to return to the originating app, the connection to that app should be severed.
How to test
add to dashboards after saving
selectsave as new visualization
then save.save
Checklist
Delete any items that are not applicable to this PR.
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] This was checked for keyboard-only and screenreader accessibility- [ ] This renders correctly on smaller devices using a responsive layout. (You can test this in your browser- [ ] This was checked for cross-browser compatibilityFor maintainers