diff --git a/docs/migration/migrate_6_0.asciidoc b/docs/migration/migrate_6_0.asciidoc index 84483742037a..34211219ad36 100644 --- a/docs/migration/migrate_6_0.asciidoc +++ b/docs/migration/migrate_6_0.asciidoc @@ -52,3 +52,9 @@ This is no longer the case. Now, only commas are a valid query separator: e.g. ` *Details:* In Kibana 4.2, we renamed all configuration names in kibana.yml to use `.` as a separator instead of `_`, though the legacy configurations would still continue to work. In 5.0, we started logging deprecation notices whenever the legacy configurations were encountered. In 6.0 onward, legacy configuration names that use an underscore instead of a dot will no longer work. *Impact:* Any usages of underscore separated configuration names in kibana.yml need to be updated to their modern equivalents. See <> for accepted configurations. + +[float] +=== Time-interval based index patterns are no longer supported +*Details:* Starting in Kibana 6.0.0 we removed the ability to create index patterns that use a date-pattern and interval to identify Elasticsearch indices. Index patterns must now use wildcards which are more performant in most cases. + +*Impact:* Existing index patterns and saved objects will continue to function without issue, and in a subsequent release we will provide utilities to migrate your index patterns/saved objects. \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern/__tests__/create_index_pattern.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern/__tests__/create_index_pattern.js index 122bed1668c4..f29a6be44cd9 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern/__tests__/create_index_pattern.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern/__tests__/create_index_pattern.js @@ -28,7 +28,6 @@ describe('createIndexPattern UI', () => { beforeEach(ngMock.inject(($injector) => { setup = function () { const Private = $injector.get('Private'); - const Promise = $injector.get('Promise'); const $compile = $injector.get('$compile'); const $rootScope = $injector.get('$rootScope'); @@ -39,12 +38,6 @@ describe('createIndexPattern UI', () => { trash.push(() => $scope.$destroy()); $scope.$apply(); - // prevents errors when switching to time pattern - indexPatternsApiClient.testTimePattern = sinon.spy(() => Promise.resolve({ - all: ['logstash-0', 'logstash-2017.01.01'], - matches: ['logstash-2017.01.01'], - })); - const setNameTo = (name) => { $view.findTestSubject('createIndexPatternNameInput') .val(name) @@ -122,13 +115,6 @@ describe('createIndexPattern UI', () => { expect($enableExpand).to.have.length(1); expect($enableExpand.is(':checked')).to.be(false); }); - - it('displays the option (off) to use time patterns', () => { - const { $view } = setup(); - const $enableTimePattern = $view.findTestSubject('createIndexPatternNameIsPatternCheckBox'); - expect($enableTimePattern).to.have.length(1); - expect($enableTimePattern.is(':checked')).to.be(false); - }); }); describe('cross cluster pattern', () => { @@ -149,43 +135,5 @@ describe('createIndexPattern UI', () => { const $enableExpand = $view.findTestSubject('createIndexPatternEnableExpand'); expect($enableExpand).to.have.length(0); }); - - it('removes the option to use time patterns', () => { - const { $view, setNameTo } = setup(); - setNameTo('cluster2:logstash-*'); - - const $enableTimePattern = $view.findTestSubject('createIndexPatternNameIsPatternCheckBox'); - expect($enableTimePattern).to.have.length(0); - }); - }); - - describe('expand selected', () => { - it('removes the option to use time patterns', () => { - const { $view } = setup(); - - const { controller } = $view.findTestSubject('createIndexPatternContainer').scope(); - const $enableExpand = $view.findTestSubject('createIndexPatternEnableExpand'); - expect($enableExpand).to.have.length(1); - $enableExpand.click(); - expect(controller.isExpandWildcardEnabled()).to.be(true); - - const $enableTimePattern = $view.findTestSubject('createIndexPatternNameIsPatternCheckBox'); - expect($enableTimePattern).to.have.length(0); - }); - }); - - describe('time pattern selected', () => { - it('removes the option to use wildcard expansion', () => { - const { $view } = setup(); - - const { controller } = $view.findTestSubject('createIndexPatternContainer').scope(); - const $enableTimePattern = $view.findTestSubject('createIndexPatternNameIsPatternCheckBox'); - expect($enableTimePattern).to.have.length(1); - $enableTimePattern.click(); - expect(controller.formValues.nameIsPattern).to.be(true); - - const $enableExpand = $view.findTestSubject('createIndexPatternEnableExpand'); - expect($enableExpand).to.have.length(0); - }); }); }); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern/create_index_pattern.html b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern/create_index_pattern.html index a24193fc1b4f..5bc4f9ec4033 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern/create_index_pattern.html +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern/create_index_pattern.html @@ -61,37 +61,8 @@

- -

- — - -

- -

-   - - - -

@@ -160,188 +131,6 @@ - -
- -
- -
- -
-
- - -
- -
-
- - - -
-
-
- - -
- - -
- -
-
-
- - -
-
-
- - - {{err}} - -
-
- -
-
- - -
- -
-
- {{sample}} -
- -
- -
-
-
- - -
-
- - -
- -
-
- {{match}} -
- -
- -
-
-
- -
-
- - -
- -
-
- {{match}} -
-
- -
- - - -
-
-
-