-
Notifications
You must be signed in to change notification settings - Fork 916
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
Fix missing customApiRegistryPromise param for test connection #5944
Conversation
Signed-off-by: Lu Yu <[email protected]>
Signed-off-by: Lu Yu <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5944 +/- ##
==========================================
+ Coverage 67.00% 67.01% +0.01%
==========================================
Files 3307 3310 +3
Lines 63614 63647 +33
Branches 10163 10165 +2
==========================================
+ Hits 42626 42656 +30
- Misses 18518 18522 +4
+ Partials 2470 2469 -1
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: Lu Yu <[email protected]>
Signed-off-by: Lu Yu <[email protected]>
@BionIT we probably need to add label for the backport 2.x 2.13, and may need to 2.12 as well |
@@ -129,7 +129,8 @@ export class DataSourcePlugin implements Plugin<DataSourcePluginSetup, DataSourc | |||
router, | |||
dataSourceService, | |||
cryptographyServiceSetup, | |||
authRegistryPromise | |||
authRegistryPromise, | |||
customApiSchemaRegistryPromise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know how this went missing in the first place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add more tests for MDS to capture things like this, and I have added the only test for the test connection router. Can we fix this issue first then add more tests?
custom API registry is new and not released in 2.12 |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-5944-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 6d5560e00c31748ddfbcd031241d67abaaf58c91
# Push it to GitHub
git push --set-upstream origin backport/backport-5944-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.x Then, create a pull request where the |
…earch-project#5944) * fix missing param and add changelog and test Signed-off-by: Lu Yu <[email protected]> * change pr number Signed-off-by: Lu Yu <[email protected]> * remove dangling changelog Signed-off-by: Lu Yu <[email protected]> --------- Signed-off-by: Lu Yu <[email protected]>
…est connection (#5944) (#5971) * Fix missing customApiRegistryPromise param for test connection (#5944) * fix missing param and add changelog and test Signed-off-by: Lu Yu <[email protected]> * change pr number Signed-off-by: Lu Yu <[email protected]> * remove dangling changelog Signed-off-by: Lu Yu <[email protected]> --------- Signed-off-by: Lu Yu <[email protected]> * remove dangling changelog Signed-off-by: Lu Yu <[email protected]> --------- Signed-off-by: Lu Yu <[email protected]>
…earch-project#5944) * fix missing param and add changelog and test Signed-off-by: Lu Yu <[email protected]> * change pr number Signed-off-by: Lu Yu <[email protected]> * remove dangling changelog Signed-off-by: Lu Yu <[email protected]> --------- Signed-off-by: Lu Yu <[email protected]>
Manual Backport #5971 |
Description
This change adds custom API registry to the test connection route
Issues Resolved
Fixes #5937
Screenshot
bug.mp4
Testing the changes
The following steps were followed:
enabled data source plugin
click test connection and should be successful
Check List
yarn test:jest
yarn test:jest_integration