-
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
[NP] TSVB #63237
[NP] TSVB #63237
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
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.
Tested in Chrome and everything works as expected, LGTM. Could you add the src/plugins/vis_type_timeseries
directory to the .github/CODEOWNERS
file? Seems like this was forgotten initially (probably by me).
The plugin id thing will be solved by another PR @alexwizp already set up.
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.
The styling_constants
import is no longer necessary at the top of the /public/application/index.scss
file.
@@ -17,10 +17,13 @@ | |||
* under the License. | |||
*/ | |||
|
|||
import './index.scss'; |
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.
Is this the right place to import all the styles for TSVB and not in the plugin.ts
fle?
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.
Right now there is no benefit in importing it here in editor_controller.js
,
since the plugin initialization will synchronously load these styles.
But this helps to decrease the plugin bundle if we'll switch loading of the editor_controller.js
to a dynamic import in future.
e.x. like we did it in the dashboard
plugin:
styles are loaded in :
https://github.com/elastic/kibana/blob/master/src/plugins/dashboard/public/application/application.ts#L20
but this file is under a dynamic import, so it will be loaded only if the dashboard is rendered in browser:
https://github.com/elastic/kibana/blob/master/src/plugins/dashboard/public/plugin.tsx#L246
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.
But the styles included in this index.scss
file aren't restricted to the editor application, right? There looks to be styles associated with just the render of the chart, which would need to be added to Dashboard, or any other place the TSVB chart types are displayed/embedded. So I definitely agree that importing at a lower component is a good idea, I think this is too low for all TSVB styles.
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, moved into plugin.ts
Thanks, wasn't aware of it ! Updated. |
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
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.
Thanks!
* Move TSVB into new platform * Get rid of isFunction checks * Remove extra import of styling constants * Move styles importing into plugin.ts Co-authored-by: Elastic Machine <[email protected]> # Conflicts: # .github/CODEOWNERS
* Move TSVB into new platform * Get rid of isFunction checks * Remove extra import of styling constants * Move styles importing into plugin.ts Co-authored-by: Elastic Machine <[email protected]> # Conflicts: # .github/CODEOWNERS
* Move TSVB into new platform * Get rid of isFunction checks * Remove extra import of styling constants * Move styles importing into plugin.ts Co-authored-by: Elastic Machine <[email protected]>
Summary
Move the
TSVB
public into new platform.Get rid of all lodash
isFunction
checks due to failure to checkasync
functions in dev mode (we are using a local copy of lodash which does not treatasync
functions - issue #63239)Checklist
Delete any items that are not applicable to this PR.
For maintainers