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] Repeat image bug with image height fixed. #121497

Merged
merged 5 commits into from
Dec 22, 2021

Conversation

Kuznietsov
Copy link
Contributor

@Kuznietsov Kuznietsov commented Dec 17, 2021

Summary

Closes #121496.
Fixes bug, introduced at this PR.

And increased the performance of images rendering.

Screenshot 2021-12-17 at 11 26 59

@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.15.0 v7.16.0 v8.1.0 backport-v7.16.0 labels Dec 17, 2021
@Kuznietsov Kuznietsov requested a review from a team as a code owner December 17, 2021 09:26
@Kuznietsov Kuznietsov self-assigned this Dec 17, 2021
@elasticmachine
Copy link
Contributor

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

@Kuznietsov
Copy link
Contributor Author

@elasticmachine merge upstream

@Kuznietsov
Copy link
Contributor Author

@crob611 or anybody from @elastic/kibana-presentation, could you, please, review current PR) Thanks for your efforts)

@Kuznietsov
Copy link
Contributor Author

@elasticmachine merge upstream

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. Please cleanup unneeded comment and this is good to go

@@ -49,7 +49,8 @@ function createImageJSX(img: HTMLImageElement | null) {
if (!img) {
return null;
}
const params = img.width > img.height ? { heigth: img.height } : { width: img.width };
// console.log(img.height, img.width);
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this commented out console.log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, sorry for that. 👍

@Kuznietsov Kuznietsov enabled auto-merge (squash) December 22, 2021 14:24
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Test Failures

  • [job] [logs] Default CI Group #15 / machine learning data frame analytics total feature importance panel and decision path popover binary classification job should display the total feature importance in the results view

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
expressionRepeatImage 1.1KB 1.1KB +22.0B

History

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

cc @Kunzetsov

@Kuznietsov Kuznietsov merged commit 5dc03d0 into elastic:main Dec 22, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
8.0 Commit could not be cherrypicked due to conflicts
7.17 Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 121497

Kuznietsov added a commit to Kuznietsov/kibana that referenced this pull request Dec 22, 2021
* Fixed typo and increased performance.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
Kuznietsov added a commit to Kuznietsov/kibana that referenced this pull request Dec 22, 2021
* Fixed typo and increased performance.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
Kuznietsov added a commit that referenced this pull request Dec 22, 2021
* Fixed typo and increased performance.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
Kuznietsov added a commit that referenced this pull request Dec 22, 2021
* Fixed typo and increased performance.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
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.17.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Canvas] Repeat image bug with image height.
5 participants