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

Add editApp and editPath to embeddable #64297

Merged
merged 4 commits into from
Apr 27, 2020

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Apr 23, 2020

In #63443 I'm currently preparing to move the Kibana app owned applications to the new core application service and ultimately out of the new platform.

Doing so changes the URLs for navigation between apps: app/kibana#/visualize/... becomes app/visualize#/.... When using the EditPanelAction to switch from dashboard to visualize, this is simply setting window.location.href. This works fine when just the hash part of the URL changes, but when switching between actual apps, this triggers a full page reload.

The core.application.navigateToApp is the recommended way to switch between apps. This PR is passing the application core service to the action class and introduces two new optional default output properties editApp and editUrl.

If those are set, the action will invoke navigateToApp on executing the action. If an editUrl is set as well, it will serve as a fallback for executing the action.

This PR just puts the new API in place, it will be consumed in a follow-up PR.

@flash1293 flash1293 added release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v8.0.0 labels Apr 23, 2020
@flash1293 flash1293 marked this pull request as ready for review April 24, 2020 08:21
@flash1293 flash1293 requested a review from a team April 24, 2020 08:21
@flash1293 flash1293 requested review from a team as code owners April 24, 2020 08:21
Copy link
Contributor

@streamich streamich left a comment

Choose a reason for hiding this comment

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

Please see comment below, I'm curious do we want to introduce two new fields editApp and editPath?

Otherwise, LGTM, checked on Mac/Chrome.

Copy link
Contributor

@crob611 crob611 left a comment

Choose a reason for hiding this comment

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

Canvas looks good 👍

Copy link
Contributor

@XavierM XavierM left a comment

Choose a reason for hiding this comment

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

Good for SIEM

@kertal
Copy link
Member

kertal commented Apr 27, 2020

@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

@majagrubic majagrubic left a comment

Choose a reason for hiding this comment

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

I tested this in Chrome on Mac OS on navigating between visualize & dashboard, and works as expected. Code looks good to me.
I don't think this clashes in any way with the work Devon is doing atm, except there will be some merge conflicts to resolve 😅

@flash1293 flash1293 merged commit a32d7b1 into elastic:master Apr 27, 2020
@flash1293 flash1293 deleted the embeddable-app-switch branch April 27, 2020 16:07
flash1293 added a commit to flash1293/kibana that referenced this pull request Apr 27, 2020
jloleysens added a commit to jloleysens/kibana that referenced this pull request Apr 28, 2020
…bana into pipeline-editor-part-mvp-2

* 'feature/ingest-node-pipelines' of github.com:elastic/kibana: (152 commits)
  [Ingest pipelines] Simulate pipeline (elastic#64223)
  Ability to get scoped call cluster from alerting and action executors (elastic#64432)
  Add editApp and editPath to embeddable (elastic#64297)
  TSVB validation: Allow numeric values for axes (elastic#63553)
  [ML] Fixing optional plugin dependency types (elastic#64450)
  [Logs UI] Alerting (elastic#62806)
  [Endpoint] Show Policy Status on Host Details using Policy Response API (elastic#64116)
  [Maps] update LayerWizard previewLayer to take layerDescriptor instead of ISource (elastic#64461)
  Remove SO root property index signature (elastic#64434)
  [ML] Functional tests - stabilize job row details validations (elastic#64503)
  [Ingest] Add Global settings flyout (elastic#64276)
  Bump cypress dev-dependency from 4.2.0 to 4.4.1 (elastic#64408)
  Migrate saved object of type url to kibana platform (elastic#64043)
  [NP] Migrate ui capabilities (elastic#64185)
  Bump karma-mocha dev-dependency from 1.3.0 to 2.0.0 (elastic#64407)
  Migrate kql_telemetry saved object registration to Kibana platform (elastic#64149)
  Remove SO autocreateindex error and error page (elastic#64037)
  Fix issue with yarn.lock (elastic#64496)
  Bump @hapi/boom dependency from 7.4.2 to 7.4.11 (elastic#64433)
  Bump gonzales-pe dev-dependency from 4.2.4 to 4.3.0 (elastic#64401)
  ...

# Conflicts:
#	x-pack/plugins/ingest_pipelines/public/application/components/pipeline_form/pipeline_form.tsx
#	x-pack/plugins/ingest_pipelines/public/shared_imports.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants