Skip to content
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

[Canvas] Fixes Storybook for DatasourceComponent is crashing. #110180

Merged
merged 3 commits into from
Aug 27, 2021

Conversation

Kuznietsov
Copy link
Contributor

Closes: #105190.

Added mock for es_service to prevent calling not existing function.


Before:

Screenshot 2021-08-26 at 12 01 28


After:

Screenshot 2021-08-26 at 11 59 35

Screenshot 2021-08-26 at 12 01 52

@Kuznietsov Kuznietsov added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:small Small Level of Effort v8.0.0 impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Feature:Canvas auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 labels Aug 26, 2021
@Kuznietsov Kuznietsov requested review from crob611 and alexwizp August 26, 2021 09:02
@Kuznietsov Kuznietsov self-assigned this Aug 26, 2021
@Kuznietsov Kuznietsov requested a review from a team as a code owner August 26, 2021 09:02
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

Copy link
Contributor

@crob611 crob611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Left one small nit that needs to be looked at and addressed

@@ -20,7 +20,7 @@ import {
import { isEqual } from 'lodash';
import { i18n } from '@kbn/i18n';

import { getDefaultIndex } from '../../lib/es_service';
import { getDefaultIndex } from '../../../public/lib/es_service';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason this import had to change? Please leave it as it was if not necessary to change

@Kuznietsov
Copy link
Contributor Author

@elasticmachine merge upstream

@Kuznietsov Kuznietsov enabled auto-merge (squash) August 27, 2021 08:46
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @Kunzetsov

@Kuznietsov Kuznietsov merged commit d43e9f5 into elastic:master Aug 27, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Aug 27, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 27, 2021
… (#110397)

* Added mock for `es_service`.

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Yaroslav Kuznietsov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Canvas impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Canvas] Storybook for DatasourceComponent is crashing.
4 participants