Skip to content

[Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin#90292

Merged
nreese merged 15 commits intoelastic:masterfrom
nreese:remove_maps_file_upload
Feb 10, 2021
Merged

[Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin#90292
nreese merged 15 commits intoelastic:masterfrom
nreese:remove_maps_file_upload

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented Feb 4, 2021

#89225 renamed the old file_upload to maps_file_upload to clear the file_upload namespace
#89640 moved ml import API endpoint into the new file_upload plugin

This PR finishes the creating of a unified file_upload plugin by folding maps_file_upload public folder into the new file_upload plugin and removing maps_file_upload plugin.

@nreese nreese added chore Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.12.0 labels Feb 4, 2021
@nreese nreese requested a review from kindsun February 4, 2021 16:10
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@nreese nreese requested a review from a team as a code owner February 4, 2021 19:19
@nreese nreese requested review from a team as code owners February 4, 2021 20:10
Copy link
Copy Markdown
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

optimizer limits LGTM

edit: failure related to the maps plugin limit

@spalger
Copy link
Copy Markdown
Contributor

spalger commented Feb 4, 2021

jenkins test this

Copy link
Copy Markdown
Contributor

@kindsun kindsun left a comment

Choose a reason for hiding this comment

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

Overall, works really well! This is a great step forward towards a unified file upload presence. I'm not seeing any differences in how this operates w/ the new back-end, which is super. Didn't see any residual dangling references that need to be updated. lgtm w/ green CI!

  • code review
  • tested locally in chrome

image

@nreese nreese requested a review from a team as a code owner February 5, 2021 01:59
expect(newIndexedLayerExists).to.be(false);
});

it('should create a link to new index in management', async () => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed test case because /app/management/kibana/indexPatterns URL no longer supports filter option.

Copy link
Copy Markdown
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

ML edits LGTM

@nreese nreese requested a review from Bamieh February 5, 2021 13:41
Copy link
Copy Markdown
Contributor

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

LGTM

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Feb 6, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fileUpload - 189 +189
mapsFileUpload 187 - -187
ml 1735 1732 -3
total -1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fileUpload - 825.2KB ⚠️ +825.2KB
mapsFileUpload 825.8KB - -825.8KB
ml 6.3MB 6.3MB -2.0KB
total -2.6KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fileUpload - 10.4KB +10.4KB
maps 139.0KB 139.0KB -4.0B
mapsFileUpload 7.2KB - -7.2KB
ml 58.0KB 58.2KB +237.0B
total +3.5KB

Saved Objects .kibana field count

Every field in each saved object type adds overhead to Elasticsearch. Kibana needs to keep the total field count below Elasticsearch's default limit of 1000 fields. Only specify field mappings for the fields you wish to search on or query. See https://www.elastic.co/guide/en/kibana/master/development-plugin-saved-objects.html#_mappings

id before after diff
file-upload-telemetry 2 - -2
Unknown metric groups

async chunk count

id before after diff
fileUpload - 1 +1
mapsFileUpload 1 - -1
total -0

History

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

@nreese nreese merged commit 1ba7d7a into elastic:master Feb 10, 2021
nreese added a commit to nreese/kibana that referenced this pull request Feb 10, 2021
…e_upload plugin (elastic#90292)

* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
nreese added a commit that referenced this pull request Feb 10, 2021
…e_upload plugin (#90292) (#90890)

* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 10, 2021
* master: (99 commits)
  [Fleet] Use Fleet Server indices in the search bar (elastic#90835)
  [Search Sessions] added an info flyout to session management (elastic#90559)
  [ILM] Revisit searchable snapshot field after new redesign (elastic#90793)
  [Alerting] License Errors on Alert List View (elastic#89920)
  RFC Improve saved object migrations algorithm (elastic#84333)
  [Lens] (Accessibility) Fix focus on drag and drop actions (elastic#90561)
  Use new shortcut links to Fleet discuss forums. (elastic#90786)
  Do not generate an ephemeral encryption key in production. (elastic#81511)
  [Fleet] Use staging registry for snapshot builds (elastic#90327)
  Actually deleting x-pack/tsconfig.refs.json (elastic#90898)
  Add deprecation warning to all Beats CM pages. (elastic#90741)
  skip flaky suite (elastic#90136)
  Revert "Revert "[Metrics UI] Add Metrics Anomaly Alert Type (elastic#89244)"" (elastic#90889)
  remove ref to removed tsconfig file
  [core.logging] Uses host timezone as default (elastic#90368)
  [Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (elastic#90292)
  Revert "[Metrics UI] Add Metrics Anomaly Alert Type (elastic#89244)"
  [dev-utils/ci-stats] support disabling ship errors (elastic#90851)
  Prefix with / (elastic#90836)
  [Metrics UI] Add Metrics Anomaly Alert Type (elastic#89244)
  ...
tylersmalley added a commit that referenced this pull request Feb 10, 2021
@tylersmalley
Copy link
Copy Markdown
Member

@nreese I reverted the 7.x backport due to it breaking CI.

1226842

I believe it to be an incompatibility with #90537

nreese added a commit to nreese/kibana that referenced this pull request Feb 10, 2021
…e_upload plugin (elastic#90292)

* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
nreese added a commit that referenced this pull request Feb 10, 2021
…to file_upload plugin (#90292) (#90946)

* [Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292)

* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* remove maps_file_upload from tsconfig.refs.json

* remove x-pack/tsconfig.refs.json, removed in upstream

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore release_note:skip Skip the PR/issue when compiling release notes Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.12.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants