Conversation
a17deae to
db5a608
Compare
weltenwort
left a comment
There was a problem hiding this comment.
Awesome, almost there. There are just a few uses of React.PropTypes remaining in ui_framework/src/components, which produces deprecation warnings.
|
@weltenwort Good catch. I only ran the codemod on the src folder, so missed the ui-framework files. |
|
@sqren Can you add |
|
Scratch that, I see it now. I must have typo'd my grep. |
|
I'm still seeing 3 warnings about PropTypes usage in the jest tests: Edit: |
@epixa Yes, I'm not sure where those are coming from - I'm fairly certain it's not from the Kibana. Could be a dependency that we have to bump. |
|
I couldn't find the source either, so I think a third-party dependency is the probable cause too. |
weltenwort
left a comment
There was a problem hiding this comment.
I would be fine with tackling those warnings in a separate PR.
|
I think these warning are coming from the |
|
Oh wait, we upgraded |
cjcenizal
left a comment
There was a problem hiding this comment.
LGTM! I think I've narrowed down the source of these warnings to be our react-color dependency, which we use in the KuiColorPicker component here: https://github.com/elastic/kibana/blob/master/ui_framework/src/components/color_picker/color_picker.js#L4.
Removing this line and updating this component to not depend upon it makes all of the warnings go away. Which is weird because I don't see the relationship between this component and the modals.
Bumping react-color to 2.11.7 should fix this: casesandberg/react-color#346.
|
wow, thanks for taking the time to dig into this, @cjcenizal |
01fd862 to
2864a6d
Compare
|
@cjcenizal Great finding, thanks! I've bumped |
|
jenkins test this |
|
awesome, thanks again! |
React was recently upgraded to 15.6.1 for x-pack and this PR ensures the version in Kibana matches.
Closes #13610
Breaking changes between 15.4.2 and 15.6.1:
Changes made:
2.9.1(to fix deprecation warnings when running Jest)react-test-renderer(needed for Enzyme)reactandreact-domto 15.6.1react-colorto 2.11.7Plugins affected:
Further reading: