Management plugin migration plan #47022
Labels
Feature:NP Migration
Meta
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
What is this?
I've submitted 2 PRs(#45747, #45876) related to management app. After writing them, I was wondering what should be done to migrate management app to new platform.
So, I've read the management code and wrote this long to-do list. After getting some reviews, I'll break this list into small issues.
Plan
legacy/core_plugins
. PR:ui/management -> new platform #45747injectI18n
s. PR:Remove injectI18n in management. #45876index.js
components
folder. They should be side-by-side.snapshots
should be moved undercomponents/__snapshots__
.react-router-dom
, the URL structure should be changed a bit like below:list
, and move related files.IndexPatternsList.tsx
components
folder and move:const button
intooptions.length > 1
and> 1
condition toelse
.uiSettings.get('defaultIndex')
:indexPatternsId
doesn't exist in url'defaultIndex'
doesn't change magically. It is changed in edit page. And it can be re-calculated when List is rendered again later when the page is visited again.getIndexNamesForWildcard
inIndexPatternsFetcher
.IndexPatternsFetcher
.IndexPatternsApiClient
and expose it inIndexPatterns
.get_indices
withdata.indexPatterns.indexPatterns.getIndexNamesForWildcard
.angular_template.html
euiPanel to EuiPanel component.components
tosteps
.step_index_pattern.js
step_time_field.js
lib
can_append_wildcard.js
,contains_illegal_characters.js
,get_matched_indices.js
and related tests ->steps/index_pattern/lib.ts
andlib.test.ts
extract_time_fields.js
and related tests ->steps/time_field/lib.ts
andlib.test.ts
.ensure_minimum_time.js
,get_indices
and related tests ->lib.ts
andlib.test.ts
componentWillUpdate-> Fortunately, it doesn't exist.create_index_pattern_wizard.js
.edit_index_pattern.js
field_wildcard.ts
injectI18n
PR: Remove injectI18n in field editor. #47656create_field.tsx
and add componentedit_field.tsx
and add componentEditIndexPatterns
componentIndexPatternsSection
component.IndexPatternFieldList
,CreateScriptedField
,EditScriptedField
scripted_fields
IndexPatternsSection
ComponentIndexPatternsSection
component.Route
s.legacy
folder.index.js
andapp.html
.render
anddestroy
functions inindex.js
.import './legacy'
inindex.ts
.find_objects.js
find_objects.js
editor
dir and move files into it.SearchSourceProvider
.SavedObjectEditor
componentlist
folder and move related files.SavedObjectList
component.SavedObjectsSection
componentSavedObjectEditor
andSavedObjectList
_view.js
legacy
folder and fill it withapp.html
andapp.js
AdvancedSettingsSection
component.updateLandingPage
functionactiveSectionId
.Subsection
andSection
interface with those in API.npSetup.core.injectedMetadata.getKibanaVersion()
src/plugins/management/public
legacy/server/saved_objects
legacy/core_plugins/kibana/server/routes/api/management
src/plugins/management/server
src/plugins/data/server
Parent issue: #31968
The text was updated successfully, but these errors were encountered: