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

[Dashboard] Allow Reporting after Discarding Unsaved Changes #106026

Merged

Conversation

ThomThomson
Copy link
Contributor

Summary

Fixes #105807 by allowing the dashboard diff checker to update the unsaved changes badge even while in view mode.

For maintainers

@ThomThomson ThomThomson added Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. 7.14.0 labels Jul 16, 2021
@ThomThomson ThomThomson marked this pull request as ready for review July 19, 2021 14:45
@ThomThomson ThomThomson requested a review from a team as a code owner July 19, 2021 14:45
@elasticmachine
Copy link
Contributor

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

@ThomThomson
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@crob611 crob611 left a comment

Choose a reason for hiding this comment

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

Looks good and confirmed it resolves the issue

@@ -329,6 +335,7 @@ export const useDashboardAppState = ({
if (refreshInterval) timefilter.setRefreshInterval(refreshInterval);
}
dispatchDashboardStateChange(setDashboardState(lastSavedState));
// setDashboardAppState((s) => ({ ...s, hasUnsavedChanges: false }));
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably want to remove this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
dashboard 221.4KB 221.4KB +27.0B

History

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

@ThomThomson ThomThomson merged commit 300644f into elastic:master Jul 20, 2021
ThomThomson added a commit to ThomThomson/kibana that referenced this pull request Jul 20, 2021
…#106026)

Allowed dashboard diffing to happen in view mode to  fix dashboard unsaved changes not updating after discard changes
ThomThomson added a commit to ThomThomson/kibana that referenced this pull request Jul 20, 2021
…#106026)

Allowed dashboard diffing to happen in view mode to  fix dashboard unsaved changes not updating after discard changes
ThomThomson added a commit that referenced this pull request Jul 20, 2021
#106314)

Allowed dashboard diffing to happen in view mode to  fix dashboard unsaved changes not updating after discard changes
ThomThomson added a commit that referenced this pull request Jul 20, 2021
#106313)

Allowed dashboard diffing to happen in view mode to  fix dashboard unsaved changes not updating after discard changes
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:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.14.0 v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Reporting] [Dashboard] Unable to Generate PDF/PNG Reports After Discarding Changes
5 participants