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

value suggestions server route -> data plugin #53191

Merged
merged 4 commits into from
Dec 18, 2019
Merged

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

@@ -20,6 +20,7 @@
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

src/plugins/data/server/index_patterns/utils.ts Outdated Show resolved Hide resolved
src/plugins/data/server/index_patterns/utils.ts Outdated Show resolved Hide resolved
src/plugins/data/server/index_patterns/index.ts Outdated Show resolved Hide resolved
@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 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