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

add support delete index in es API #4606

Merged
merged 6 commits into from
Feb 27, 2024
Merged

add support delete index in es API #4606

merged 6 commits into from
Feb 27, 2024

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Feb 19, 2024

closes #3841

How was this PR tested?

rest-api-test

@@ -0,0 +1,43 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a bummer these tests don't pass with --engine elasticsearch. I think we lack index creation to make them pass seamlessly, but it should be possible to create in the index conditionally with

engines:
  - quickwit
# quickwit api here
---
engines:
  - elasticsearch
# es api here

and removing the api_root and _elastic prefix on other requests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the tests to cover elastic search compatibility

Comment on lines 238 to 240
// disallow index_id patterns containing *
for index_id_pattern in &index_id_patterns {
if index_id_pattern.contains('*') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we may also want to reject _all if we don't support it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to reject _all

@PSeitz PSeitz force-pushed the delete_pattern branch 2 times, most recently from e23d083 to 3dbfc2c Compare February 27, 2024 04:56
@PSeitz PSeitz enabled auto-merge (squash) February 27, 2024 15:37
@PSeitz PSeitz merged commit 16bc1d0 into main Feb 27, 2024
4 checks passed
@PSeitz PSeitz deleted the delete_pattern branch February 27, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support index deletes with an index pattern
3 participants