-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 field editor #88995
Index pattern field editor #88995
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
…rt interface (#89232) * add userPermissions method to plugin start interface
@elasticmachine merge upstream |
merge conflict between base and head |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
…tern management (#89259) * move field format editors to index pattern field editor plugin
@elasticmachine merge upstream |
merge conflict between base and head |
@elasticmachine merge upstream |
…89599) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@elasticmachine merge upstream |
@elasticmachine merge upstream |
* Add validation to custom label, value and popularity fields * Allow popularity to be equal to zero
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works exactly described, great work @sebelga ! Great work 🍻! I spent a while playing around with this functionality, it is really exciting to see this come to life in the ES stack 👏🏻
I tested locally and wanted to share the following thoughts on the UX since I approached this with very little domain knowledge :), no blockers from my side however.
Mention of "runtime fields"
While creating/editing a "new field" I did not encounter the term "runtime field" until I reached this point. I'm not sure users coming from little/no domain knowledge will understand this term or the distinction it implies since there is not mention of it before this help text.
Consistency with use of "_source"
This is a nit, but in some places "_source" is presented as "code" text, and in others not. Should we make it just one or the other?
Thanks for the review @jloleysens ! I fixed the inconsistency issue in #91477. Regarding your comment about not mentioning runtime fields anywhere but in the helptext I prefer to leave that to @lockewritesdocs. It was deliberate to have "Create field" instead of "Create runtime field". |
@jloleysens, you make a good point! I agree that seeing the term runtime fields in a field description for the first time is a little jarring. I talked to @mattkime, and we're going to leave things as they are for now and continue this discussion elsewhere about whether to expose Kibana users to the concept of runtime fields at all, and how to get them information about writing Painless scripts when they need it. |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Matt Kime <matt@mattki.me>
The CI failure is due to a recent merged on master and a conflict in TS interface. I asked @qn895 to update their interface (63ac0f7#r47216005) |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groups@kbn/ui-shared-deps asset size
async chunk count
History
To update your PR or re-run it, just comment with: |
It's not a strict requirement but would it be possible to expose the delete functionality outside of the render prop? Due to the structure of our components it would simplify the integration. |
@flash1293 We exposed it in the render props because it comes with the confirmation modal to let the user confirm he wants to delete the fields. We could expose the delete outside of the render props component but then you would have to implement the confirmation modal logic. Let us know |
Index pattern field editor # Conflicts: # packages/kbn-optimizer/limits.yml # src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx
This PR contains the reusable, embeddable everywhere, index pattern field editor. Currently, it is integrated into the index pattern management app. In future releases, it will be integrated into Discover, Lens, and any other app
The editor allows the user to
Examples
The examples below assume that you have added the "indexPatternFieldEditor" plugin to the required plugins list (in kibana.json). You then get back its API through the start contract.
Create / edit a field
Delete one or multiple fields
To delete one or multiple runtime fields there is a render props component that you can use.
How to test
API
The complete API is documented in the README.md
Screenshots
Release note
There is a new field editor in the index pattern management app that lets you create (and edit) runtime fields, adding them to the index pattern field list.