diff --git a/src/plugins/kbn_vislib_vis_types/public/tile_map.js b/src/plugins/kbn_vislib_vis_types/public/tile_map.js index 788b50e832e8..acc7e4591848 100644 --- a/src/plugins/kbn_vislib_vis_types/public/tile_map.js +++ b/src/plugins/kbn_vislib_vis_types/public/tile_map.js @@ -5,6 +5,7 @@ import VisSchemasProvider from 'ui/vis/schemas'; import AggResponseGeoJsonGeoJsonProvider from 'ui/agg_response/geo_json/geo_json'; import FilterBarPushFilterProvider from 'ui/filter_bar/push_filter'; import tileMapTemplate from 'plugins/kbn_vislib_vis_types/editors/tile_map.html'; + export default function TileMapVisType(Private, getAppState, courier, config) { const VislibVisType = Private(VislibVisTypeVislibVisTypeProvider); const Schemas = Private(VisSchemasProvider); @@ -120,6 +121,8 @@ export default function TileMapVisType(Private, getAppState, courier, config) { group: 'buckets', name: 'split', title: 'Split Chart', + deprecate: true, + deprecateMessage: 'The Split Chart feature for Tile Maps has been deprecated.', min: 0, max: 1 } diff --git a/src/plugins/kibana/public/dashboard/index.html b/src/plugins/kibana/public/dashboard/index.html index 06dd29854fb7..76b80411c463 100644 --- a/src/plugins/kibana/public/dashboard/index.html +++ b/src/plugins/kibana/public/dashboard/index.html @@ -1,5 +1,5 @@
- +
@@ -51,8 +51,8 @@ ng-click="configTemplate.toggle('options');"> Options -
+
diff --git a/src/plugins/kibana/public/discover/index.html b/src/plugins/kibana/public/discover/index.html index 4f711c9fb626..04dd55c4d2a3 100644 --- a/src/plugins/kibana/public/discover/index.html +++ b/src/plugins/kibana/public/discover/index.html @@ -1,5 +1,5 @@
- +
@@ -39,8 +39,8 @@ ng-click="configTemplate.toggle('share');"> Share -
+
Select {{ groupName }} type
  • @@ -18,10 +19,10 @@ class="vis-editor-agg-wide-btn">
    -
    +
    Add {{ groupName }}
    -
    +
    Add sub-{{ groupName }}
    diff --git a/src/plugins/kibana/public/visualize/editor/agg_group.js b/src/plugins/kibana/public/visualize/editor/agg_group.js index 52efea728f25..1718d80c1b58 100644 --- a/src/plugins/kibana/public/visualize/editor/agg_group.js +++ b/src/plugins/kibana/public/visualize/editor/agg_group.js @@ -33,6 +33,7 @@ uiModules $scope.schemas.forEach(function (schema) { stats.min += schema.min; stats.max += schema.max; + stats.deprecate = schema.deprecate; }); $scope.availableSchema = $scope.schemas.filter(function (schema) { diff --git a/src/plugins/kibana/public/visualize/editor/agg_params.html b/src/plugins/kibana/public/visualize/editor/agg_params.html index e4473e73a8b2..5f822ada4f0e 100644 --- a/src/plugins/kibana/public/visualize/editor/agg_params.html +++ b/src/plugins/kibana/public/visualize/editor/agg_params.html @@ -10,4 +10,13 @@ style="display: none;">
    - \ No newline at end of file +
    +

    + {{ agg.schema.deprecateMessage }} +

    +

    + "{{ agg.schema.title }}" has been deprecated. +

    +
    + + diff --git a/src/plugins/kibana/public/visualize/editor/editor.html b/src/plugins/kibana/public/visualize/editor/editor.html index f0e18caf9d67..07db2ae9f5ca 100644 --- a/src/plugins/kibana/public/visualize/editor/editor.html +++ b/src/plugins/kibana/public/visualize/editor/editor.html @@ -1,5 +1,5 @@
    - +
    @@ -46,8 +46,8 @@ aria-label="Refresh"> Refresh -
    +
    { + grunt.registerTask('rejectRejFiles', 'Reject any git-apply .rej files', () => { + const ignoredTopLevelDirs = [ + 'esvm', + 'installedPlugins', + 'node_modules', + 'optimize' + ]; + + const matchBase = true; + const filter = file => ( + ignoredTopLevelDirs.every(dir => !startsWith(file, dir)) + ); + + const files = grunt.file.expand({ filter, matchBase }, '*.rej'); + if (files.length > 0) { + const err = `.rej files are not allowed:\n${files.join('\n')}`; + grunt.log.error(err); + return false; + } + }); +}; diff --git a/test/support/pages/discover_page.js b/test/support/pages/discover_page.js index b5638a18882b..62604fe27178 100644 --- a/test/support/pages/discover_page.js +++ b/test/support/pages/discover_page.js @@ -28,7 +28,7 @@ define(function (require) { getTimespanText: function getTimespanText() { return thisTime - .findByCssSelector('.kibana-nav-actions .navbar-timepicker-time-desc pretty-duration') + .findByCssSelector('.kibana-nav-options .navbar-timepicker-time-desc pretty-duration') .getVisibleText(); },