-
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
[Enhancement] Use HTTP service instead of fetch for plugin check #9052
[Enhancement] Use HTTP service instead of fetch for plugin check #9052
Conversation
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9052 +/- ##
==========================================
+ Coverage 60.97% 60.99% +0.02%
==========================================
Files 3812 3812
Lines 91358 91357 -1
Branches 14435 14435
==========================================
+ Hits 55703 55725 +22
+ Misses 32099 32078 -21
+ Partials 3556 3554 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
...rect_query_data_sources_components/acceleration_creation/selectors/preview_sql_defintion.tsx
Outdated
Show resolved
Hide resolved
1208f40
to
3b3c15e
Compare
...rect_query_data_sources_components/acceleration_creation/selectors/preview_sql_defintion.tsx
Show resolved
Hide resolved
@@ -26,6 +26,7 @@ const mockNotifications = { | |||
toasts: { | |||
addWarning: jest.fn(), | |||
addSuccess: jest.fn(), | |||
addDanger: jest.fn(), |
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: there are common mocks from core, we can leverage that.
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.
Good suggestion. For the latest test cases I just added, I switched to use coreMock
instead. And for this one and the rest of the entire test suites of this plugin, lets open a separate PR as follow up.
70c20b5
to
92ea4fb
Compare
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
b361afe
to
124a8e3
Compare
The above link checker failure is not related to this change |
Signed-off-by: Jialiang Liang <[email protected]>
* Use HTTP service instead of fetch Signed-off-by: Jialiang Liang <[email protected]> * resolve comments Signed-off-by: Jialiang Liang <[email protected]> * Add mock for addDanger() Signed-off-by: Jialiang Liang <[email protected]> * Add unit test for sql definition preview Signed-off-by: Jialiang Liang <[email protected]> * Fix the typo of class title O_o Signed-off-by: Jialiang Liang <[email protected]> * Fix the snapshot issue Signed-off-by: Jialiang Liang <[email protected]> --------- Signed-off-by: Jialiang Liang <[email protected]> (cherry picked from commit f7ecf99) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…) (#9165) * Use HTTP service instead of fetch * resolve comments * Add mock for addDanger() * Add unit test for sql definition preview * Fix the typo of class title O_o * Fix the snapshot issue --------- (cherry picked from commit f7ecf99) Signed-off-by: Jialiang Liang <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…nsearch-project#9052) * Use HTTP service instead of fetch Signed-off-by: Jialiang Liang <[email protected]> * resolve comments Signed-off-by: Jialiang Liang <[email protected]> * Add mock for addDanger() Signed-off-by: Jialiang Liang <[email protected]> * Add unit test for sql definition preview Signed-off-by: Jialiang Liang <[email protected]> * Fix the typo of class title O_o Signed-off-by: Jialiang Liang <[email protected]> * Fix the snapshot issue Signed-off-by: Jialiang Liang <[email protected]> --------- Signed-off-by: Jialiang Liang <[email protected]>
Description
Use HTTP service instead of fetch for plugin check
Issues Resolved
preview_sql_definition
was mis-spelled aspreview_sql_defintion
, so I have also changed that and its related usage.Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration