fix dynamic config API calls to pass correct input#6474
fix dynamic config API calls to pass correct input#6474ZilongX merged 4 commits intoopensearch-project:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6474 +/- ##
===========================================
+ Coverage 49.55% 62.68% +13.12%
===========================================
Files 2670 2081 -589
Lines 54290 40763 -13527
Branches 8878 7455 -1423
===========================================
- Hits 26906 25554 -1352
+ Misses 25720 13565 -12155
+ Partials 1664 1644 -20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
|
@SuZhou-Joe Since you have some prior context about https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6364/files could you please help review this one? Thanks. |
|
All checks passed and ready for merging |
* update dynamic API calls to pass correct input Signed-off-by: Tianle Huang <tianleh@amazon.com> * add unit tests Signed-off-by: Tianle Huang <tianleh@amazon.com> * add changelog Signed-off-by: Tianle Huang <tianleh@amazon.com> * revert yml Signed-off-by: Tianle Huang <tianleh@amazon.com> --------- Signed-off-by: Tianle Huang <tianleh@amazon.com> (cherry picked from commit 9a97b43) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
* update dynamic API calls to pass correct input Signed-off-by: Tianle Huang <tianleh@amazon.com> * add unit tests Signed-off-by: Tianle Huang <tianleh@amazon.com> * add changelog Signed-off-by: Tianle Huang <tianleh@amazon.com> * revert yml Signed-off-by: Tianle Huang <tianleh@amazon.com> --------- Signed-off-by: Tianle Huang <tianleh@amazon.com> (cherry picked from commit 9a97b43) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
* update dynamic API calls to pass correct input Signed-off-by: Tianle Huang <tianleh@amazon.com> * add unit tests Signed-off-by: Tianle Huang <tianleh@amazon.com> * add changelog Signed-off-by: Tianle Huang <tianleh@amazon.com> * revert yml Signed-off-by: Tianle Huang <tianleh@amazon.com> --------- Signed-off-by: Tianle Huang <tianleh@amazon.com> (cherry picked from commit 9a97b43) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* update dynamic API calls to pass correct input Signed-off-by: Tianle Huang <tianleh@amazon.com> * add unit tests Signed-off-by: Tianle Huang <tianleh@amazon.com> * add changelog Signed-off-by: Tianle Huang <tianleh@amazon.com> * revert yml Signed-off-by: Tianle Huang <tianleh@amazon.com> --------- Signed-off-by: Tianle Huang <tianleh@amazon.com> (cherry picked from commit 9a97b43) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
During https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6364/files, we simplify the input to
getConfigurationClientfrom a client to a request. We were focusing on the use case of other plugins to onboard onto it. However, we also have API use case which we missed during the related PR. So, this PR is to fix the issue by passing request into the function instead of a client.Currently it is not failing because the
asScopedfunction doesn't fail. Check the code reference hereOpenSearch-Dashboards/src/core/server/opensearch/client/cluster_client.ts
Line 137 in eef417c
Issues Resolved
Screenshot
Testing the changes
Enable the following in YML.
call Get API
call update API
call get API again
call delete API
call get API again.
Check List
yarn test:jestyarn test:jest_integration