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

Delete workflow metadata on deleting a detector #1766

Merged
merged 5 commits into from
Jan 16, 2025

Conversation

nishtham-amazon
Copy link
Contributor

@nishtham-amazon nishtham-amazon commented Jan 7, 2025

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

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

Copy link
Member

@eirsep eirsep left a 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.

@nishtham-amazon
Copy link
Contributor Author

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

nishtham-amazon and others added 5 commits January 16, 2025 13:35
…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]>
@eirsep eirsep merged commit 03595f8 into opensearch-project:main Jan 16, 2025
13 of 18 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 16, 2025
* 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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 16, 2025
* 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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 16, 2025
* 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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 16, 2025
* 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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 16, 2025
* 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>
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.

3 participants