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

[NP] TSVB #63237

Merged
merged 8 commits into from
Apr 15, 2020
Merged

[NP] TSVB #63237

merged 8 commits into from
Apr 15, 2020

Conversation

sulemanof
Copy link
Contributor

@sulemanof sulemanof commented Apr 10, 2020

Summary

Move the TSVB public into new platform.

Get rid of all lodash isFunction checks due to failure to check async functions in dev mode (we are using a local copy of lodash which does not treat async functions - issue #63239)

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@sulemanof sulemanof added Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.8.0 v8.0.0 labels Apr 10, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@sulemanof sulemanof marked this pull request as ready for review April 10, 2020 13:34
@sulemanof sulemanof requested a review from a team as a code owner April 10, 2020 13:34
@sulemanof
Copy link
Contributor Author

@elasticmachine merge upstream

@flash1293 flash1293 mentioned this pull request Apr 13, 2020
69 tasks
@sulemanof sulemanof marked this pull request as draft April 14, 2020 09:02
@sulemanof sulemanof marked this pull request as ready for review April 14, 2020 09:03
Copy link
Contributor

@flash1293 flash1293 left a 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.

Copy link
Contributor

@cchaos cchaos left a 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';
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor Author

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

@sulemanof
Copy link
Contributor Author

The styling_constants import is no longer necessary at the top of the /public/application/index.scss file.

Thanks, wasn't aware of it ! Updated.

@sulemanof sulemanof requested a review from cchaos April 14, 2020 16:05
@sulemanof
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks!

@sulemanof sulemanof merged commit 23a5734 into elastic:master Apr 15, 2020
@sulemanof sulemanof deleted the np/tsvb branch April 15, 2020 14:03
sulemanof added a commit to sulemanof/kibana that referenced this pull request Apr 15, 2020
* 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 <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
sulemanof added a commit that referenced this pull request Apr 15, 2020
* 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 <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
wayneseymour pushed a commit that referenced this pull request Apr 15, 2020
* 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 <elasticmachine@users.noreply.github.com>
tsullivan pushed a commit to tsullivan/kibana that referenced this pull request Apr 15, 2020
* 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 <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants