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 Patterns 👉 New Platform #43438

Closed
9 tasks done
Tracked by #31968
streamich opened this issue Aug 16, 2019 · 1 comment
Closed
9 tasks done
Tracked by #31968

Index Patterns 👉 New Platform #43438

streamich opened this issue Aug 16, 2019 · 1 comment
Assignees
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:NP Migration Meta release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v7.6.0 v8.0.0

Comments

@streamich
Copy link
Contributor

streamich commented Aug 16, 2019

A step-by-step complete plan to move Index Patterns service to the New Platform.

Also:

Parent issue: #31968

Dev Docs

The indexPatterns service is now available from the data plugin.

class MyPlugin {
  start(core, data) {
    const indexPatterns = data.indexPatterns.get(indexPatternId);
    ...
  }
}

Type Definitions

  • The IIndexPattern type replaces the legacy StaticIndexPattern type
  • IndexPattern was moved to the new plugin.
  • FieldList was moved to the new plugin and the IFieldList type was added.
  • Field was moved to the new plugin, along side the IFieldType type.
    import { IIndexPattern, IFieldType } from 'src/plugins/data/public';
    const indexPattern: IIndexPattern = data.indexPatterns.find(indexPatternId);
    const field: IFieldType[] = indexPattern.fields;

Helper functions

    import { indexPatterns as indexPatternsUtils } from 'src/plugins/data/public';

    const indexPattern: IIndexPattern = indexPatterns.getFromSavedObject(savedObject)
    const isValid = indexPatterns.validateIndexPattern(indexPatternString)

Deletions

  • IndexPatternAlreadyExists
  • NoDefaultIndexPattern
  • NoDefinedIndexPatterns
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch

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:NP Migration Meta release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v7.6.0 v8.0.0
Projects
None yet
Development

No branches or pull requests

7 participants