-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Expression repeat image #104255
[Canvas] Expression repeat image #104255
Conversation
⏳ Build in-progress, with failures
Failed CI StepsHistory
To update your PR or re-run it, just comment with: |
@elasticmachine merge upstream |
530f36a
to
dd5f20f
Compare
Pinging @elastic/kibana-presentation (Team:Presentation) |
# Conflicts: # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json
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.
limits.yml and storybook aliases LGTM
@jbudz, thank you for the review ) |
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.
Looks great. A few small nits to fix before merging.
* Side Public License, v 1. | ||
*/ | ||
|
||
import { ExpressionMetricPlugin } from './plugin'; |
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.
Should be ExpressionRepeatImagePlugin
. Probably just a copy/paste remnant.
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.
Done.
implements | ||
Plugin<ExpressionMetricPluginSetup, ExpressionMetricPluginStart, SetupDeps, StartDeps> { | ||
public setup(core: CoreSetup, { expressions }: SetupDeps): ExpressionMetricPluginSetup { | ||
expressions.registerRenderer(repeatImageRenderer); |
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.
Can you also register the function here so that it is available both client and server side.
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.
Done.
@crob611, thanks for your review) |
# Conflicts: # x-pack/plugins/translations/translations/zh-CN.json
💔 Backport failed
To backport manually run: |
* Repeat Image plugin added. # Conflicts: # packages/kbn-optimizer/limits.yml # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json
* [Canvas] Expression repeat image (#104255) * Repeat Image plugin added. # Conflicts: # packages/kbn-optimizer/limits.yml # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json * Removed not defined plugin `userSetup`.
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsAPI count
API count missing comments
async chunk count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: cc @Kunzetsov |
Completes a part of #101377.
Fixes: #97087
At this PR
repeatImage
expression is extracted from the canvas plugin and set up as a separate plugin.List of required changes to be done:
repeatImage
expression from canvas to a separate plugin.ts
andReact
.Storybook
for therepeatImage
expression renderer.canvas
pluginTesting Notes
This moves the repeat_image expression function to a standalone plugin and refactors the code. To test, just test that the repeat_image expression in canvas continues to work as expected.