Skip to content

Allow detectors to be stopped if underlying workflow is deleted. Don't allow them to then be started/edited (#810)#963

Merged
engechas merged 1 commit intoopensearch-project:2.xfrom
engechas:backport-810-to-2.x
Apr 4, 2024
Merged

Allow detectors to be stopped if underlying workflow is deleted. Don't allow them to then be started/edited (#810)#963
engechas merged 1 commit intoopensearch-project:2.xfrom
engechas:backport-810-to-2.x

Conversation

@engechas
Copy link
Copy Markdown
Collaborator

@engechas engechas commented Apr 3, 2024

Description

Manual backport of #810 to 2.x

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --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.

…t allow them to then be started/editted (opensearch-project#810)

* Allow detectors to be stopped if underlying workflow is deleted. Don't allow them to then be started

Signed-off-by: Chase Engelbrecht <engechas@amazon.com>

* Add copyright headers

Signed-off-by: Chase Engelbrecht <engechas@amazon.com>

---------

Signed-off-by: Chase Engelbrecht <engechas@amazon.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 41.46341% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 24.77%. Comparing base (03e95eb) to head (568777f).
Report is 6 commits behind head on 2.x.

Files Patch % Lines
...lytics/transport/TransportIndexDetectorAction.java 0.00% 14 Missing ⚠️
...ytics/transport/TransportDeleteDetectorAction.java 0.00% 8 Missing ⚠️
...g/opensearch/securityanalytics/model/Detector.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x     #963      +/-   ##
============================================
- Coverage     25.02%   24.77%   -0.26%     
- Complexity     1041     1052      +11     
============================================
  Files           277      279       +2     
  Lines         12755    12888     +133     
  Branches       1391     1403      +12     
============================================
+ Hits           3192     3193       +1     
- Misses         9289     9422     +133     
+ Partials        274      273       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@engechas engechas merged commit c2acee9 into opensearch-project:2.x Apr 4, 2024
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.

3 participants