-
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
[Management] Update saved objects client usage to attributes
instead of _source
#13223
[Management] Update saved objects client usage to attributes
instead of _source
#13223
Conversation
…`. Also, fixing an improper "safe" apply usage.
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.
LGTM!
Please backport to 5.6 as well. |
@@ -152,7 +152,7 @@ uiModules.get('apps/management') | |||
$scope.aceInvalidEditors = _.without($scope.aceInvalidEditors, fieldName); | |||
} | |||
|
|||
if ($rootScope.$$phase) $scope.$apply(); | |||
if (!$rootScope.$$phase) $scope.$apply(); |
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.
😞
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.
LGTM
…`. Also, fixing an improper "safe" apply usage. (#13223)
…`. Also, fixing an improper "safe" apply usage. (#13223)
…`. Also, fixing an improper "safe" apply usage. (#13223)
Fixes #13186
Summary
We recently introduced a saved objects client to replace direct courier usage, but it looks we missed an area that needed to be updated to handle part of the breaking changes.
This PR refactors old usage of
_source
to updatedattributes
since this page uses the saved objects client directly.Also, there seemed to be an improper "safe" apply happening that was introduced awhile ago
Testing
Try editing and saving a saved dashboard within Saved Objects