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] Finish moving UI to Kibana Platform #64831

Merged
merged 6 commits into from
May 4, 2020

Conversation

crob611
Copy link
Contributor

@crob611 crob611 commented Apr 29, 2020

This finishes moving the UI of Canvas to Kibana Platform 🎉

Key changes here that differ from running on legacy are cleaning up the store and the router and the history object when our app is "finished".

Also a couple of imports where we had to pull in specific dist versions as something with the module the new optimizer was not liking.

There are a handful of other things running on the platform right now, I'm just not sure which ones they are. You can run Kibana with the option yarn start --plugin-path test/plugin_functional/plugins/core_plugin_a and it will add a Foo plugin so you can see switching back and forth between apps.

Dev Docs

The Canvas application has moved to run on the new Kibana Platform.

Any existing user created plugins that were extending Canvas functionality will also need to move to run on the Kibana Platform to continue extending Canvas.

@crob611 crob611 added review Feature:New Platform Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:medium Medium Level of Effort v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.8.0 labels Apr 29, 2020
@crob611 crob611 requested review from a team as code owners April 29, 2020 20:01
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@crob611
Copy link
Contributor Author

crob611 commented Apr 29, 2020

@joshdover In case you want to play around and try and see how you can break this

@joshdover
Copy link
Contributor

There are a handful of other things running on the platform right now, I'm just not sure which ones they are. You can run Kibana with the option yarn start --plugin-path test/plugin_functional/plugins/core_plugin_a and it will add a Foo plugin so you can see switching back and forth between apps.

You can also use SIEM, Metrics, Logs, ML

@crob611
Copy link
Contributor Author

crob611 commented Apr 29, 2020

@elasticmachine merge upstream

@crob611
Copy link
Contributor Author

crob611 commented Apr 30, 2020

@elasticmachine merge upstream

@joshdover
Copy link
Contributor

joshdover commented Apr 30, 2020

This seems to have the same problem that Monitoring had here: #62908 (comment)

Basically you need to make sure that clicking the "Canvas" icon in the main nav always navigates back to the root of your application.

Copy link
Contributor

@poffdeluxe poffdeluxe left a comment

Choose a reason for hiding this comment

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

lgtm -- just one question about the nav link route changing stuff

@@ -46,6 +45,6 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
export const App = compose(
connect(mapStateToProps, mapDispatchToProps, mergeProps),
withProps(() => ({
onRouteChange: trackRouteChange,
onRouteChange: () => undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this just be removed? Are we tracking nav links still?

@crob611 crob611 added release_note:breaking and removed release_note:skip Skip the PR/issue when compiling release notes labels May 4, 2020
@crob611
Copy link
Contributor Author

crob611 commented May 4, 2020

@elasticmachine merge upstream

Copy link
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@crob611 crob611 merged commit bd73d96 into elastic:master May 4, 2020
crob611 pushed a commit to crob611/kibana that referenced this pull request May 4, 2020
* Finish Canvas platform migration

* Revert inadvertent change

* Import Canvas .scss directly

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
crob611 pushed a commit that referenced this pull request May 5, 2020
* Finish Canvas platform migration

* Revert inadvertent change

* Import Canvas .scss directly

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@gchaps gchaps added release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. and removed release_note:breaking labels Jun 8, 2020
@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / kibana-intake-agent / Jest Integration Tests.packages/kbn-es/src/integration_tests.#start(installPath) resolves when bin/elasticsearch logs "started"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 5 times on tracked branches: https://github.com/elastic/kibana/issues/64490


Stack Trace

Error: Caught error after test environment was torn down

expected 200 "OK", got 301 "Moved Permanently"
    at Test.Object.<anonymous>.Test._assertStatus (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test.Object.<anonymous>.Test._assertFunction (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.Object.<anonymous>.Test.assert (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/supertest/lib/test.js:173:18)
    at Server.assert (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/supertest/lib/test.js:131:12)
    at Object.onceWrapper (events.js:286:20)
    at Server.emit (events.js:198:13)
    at emitCloseNT (net.js:1619:8)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Kibana Pipeline / kibana-intake-agent / Jest Integration Tests.src/core/server/http/integration_tests.http service elasticsearch passes request authorization header to Elasticsearch if registerAuth was not set

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 33 times on tracked branches: https://github.com/elastic/kibana/issues/64310


Stack Trace

Error: unknown error
    at respond (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/elasticsearch/src/lib/transport.js:351:15)
    at checkRespForFailure (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
    at HttpConnector.<anonymous> (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
    at ClientRequest.wrapper (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4929:19)
    at ClientRequest.emit (events.js:198:13)
    at Socket.socketErrorListener (_http_client.js:401:9)
    at Socket.emit (events.js:198:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:New Platform loe:medium Medium Level of Effort release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants