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

Separate url forwarding logic and legacy services #76892

Merged
merged 9 commits into from
Sep 14, 2020

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Sep 7, 2020

Closes #69133

  • urlForwarding - will stick around forever, possibly including related functionality later on
  • kibanaLegacy - will be removed as soon as the last consumer is done

This PR separates the parts to keep (legacy url forwarding) from the parts to migrate away from mid-term. It cleans up two questionable dependencies right away:

  • inline the migrateLegacyQuery helper into the places it's used (data, visualize, discover, dashboard) - it doesn't really fit anywhere and we did the same for the dotted string helper
  • Replace kbnBaseUrl with the home url in the monitoring plugin

@flash1293 flash1293 marked this pull request as ready for review September 8, 2020 11:40
@flash1293 flash1293 requested a review from a team as a code owner September 8, 2020 11:40
@flash1293 flash1293 requested a review from a team September 8, 2020 11:40
@flash1293 flash1293 requested review from a team as code owners September 8, 2020 11:40
@flash1293 flash1293 requested a review from a team September 8, 2020 11:40
@flash1293 flash1293 added release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0 labels Sep 8, 2020
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@mshustov mshustov left a comment

Choose a reason for hiding this comment

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

ok for Migration.md changes

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

Code owner change is moving migrateLegacyQuery into the data plugin.
LGTM

Copy link
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

LGTM for stack monitoring

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Change to Dev Tools LGTM, didn't test locally.

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Code LGTM, KibanaApp code owner review, tested locally in Firefox / Chrome, redirects and migration of legacy URLs work 👍

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
dashboard 179 +1 178
data 542 +1 541
discover 259 +1 258
kibanaLegacy 124 -10 134
urlForwarding 11 +11 -
visualize 317 +1 316
total +5

async chunks size

id value diff baseline
discover 430.9KB +103.0B 430.8KB
home 568.9KB +3.0B 568.9KB
kibanaLegacy 147.1KB -9.0B 147.1KB
monitoring 1.1MB -59.0B 1.1MB
visualize 697.7KB +50.0B 697.6KB
total +88.0B

page load bundle size

id value diff baseline
dashboard 711.5KB +75.0B 711.4KB
dashboardMode 150.4KB +163.0B 150.2KB
data 1.4MB -190.0B 1.4MB
devTools 166.2KB +3.0B 166.2KB
discover 229.3KB +39.0B 229.3KB
home 26.6KB +11.0B 26.6KB
indexPatternManagement 136.0KB +4.0B 136.0KB
kibanaLegacy 232.5KB -14.7KB 247.3KB
lens 1.0MB +3.0B 1.0MB
monitoring 297.8KB -252.0B 298.1KB
urlForwarding 17.1KB +17.1KB -
visualize 41.1KB -233.0B 41.3KB
total +2.0KB

distributable file count

id value diff baseline
default 45527 +2 45525
oss 27220 +2 27218
total +4

History

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

@flash1293 flash1293 merged commit a49d8e8 into elastic:master Sep 14, 2020
flash1293 added a commit to flash1293/kibana that referenced this pull request Sep 14, 2020
jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 14, 2020
…s-for-710

* 'master' of github.com:elastic/kibana: (65 commits)
  Separate url forwarding logic and legacy services (elastic#76892)
  Bump yargs-parser to v13.1.2+ (elastic#77009)
  [Ingest Manager] Shared Fleet agent policy action (elastic#76013)
  [Search] Re-add support for aborting when a connection is closed (elastic#76470)
  [Search] Remove long-running query pop-up (elastic#75385)
  [Monitoring] Fix UI error when alerting is not available (elastic#77179)
  do not log plugin id format warning in dist mode (elastic#77134)
  [ML] Improving client side error handling (elastic#76743)
  [Alerting][Connectors] Refactor IBM Resilient: Generic Implementation (phase one) (elastic#74357)
  [Docs] some basic searchsource api docs (elastic#77038)
  add  cGroupOverrides to the legacy config (elastic#77180)
  Change saved object bulkUpdate to work across multiple namespaces (elastic#75478)
  [Security Solution][Resolver] Replace Selectable popover with badges (elastic#76997)
  Removing ml-state index from archive (elastic#77143)
  [Security Solution] Add unit tests for histograms (elastic#77081)
  [Lens] Filters aggregation  (elastic#75635)
  [Enterprise Search] Update WS Overview logic to use new config data (elastic#77122)
  Cleanup type output before building new types (elastic#77211)
  [Security Solution] Use safe type in resolver backend (elastic#76969)
  Use proper lodash syntax (elastic#77105)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/node_allocation.tsx
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 Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split up kibana_legacy plugin
8 participants