-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[8.6][ML Inference] Verify pipeline usage before deletion #144053
Merged
demjened
merged 52 commits into
elastic:main
from
demjened:demjened/validate-pipeline-usage
Oct 28, 2022
Merged
[8.6][ML Inference] Verify pipeline usage before deletion #144053
demjened
merged 52 commits into
elastic:main
from
demjened:demjened/validate-pipeline-usage
Oct 28, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…jened/kibana into create-ml-inference-pipeline
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
demjened
added
release_note:skip
Skip the PR/issue when compiling release notes
backport:skip
This commit does not require backporting
Team:EnterpriseSearch
v8.6.0
labels
Oct 26, 2022
demjened
commented
Oct 26, 2022
...erver/lib/indices/pipelines/ml_inference/pipeline_processors/delete_ml_inference_pipeline.ts
Outdated
Show resolved
Hide resolved
brianmcgue
reviewed
Oct 26, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments/questions, but overall, LGTM
x-pack/plugins/enterprise_search/server/routes/enterprise_search/indices.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/enterprise_search/server/routes/enterprise_search/indices.test.ts
Outdated
Show resolved
Hide resolved
...erver/lib/indices/pipelines/ml_inference/pipeline_processors/delete_ml_inference_pipeline.ts
Outdated
Show resolved
Hide resolved
sphilipse
reviewed
Oct 27, 2022
...erver/lib/indices/pipelines/ml_inference/pipeline_processors/delete_ml_inference_pipeline.ts
Outdated
Show resolved
Hide resolved
...erver/lib/indices/pipelines/ml_inference/pipeline_processors/delete_ml_inference_pipeline.ts
Outdated
Show resolved
Hide resolved
...erver/lib/indices/pipelines/ml_inference/pipeline_processors/delete_ml_inference_pipeline.ts
Outdated
Show resolved
Hide resolved
demjened
force-pushed
the
demjened/validate-pipeline-usage
branch
2 times, most recently
from
October 28, 2022 16:20
9a9247a
to
fbb10bf
Compare
demjened
force-pushed
the
demjened/validate-pipeline-usage
branch
from
October 28, 2022 16:20
fbb10bf
to
5843600
Compare
demjened
force-pushed
the
demjened/validate-pipeline-usage
branch
from
October 28, 2022 17:53
5843600
to
e86622a
Compare
…-ref HEAD~1..HEAD --fix'
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
brianmcgue
approved these changes
Oct 28, 2022
.../lib/indices/pipelines/ml_inference/pipeline_processors/delete_ml_inference_pipeline.test.ts
Show resolved
Hide resolved
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Oct 31, 2022
* main: (41 commits) [api-docs] Daily api_docs build (elastic#144212) Add readonly view to role management (elastic#143893) [api-docs] Daily api_docs build (elastic#144208) [APM] Adds button group to navigate to "All services" (elastic#142911) Update react-query to ^4.12.0 (main) (elastic#139986) [APM] Support specific fields when creating service groups (elastic#142201) (elastic#143881) [api-docs] Daily api_docs build (elastic#144203) [ts] add stub index.d.ts in @kbn/ui-shared-deps-npm [Synthetics] Fix failing Synthetics Integration test (elastic#144175) chore(NA): remove @types/pkg link creation when generating a new package (elastic#144200) [Osquery] Update schema to v5.5.1 (elastic#144090) [ci] remove github-checks-reporter (elastic#144193) [8.6][ML Inference] Verify pipeline usage before deletion (elastic#144053) [ts] ts refs cache was removed, remove capture task Added Rollups CCS Test (elastic#144074) [auto] migrate existing plugin/package configs [ts] stop building @types packages in bootstrap skip failing test suite (elastic#142762) skip failing test suite (elastic#144186) [Fleet] Show Add Fleet Server instead of add agent when adding agent from agent policy (elastic#144105) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport:skip
This commit does not require backporting
release_note:skip
Skip the PR/issue when compiling release notes
Team:EnterpriseSearch
v8.6.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a check to the
DELETE /internal/enterprise_search/indices/{indexName}/ml_inference/pipeline_processors/{pipelineName}
endpoint. Before deleting the supplied ML inference processor pipeline from the given index, we check whether the same pipeline is referenced in a different index (or more precisely, in the{other_index_name}@ml-inference
managed pipeline).Manual testing
ml-inference-ner2
is referenced in two indices' managed pipelines:Deleting the
ml-inference-ner3
pipeline succeedsDeleting the
ml-inference-ner2
pipeline failsChecklist