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

ManagedIndex Explain Action - Index permissions check fix #783

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

petardz
Copy link
Contributor

@petardz petardz commented May 16, 2023

Issue #, if available:

Description of changes:

Fixed verifying index permissions when calling Explain API on managed index

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.

@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Merging #783 (fd7df16) into main (42833b1) will increase coverage by 0.10%.
The diff coverage is 47.45%.

❗ Current head fd7df16 differs from pull request most recent head a087836. Consider uploading reports for the commit a087836 to get more accurate results

@@             Coverage Diff              @@
##               main     #783      +/-   ##
============================================
+ Coverage     75.53%   75.63%   +0.10%     
- Complexity     2831     2833       +2     
============================================
  Files           364      364              
  Lines         16176    16177       +1     
  Branches       2324     2324              
============================================
+ Hits          12219    12236      +17     
+ Misses         2619     2603      -16     
  Partials       1338     1338              
Impacted Files Coverage Δ
...pensearch/indexmanagement/IndexManagementPlugin.kt 89.49% <ø> (ø)
...transport/action/explain/TransportExplainAction.kt 70.89% <47.45%> (-0.34%) ⬇️

... and 6 files with indirect coverage changes

@@ -180,83 +182,81 @@ class TransportExplainAction @Inject constructor(
}

private fun searchForMetadata(searchRequest: SearchRequest) {
client.threadPool().threadContext.stashContext().use { threadContext ->
Copy link
Member

Choose a reason for hiding this comment

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

Stash context so that plugin can search the ISM system index, otherwise the search won't return anything

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is called from coroutine so TLS should be clean at this point

petardz and others added 11 commits June 1, 2023 01:32
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
…urity tests into security package

Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
…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]>
…urity tests into security package

Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
@petardz petardz force-pushed the explain-index-check-fix branch 2 times, most recently from 4b7d6a2 to 95d4c8c Compare May 31, 2023 23:37
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[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.

3 participants