-
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
[MDS] Use DataSourceError to replace Error in getDataSourceById call #6903
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6903 +/- ##
==========================================
- Coverage 67.45% 67.41% -0.04%
==========================================
Files 3443 3444 +1
Lines 67815 67819 +4
Branches 11033 11034 +1
==========================================
- Hits 45742 45723 -19
- Misses 19406 19430 +24
+ Partials 2667 2666 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @yujin-emma Thanks for the change. Can you please add more UT to pass codecov check? |
b9b951c
to
a99704a
Compare
); | ||
await getDataSourceById('alpha-test', savedObjects.client); | ||
} catch (e) { | ||
// expect(e).toBeTruthy(); |
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.
nit: remove comment
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.
updated
Found the test coverage failed for the move, the test already exist in the old folder, and the test there all pass |
@yujin-emma could you fix the test failures? |
Signed-off-by: yujin-emma <yujin.emma.work@gmail.com>
Fixed |
Picked up latest main and re-running checks |
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-6903-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 fbb89736e390e825f669ac49def4a529695c1cf8
# Push it to GitHub
git push --set-upstream origin backport/backport-6903-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 |
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-6903-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 fbb89736e390e825f669ac49def4a529695c1cf8
# Push it to GitHub
git push --set-upstream origin backport/backport-6903-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 |
Signed-off-by: yujin-emma <yujin.emma.work@gmail.com>
@yujin-emma is it safe to remove the failed backport label? |
I removed after the manual backport PR merged |
Description
Use DataSourceError to replace Error in getDataSourceById call
Issues Resolved
#6738
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration