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

Index pattern management to Kibana platform #65026

Merged

Conversation

mattkime
Copy link
Contributor

@mattkime mattkime commented May 3, 2020

Summary

In this PR:

  • Index Pattern Management UI moves into its own plugin
  • ui/scripting_languages functionality is moved into the Index Pattern Management plugin
  • ui/field_editor is moved into the Index Pattern Management plugin
  • the url structure changes
    • /management/kibana/index_patterns => /management/kibana/indexPatterns (to match app id)
    • /management/kibana/index_patterns/:id => /management/kibana/indexPatterns/patterns/:id - as there were previously two app level urls previously, /management/kibana/index_patterns and /management/kibana/index_pattern
  • Remove angular routing, add react routing and related data loading
  • change namespace for localized strings

Todo

  • implement breadcrumbs
  • verify badge functionality is unchanged
  • verify doc titles
  • fix tests
  • Verify user w/o permissions is handled correctly.
  • Time field css, fix png references

Follow ups:

Checklist

Delete any items that are not applicable to this PR.

For maintainers

Dev Docs

Field Format Editors API migrated to Kibana Platform

Field format editors (used by index pattern management) are no longer added via the field formatters registry, ui/registry/field_format_editors, and are now added via the indexPatternManagement plugin.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@mattkime mattkime added Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages v8.0.0 v7.9.0 labels May 4, 2020
@elastic elastic deleted a comment from kibanamachine May 4, 2020
@VladLasitsa VladLasitsa self-requested a review May 6, 2020 13:08
Copy link
Contributor

@rudolf rudolf left a comment

Choose a reason for hiding this comment

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

👍 For Platform changes

Copy link
Contributor

@andrew-goldstein andrew-goldstein left a comment

Choose a reason for hiding this comment

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

Verified locally by creating a new space (which has no Kibana index patterns), visiting the Network page, and clicking the Configure index patterns button to navigate to the Index pattern management page:

configure-index-patterns

LGTM

@mattkime
Copy link
Contributor Author

@lukeelmers I'm looking into maintaining backwards compatibility in urls

@lukeelmers
Copy link
Member

I'm looking into maintaining backwards compatibility in urls

@mattkime 👍 I agree the value of preserving these is debatable, but it feels like the right thing to do if it's possible without a huge effort.

we'd just need to restore some of the angular routing and turn it into redirects.

@flash1293 How did y'all end up handling BWC for URLs? Is this via the kibana_legacy plugin?

@mattkime
Copy link
Contributor Author

I think I found a clue - kibanaLegacy.forwardApp

Copy link
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 edit LGTM

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks! SASS files are much cleaner, though I didn't run the actual branch.

@mattkime
Copy link
Contributor Author

@elasticmachine merge upstream

@mattkime
Copy link
Contributor Author

@lukeelmers I believe I addressed all your points.

Copy link
Contributor

@jonathan-buttner jonathan-buttner left a comment

Choose a reason for hiding this comment

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

Only SIEM changes, so 👍

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Kibana app changes LGTM
Tested locally in chrome 81 on OSX

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

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

Updates LGTM! Tested locally (chrome, mac os), and everything seems to be working as expected (including the redirects... thanks for doing those!) 🚀

@mattkime mattkime merged commit f7181a9 into elastic:master May 19, 2020
mattkime added a commit to mattkime/kibana that referenced this pull request May 19, 2020
* index pattern management to kibana platform
gmmorris added a commit to gmmorris/kibana that referenced this pull request May 19, 2020
* master: (24 commits)
  [APM] agent config 'profiling_inferred_spans_min_duration' default value is '0ms' but the min value in the field is '1ms' (elastic#66886)
  [Canvas] Fix flaky custom element functional tests (elastic#65908)
  Fix IE specific flexbox min-height issue (elastic#66555)
  [Discover] Unskip doc link functional test (elastic#66884)
  Index pattern management to Kibana platform (elastic#65026)
  Warning and link to support matrix for IE11 (elastic#66512)
  [Reporting] Consolidate Server Type Defs, move some out of Legacy (elastic#66144)
  [SIEM] [Maps] Fixes Network Map empty tooltip (elastic#66828)
  [Endpoint] Encode the index of the alert in the id response (elastic#66919)
  [services/testSubjects] reduce retry usage, add waitForEnabled (elastic#66538)
  [DOCS] Identifies cloud settings for APM (elastic#66935)
  [SIEM][CASE] Fix configuration's page user experience (elastic#66029)
  Resolver: Display node 75% view submenus (elastic#64121)
  [SIEM] Cases] Capture timeline click and open timeline in case view (elastic#66327)
  [APM] Lowercase agent names so icons work (elastic#66824)
  [dev/cli] add support for --no-cache (elastic#66837)
  [Ingest Manager] Better handling of package installation problems (elastic#66541)
  [ML] Enhances api docs for modules endpoints (elastic#66738)
  dont hide errors (elastic#66764)
  [RFC] Global search API (elastic#64284)
  ...
mattkime added a commit that referenced this pull request May 19, 2020
* index pattern management to kibana platform

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.