Skip to content

[backport] PR #8391 to 5.x#8445

Merged
Bargs merged 1 commit into5.xfrom
jasper/backport/8391/5.x
Sep 22, 2016
Merged

[backport] PR #8391 to 5.x#8445
Bargs merged 1 commit into5.xfrom
jasper/backport/8391/5.x

Conversation

@elastic-jasper
Copy link
Contributor

Backport PR #8391

Commit 1:
Don't try to delete index template along with pattern

This commit reverts a change to use the ingest API when deleting index
patterns via the Kibana UI. Back when I was building the Filebeat wizard
it made sense to try to delete any index templates or pipelines that may
have been created along with an index pattern. But now that we're only
shipping with CSV Upload, and we don't delete the actual indices that
CSV upload creates, it doesn't make much sense to delete the template.
Now we'll treate the indices and templates consistently.

This also fixes an issue where users would get a fatal error if they
were using Security and they didn't have permissions to delete
templates. Every index pattern deletion would also attempt to delete an
associated template, so if the user didn't have the correct permissions
they would get a 403.

Related: #6457

---------

**Commit 1:**
Don't try to delete index template along with pattern

This commit reverts a change to use the ingest API when deleting index
patterns via the Kibana UI. Back when I was building the Filebeat wizard
it made sense to try to delete any index templates or pipelines that may
have been created along with an index pattern. But now that we're only
shipping with CSV Upload, and we don't delete the actual indices that
CSV upload creates, it doesn't make much sense to delete the template.
Now we'll treate the indices and templates consistently.

This also fixes an issue where users would get a fatal error if they
were using Security and they didn't have permissions to delete
templates. Every index pattern deletion would also attempt to delete an
associated template, so if the user didn't have the correct permissions
they would get a 403.

Related: #6457

* Original sha: daa5b3b
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-09-20T22:43:03Z
@elastic-jasper elastic-jasper added the backport This PR is a backport of another PR label Sep 22, 2016
@Bargs Bargs merged commit 8b7bfa7 into 5.x Sep 22, 2016
@epixa epixa deleted the jasper/backport/8391/5.x branch September 27, 2016 07:59
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants