Skip to content

Conversation

@alexwizp
Copy link
Contributor

@alexwizp alexwizp commented Dec 16, 2019

Closes #52842

Summary

The suggestionsProvider has already been moved to the new platform data plugin in src/plugins/data/public/suggestions_provider. There is also an api route that it depends on, which should be relocated as well:

  • Convert src/legacy/core_plugins/kibana/server/routes/api/suggestions to TS
  • Relocate to src/plugins/data/server

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@alexwizp alexwizp closed this Dec 17, 2019
@alexwizp alexwizp reopened this Dec 17, 2019
@elastic elastic deleted a comment from elasticmachine Dec 17, 2019
@alexwizp alexwizp self-assigned this Dec 17, 2019
@alexwizp alexwizp added v7.6.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:AppArch labels Dec 17, 2019
@elasticmachine
Copy link
Contributor

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

@alexwizp alexwizp marked this pull request as ready for review December 17, 2019 09:19
@alexwizp alexwizp requested a review from a team as a code owner December 17, 2019 09:19
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.

Tested and LGTM
Left a couple of comments

import { IFieldType } from './fields';

export interface IIndexPattern {
[key: string]: any;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 🤔 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lizozom
Copied from /data/public/index_patterns/index_patterns/index_pattern.ts
I need it cause for server code we get fields from IndexPattern.attributes. It's valid only for server code but I didn't wanted to introduce new types for server/index_patterns

If it's critical I can refactor this part

@alexwizp
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

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

@alexwizp alexwizp merged commit b1273e2 into elastic:master Dec 18, 2019
alexwizp added a commit to alexwizp/kibana that referenced this pull request Dec 18, 2019
* value suggestions server route -> data plugin

Closes elastic#52842

* fix PR comments

* fix PR comments
alexwizp added a commit that referenced this pull request Dec 18, 2019
* value suggestions server route -> data plugin

Closes #52842

* fix PR comments

* fix PR comments
@alexwizp alexwizp deleted the 52842_1 branch January 4, 2020 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

value suggestions server route -> data plugin

3 participants