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

Replace app state #56641

Closed
wants to merge 4 commits into from
Closed

Replace app state #56641

wants to merge 4 commits into from

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Feb 3, 2020

When working to replace AppState in the Maps application I noticed 2 problems with how savedQuery were synced to the URL.

  1. If the saved query id does not exist, then the error is displayed in console and the saved query is not loaded. No feedback is provided to the user that the saved query failed to load
  2. If the URL _a parameter does not have savedQuery parameter, then adding one has not effect.

This PR fixes these problems by causing savedQueryService.getSavedQuery to throw when the saved object can not be loaded. The PR also changes the logic from $scope.savedQuery && isNewId to !$scope.savedQuery || isNewId

@nreese nreese added release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 v7.7.0 labels Feb 3, 2020
@nreese nreese requested a review from a team as a code owner February 3, 2020 16:07
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@nreese
Copy link
Contributor Author

nreese commented Feb 3, 2020

PR opened against wrong branch. Closed and replaced with #56643

@nreese nreese closed this Feb 3, 2020
@kibanamachine
Copy link
Contributor

💔 Build Failed

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants