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

[7.x] [Mappings Editor] Support unknown types (#62149) #62491

Merged
merged 1 commit into from Apr 3, 2020

Conversation

jloleysens
Copy link
Contributor

Backports the following commits to 7.x:

* First iteration of supporting unknown types e2e

* Add missing files

* Fix types issues

* When creating a new field, we check if we actually know the type

If we do know the type, convert the new field to it and throw away
the customTypeJson.

* Fix i18n

* Updated naming to be more consistent

customType -> otherType

* Clean up of custom type in comments and validation feedback

* Codre review suggestions

* Add missing serializer

* Add Array validator to json

* Fix types issues

Do not use otherTypeName in call to getConfig rather wrap it
in it's own component also add some comments.

* Remove otherTypeJson from parameters

* Move fieldConfig to variable outside of the UseField

* Copy update

Change the instruction from "Manually specify" to something more
declarative. Also, manually may sound misleading (suggests there
is an automatic alternative).

Also change the JSON parameter label to something more accurate.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sébastien Loix <sabee77@gmail.com>
# Conflicts:
#	x-pack/plugins/index_management/public/application/components/mappings_editor/components/document_fields/fields/fields_list_item.tsx
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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

@jloleysens jloleysens merged commit 764ef93 into elastic:7.x Apr 3, 2020
@jloleysens jloleysens deleted the backport/7.x/pr-62149 branch April 3, 2020 21:48
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.

None yet

2 participants