-
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
Save layer setting in the region map UI #12956
Save layer setting in the region map UI #12956
Conversation
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.
works well, have one minor comment regarding implementation, we should stay consistent with how we define other settings.
@@ -15,6 +15,14 @@ uiModules.get('kibana/region_map') | |||
|
|||
$scope.collections = $scope.vis.type.editorConfig.collections; | |||
|
|||
$scope.initializeLayerSetting = function () { | |||
$scope.vis.params.selectedLayer = $scope.collections.vectorLayers[0]; |
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.
this should be defined in the vis definition (visConfig.defaults) as we do with all the other settings, and then you don't need the ng-init part.
0098b05
to
fdd3883
Compare
jenkins, test this |
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, ci is failling
PR probably requires rebase, breaking on single_type issue. |
fdd3883
to
58388d7
Compare
jenkins, test this |
2 similar comments
jenkins, test this |
jenkins, test this |
58388d7
to
5171248
Compare
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!
Includes manual edits to resolve merge conflicts.
Includes manual edits to resolve merge conflicts.
This should go into 5.6 rather than 5.x. I cherry-picked it over 0a21221 |
Release Note: The layer selection is now preserved in the UI dropdown when saving a Region Map.
closes #12172.