Skip to content
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

Use ingest API to delete index patterns #6457

Merged
merged 7 commits into from
Mar 9, 2016

Conversation

Bargs
Copy link
Contributor

@Bargs Bargs commented Mar 8, 2016

Requires #6447

When a user completes the Add Data wizard they'll be left with 3 new items in elasticsearch:

  • A Kibana index pattern
  • An ES index template
  • An ingest pipeline

When the user deletes a pattern from the "pattern edit" screen we need to clean up all 3 of these records if they exist. Using the DELETE endpoint of the ingest API will achieve this while maintaining backwards compatibility with plain old index patterns.

@Bargs Bargs force-pushed the ingest/deletePattern branch from b35284a to f7b1d77 Compare March 9, 2016 14:56
@Bargs Bargs assigned rashidkpc and unassigned stormpython Mar 9, 2016
@rashidkpc
Copy link
Contributor

No complaints from me, this is fairly straight forward and works with existing index patterns.

rashidkpc pushed a commit that referenced this pull request Mar 9, 2016
Use ingest API to delete index patterns
@rashidkpc rashidkpc merged commit 63226bb into elastic:feature/ingest Mar 9, 2016
Bargs added a commit to Bargs/kibana that referenced this pull request Sep 20, 2016
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: elastic#6457
elastic-jasper added a commit that referenced this pull request Sep 22, 2016
---------

**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 <[email protected]> on 2016-09-20T22:43:03Z
elastic-jasper added a commit that referenced this pull request Sep 22, 2016
---------

**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 <[email protected]> on 2016-09-20T22:43:03Z
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
---------

**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: elastic#6457

* Original sha: bd504da3ffb4d15882c41506f7419e7827c7818e [formerly daa5b3b]
* Authored by Matthew Bargar <[email protected]> on 2016-09-20T22:43:03Z


Former-commit-id: bc7b8d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants