Skip to content

[7.x] Migrate dual validated range (#59689)#60312

Merged
kindsun merged 1 commit intoelastic:7.xfrom
kindsun:backport/7.x/pr-59689
Mar 16, 2020
Merged

[7.x] Migrate dual validated range (#59689)#60312
kindsun merged 1 commit intoelastic:7.xfrom
kindsun:backport/7.x/pr-59689

Conversation

@kindsun
Copy link
Copy Markdown
Contributor

@kindsun kindsun commented Mar 16, 2020

Backports the following commits to 7.x:

* Move validated range files to new NP location

* Update refs in code

* Clean up old validated range files

* Change relative paths to 'kibana-react'. Some clean up

* Change to relative paths

* Fix i18n errors

* i18n clean up. Export module explicitly

* Change files over to TS to prevent build issue where validated range was missing

* Clean up TS conversion

* More clean up. Extend EuiRangeProps

* Remove unneeded ts-ignore

* Review feedback and test fixes

* Change double to single quotes

* min and max aren't always passed, make optional

* Type updates

* Review feedback. Set state to empty on init and add ignore comment

* Review feedback

* Add back in last 2 ts-ignores. Build fails without focusable attribute on EuiDualRange & No good alternatives for spread syntax in TS components

* Rollback change to state init. Initializing state to null actually triggers a react browser warning and complicates using 'prevState' in getDerivedStateFromProps

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kindsun kindsun added the backport This PR is a backport of another PR label Mar 16, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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

@kindsun kindsun merged commit a3a2acb into elastic:7.x Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants