-
Notifications
You must be signed in to change notification settings - Fork 919
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 dynamicConfigService mock import #7922
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7922 +/- ##
==========================================
+ Coverage 64.30% 64.31% +0.01%
==========================================
Files 3674 3674
Lines 81135 81135
Branches 12926 12926
==========================================
+ Hits 52173 52182 +9
+ Misses 25751 25742 -9
Partials 3211 3211
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: Huy Nguyen <[email protected]>
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-7922-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b370871035314bc966b16c7de3c780bb3c3af9f7
# Push it to GitHub
git push --set-upstream origin backport/backport-7922-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 |
cc @huyaboo Backport failed |
* Add dynamic config service to core Signed-off-by: Huy Nguyen <[email protected]> * Add opensearch client implementation Signed-off-by: Huy Nguyen <[email protected]> * Add descriptions for the DAO clients Signed-off-by: Huy Nguyen <[email protected]> * Refactor DynamicConfigService Signed-off-by: Huy Nguyen <[email protected]> * Refactor dynamic config service start Signed-off-by: Huy Nguyen <[email protected]> --------- Signed-off-by: Huy Nguyen <[email protected]> (cherry picked from commit 8a96664) Fix issue when bootstrapping on 2.x (opensearch-project#7901) * Fix issue bootstrapping dynamic config service Signed-off-by: Huy Nguyen <[email protected]> * Changeset file for PR opensearch-project#7901 created/updated --------- Signed-off-by: Huy Nguyen <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 07504f6) Fix mock import (opensearch-project#7922) Signed-off-by: Huy Nguyen <[email protected]> (cherry picked from commit b370871)
* Add dynamic config service to core Signed-off-by: Huy Nguyen <[email protected]> * Add opensearch client implementation Signed-off-by: Huy Nguyen <[email protected]> * Add descriptions for the DAO clients Signed-off-by: Huy Nguyen <[email protected]> * Refactor DynamicConfigService Signed-off-by: Huy Nguyen <[email protected]> * Refactor dynamic config service start Signed-off-by: Huy Nguyen <[email protected]> --------- Signed-off-by: Huy Nguyen <[email protected]> (cherry picked from commit 8a96664) Fix issue when bootstrapping on 2.x (#7901) * Fix issue bootstrapping dynamic config service Signed-off-by: Huy Nguyen <[email protected]> * Changeset file for PR #7901 created/updated --------- Signed-off-by: Huy Nguyen <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 07504f6) Fix mock import (#7922) Signed-off-by: Huy Nguyen <[email protected]> (cherry picked from commit b370871) Signed-off-by: Huy Nguyen <[email protected]>
Description
This PR separates
mock
files fromindex
, which fixes the build artifact not bootstrappingIssues Resolved
closes #7911
Testing the changes
Built artifact and it starts (
opensearch
was not started hence theECONNREFUSED
error)Changelog
Check List
yarn test:jest
yarn test:jest_integration