-
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
Timelion visualization renderer #78540
Conversation
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.
code LGTM for toASt/render parts, didn't check changes to timelion
Pinging @elastic/kibana-app (Team:KibanaApp) |
deps: TimelionVisDependencies | ||
) => ExpressionRenderDefinition<TimelionRenderValue> = (deps) => ({ | ||
name: 'timelion_vis', | ||
displayName: 'Timelion visualization', |
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 this value be localized?
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.
This is a good question.
Despite the fact that docs says:
/**
* A user friendly name of the renderer as will be displayed to user in UI.
*/
displayName: string;
I can't find any usage of the displayName
in src/plugins
, so this never affects our basic plugins.
But this could be an option for canvas
app.
I had a talk with @streamich around the ExpressionRenderer
keys, and he'll define their necessity after their team meeting today.
For now, we decided to make it an optional property.
src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx
Outdated
Show resolved
Hide resolved
src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx
Outdated
Show resolved
Hide resolved
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.
Overall LGTM! Just added some questions
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.
LGTM 🥳 Thanx @sulemanof ❤️
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.
I'm slightly confused about what's goin on with these imports, but as it's a deprecated plugin, I'm not going to worry too much.
Sorry if the description is confusing! |
@elasticmachine merge upstream |
<KibanaContextProvider services={{ ...dependencies }}> | ||
<TimelionVisComponent {...props} /> | ||
</KibanaContextProvider> | ||
), | ||
}, | ||
editorConfig: { | ||
optionsTemplate: (props: TimelionOptionsProps) => ( |
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.
I know this is technically out of scope for this PR, but I think we could lazy-load TimelionOptions
as well to shave off a few additional KB from the initial bundle size - wdyt?
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.
Makes sense! Especially since it loads monaco 🤔
Will try!
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.
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]async chunks size
distributable file count
page load bundle size
History
To update your PR or re-run it, just comment with: |
* Update styles * Implement toExpressionAst fn * Implement renderer * Update unit tests * Add unit tests * Update types * Remove unused vars * Fix types * Update types * Show error message when no data * Update ExpressionRenderDefinition api * Update renderer when there is no data * Make options component lazy Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> # Conflicts: # docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.expressionrenderdefinition.displayname.md # docs/development/plugins/expressions/server/kibana-plugin-plugins-expressions-server.expressionrenderdefinition.displayname.md # src/plugins/expressions/public/public.api.md # src/plugins/expressions/server/server.api.md
* Update styles * Implement toExpressionAst fn * Implement renderer * Update unit tests * Add unit tests * Update types * Remove unused vars * Fix types * Update types * Show error message when no data * Update ExpressionRenderDefinition api * Update renderer when there is no data * Make options component lazy Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> # Conflicts: # docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.expressionrenderdefinition.displayname.md # docs/development/plugins/expressions/server/kibana-plugin-plugins-expressions-server.expressionrenderdefinition.displayname.md # src/plugins/expressions/public/public.api.md # src/plugins/expressions/server/server.api.md
Summary
Part of #46801
Timelion
visualization;toExpressionAst
function for building pipeline;Checklist
Delete any items that are not applicable to this PR.
For maintainers