Skip to content

Commit

Permalink
[Enhancement] Use HTTP service instead of fetch for plugin check (#9052)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
RyanL1997 authored Jan 9, 2025
1 parent eff5b27 commit f7ecf99
Show file tree
Hide file tree
Showing 5 changed files with 515 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const mockNotifications = {
toasts: {
addWarning: jest.fn(),
addSuccess: jest.fn(),
addDanger: jest.fn(),
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { CatalogCacheManager } from '../../../../../framework/catalog_cache/cach
import { IndexAdvancedSettings } from '../selectors/index_advanced_settings';
import { IndexSettingOptions } from '../selectors/index_setting_options';
import { IndexTypeSelector } from '../selectors/index_type_selector';
import { PreviewSQLDefinition } from '../selectors/preview_sql_defintion';
import { PreviewSQLDefinition } from '../selectors/preview_sql_definition';
import { AccelerationDataSourceSelector } from '../selectors/source_selector';
import { QueryVisualEditor } from '../visual_editors/query_visual_editor';
import { CreateAccelerationButton } from './create_acceleration_button';
Expand Down Expand Up @@ -277,6 +277,7 @@ export const CreateAcceleration = ({
resetFlyout={resetFlyout}
notifications={notifications}
application={application}
http={http}
/>
</EuiForm>
</EuiFlyoutBody>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f7ecf99

Please sign in to comment.