Skip to content

Fix color and static lookup field formatters not loading#22044

Merged
jen-huang merged 1 commit intoelastic:masterfrom
jen-huang:fix/field-formats
Aug 16, 2018
Merged

Fix color and static lookup field formatters not loading#22044
jen-huang merged 1 commit intoelastic:masterfrom
jen-huang:fix/field-formats

Conversation

@jen-huang
Copy link
Copy Markdown
Contributor

@jen-huang jen-huang commented Aug 16, 2018

#20525 wrapped color and static_lookup field format editor components with injectI18n(). This created new components that don't have the formatId property, which is used to identify which editor to load. When the user selects Color or Static lookup in the field editor UI, no additional inputs are shown.

This PR resolves the issue by adding formatId to the i18n component. Also adds additional tests to all field format editors to ensure that formatId is present.

/cc @maryia-lapata

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Tested locally and works as expected. Code looks great. Thanks for explaining these changes to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants