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

CRUD api for long running operation notification config #722

Merged
merged 6 commits into from
May 25, 2023

Conversation

zhichao-aws
Copy link
Member

@zhichao-aws zhichao-aws commented Mar 30, 2023

Issue #, if available:
#700
Description of changes:

  • add CRUD api for long running operation notification config
  • add a new .opensearch-control-center index to save configs

CheckList:

  • 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.

Signed-off-by: zhichao-aws <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Mar 30, 2023

Codecov Report

Merging #722 (b9a704b) into main (45b1476) will increase coverage by 0.22%.
The diff coverage is 81.69%.

@@             Coverage Diff              @@
##               main     #722      +/-   ##
============================================
+ Coverage     75.42%   75.64%   +0.22%     
- Complexity     2593     2699     +106     
============================================
  Files           335      353      +18     
  Lines         15176    15622     +446     
  Branches       2188     2233      +45     
============================================
+ Hits          11446    11818     +372     
- Misses         2451     2506      +55     
- Partials       1279     1298      +19     
Impacted Files Coverage Δ
...nt/indexstatemanagement/model/destination/Chime.kt 55.55% <ø> (ø)
...statemanagement/model/destination/CustomWebhook.kt 97.14% <ø> (ø)
...nt/indexstatemanagement/model/destination/Slack.kt 77.77% <ø> (ø)
...statemanagement/resthandler/RestAddPolicyAction.kt 80.95% <ø> (ø)
...temanagement/resthandler/RestChangePolicyAction.kt 95.00% <ø> (ø)
...exstatemanagement/resthandler/RestExplainAction.kt 100.00% <ø> (ø)
...temanagement/resthandler/RestRemovePolicyAction.kt 100.00% <ø> (ø)
...t/resthandler/RestRetryFailedManagedIndexAction.kt 88.00% <ø> (ø)
...refreshanalyzer/RestRefreshSearchAnalyzerAction.kt 94.11% <ø> (ø)
...ment/rollup/resthandler/RestExplainRollupAction.kt 100.00% <ø> (ø)
... and 23 more

... and 8 files with indirect coverage changes

Copy link
Contributor

@gaobinlong gaobinlong left a comment

Choose a reason for hiding this comment

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

Great work, but need some minor changes.

Hailong-am
Hailong-am previously approved these changes Apr 3, 2023
Copy link
Collaborator

@Hailong-am Hailong-am left a comment

Choose a reason for hiding this comment

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

looks good to me

@Hailong-am
Copy link
Collaborator

docker security test fail due to docker image is not update to date which not includ Strings refactor change.

Copy link
Contributor

@gaobinlong gaobinlong left a comment

Choose a reason for hiding this comment

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

LGTM

@Hailong-am Hailong-am merged commit 96f7380 into opensearch-project:main May 25, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 25, 2023
* notification crud api

Signed-off-by: zhichao-aws <[email protected]>

* changes based on comments; add tests

Signed-off-by: zhichao-aws <[email protected]>

* changes for comment

Signed-off-by: zhichao-aws <[email protected]>

* change behavior for get action index not exists, fix test cases

Signed-off-by: zhichao-aws <[email protected]>

* fix weak password for changes in security plugin

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: zhichao-aws <[email protected]>
(cherry picked from commit 96f7380)
Hailong-am pushed a commit that referenced this pull request May 25, 2023
#791)

* CRUD api for long running operation notification config (#722)

* notification crud api

Signed-off-by: zhichao-aws <[email protected]>

* changes based on comments; add tests

Signed-off-by: zhichao-aws <[email protected]>

* changes for comment

Signed-off-by: zhichao-aws <[email protected]>

* change behavior for get action index not exists, fix test cases

Signed-off-by: zhichao-aws <[email protected]>

* fix weak password for changes in security plugin

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: zhichao-aws <[email protected]>
(cherry picked from commit 96f7380)

* fix test code apache http package version

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: zhichao-aws <[email protected]>
petardz pushed a commit to petardz/index-management that referenced this pull request May 31, 2023
…roject#722)

* notification crud api

Signed-off-by: zhichao-aws <[email protected]>

* changes based on comments; add tests

Signed-off-by: zhichao-aws <[email protected]>

* changes for comment

Signed-off-by: zhichao-aws <[email protected]>

* change behavior for get action index not exists, fix test cases

Signed-off-by: zhichao-aws <[email protected]>

* fix weak password for changes in security plugin

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: zhichao-aws <[email protected]>
petardz pushed a commit to petardz/index-management that referenced this pull request May 31, 2023
…roject#722)

* notification crud api

Signed-off-by: zhichao-aws <[email protected]>

* changes based on comments; add tests

Signed-off-by: zhichao-aws <[email protected]>

* changes for comment

Signed-off-by: zhichao-aws <[email protected]>

* change behavior for get action index not exists, fix test cases

Signed-off-by: zhichao-aws <[email protected]>

* fix weak password for changes in security plugin

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: zhichao-aws <[email protected]>
ronnaksaxena pushed a commit to ronnaksaxena/index-management that referenced this pull request Jul 19, 2023
opensearch-project#791)

* CRUD api for long running operation notification config (opensearch-project#722)

* notification crud api

Signed-off-by: zhichao-aws <[email protected]>

* changes based on comments; add tests

Signed-off-by: zhichao-aws <[email protected]>

* changes for comment

Signed-off-by: zhichao-aws <[email protected]>

* change behavior for get action index not exists, fix test cases

Signed-off-by: zhichao-aws <[email protected]>

* fix weak password for changes in security plugin

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: zhichao-aws <[email protected]>
(cherry picked from commit 96f7380)

* fix test code apache http package version

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: zhichao-aws <[email protected]>
Signed-off-by: Ronnak Saxena <[email protected]>
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.

4 participants