-
Notifications
You must be signed in to change notification settings - Fork 105
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
Delete workflow metadata on deleting a detector #1766
Conversation
alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportDeleteWorkflowAction.kt
Outdated
Show resolved
Hide resolved
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.
plz add integ tests which verifies deletion of metadata docs from system index post workflow deletion when deleteMonitor Deltion flag is true and same for false.
Done |
alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: Nishtha Mehrotra <[email protected]>
…ng monitor workflow Signed-off-by: Nishtha Mehrotra <[email protected]>
Signed-off-by: Nishtha Mehrotra <[email protected]>
Signed-off-by: Nishtha Mehrotra <[email protected]>
Signed-off-by: Nishtha Mehrotra <[email protected]>
* Delete workflow metadata on deleting workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Added UTs for ensuring monitor workflow metadata is deleted on deleting monitor workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated documentation notes Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated error logs Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated assert Signed-off-by: Nishtha Mehrotra <[email protected]> --------- Signed-off-by: Nishtha Mehrotra <[email protected]> Co-authored-by: Nishtha Mehrotra <[email protected]> (cherry picked from commit 03595f8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Delete workflow metadata on deleting workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Added UTs for ensuring monitor workflow metadata is deleted on deleting monitor workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated documentation notes Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated error logs Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated assert Signed-off-by: Nishtha Mehrotra <[email protected]> --------- Signed-off-by: Nishtha Mehrotra <[email protected]> Co-authored-by: Nishtha Mehrotra <[email protected]> (cherry picked from commit 03595f8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Delete workflow metadata on deleting workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Added UTs for ensuring monitor workflow metadata is deleted on deleting monitor workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated documentation notes Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated error logs Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated assert Signed-off-by: Nishtha Mehrotra <[email protected]> --------- Signed-off-by: Nishtha Mehrotra <[email protected]> Co-authored-by: Nishtha Mehrotra <[email protected]> (cherry picked from commit 03595f8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Delete workflow metadata on deleting workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Added UTs for ensuring monitor workflow metadata is deleted on deleting monitor workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated documentation notes Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated error logs Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated assert Signed-off-by: Nishtha Mehrotra <[email protected]> --------- Signed-off-by: Nishtha Mehrotra <[email protected]> Co-authored-by: Nishtha Mehrotra <[email protected]> (cherry picked from commit 03595f8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Delete workflow metadata on deleting workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Added UTs for ensuring monitor workflow metadata is deleted on deleting monitor workflow Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated documentation notes Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated error logs Signed-off-by: Nishtha Mehrotra <[email protected]> * Updated assert Signed-off-by: Nishtha Mehrotra <[email protected]> --------- Signed-off-by: Nishtha Mehrotra <[email protected]> Co-authored-by: Nishtha Mehrotra <[email protected]> (cherry picked from commit 03595f8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Metadata is not fully cleaned up in the alerting config index when a detector is deleted
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.