-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Upgrade EUI to v17.3.1 #53655
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
Upgrade EUI to v17.3.1 #53655
Conversation
|
@elasticmachine merge upstream |
legrego
left a comment
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.
Security/Spaces changes LGTM. Tested locally.
| // @ts-ignore | ||
| EuiHighlight, | ||
| } from '@elastic/eui'; | ||
| import { EuiComboBox, EuiComboBoxOptionProps, EuiHealth, EuiHighlight } from '@elastic/eui'; |
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.
🎉
myasonik
left a comment
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.
Approving because this is still better than what it used to be but I am still worried we're potentially masking some bugs and pretending they're data...
| data-test-subj="lensDateHistogramValue" | ||
| value={interval.value} | ||
| value={ | ||
| typeof interval.value === 'number' || interval.value === '' |
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.
Not super problematic but seems odd that EUI accepts a number or an empty string... (Am I reading that right?)
I'd expect a type signature more like number | undefined maybe?
Also, does this need a NaN check?
| value={ | ||
| typeof interval.value === 'number' || interval.value === '' | ||
| ? interval.value | ||
| : parseInt(interval.value, 10) |
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.
Maybe not for an EUI update PR but is this really a good spot to do this?
If a non-number has gotten to this point, would it be better to throw an error rather the furthering the rabbit hole of chasing down bad data? Basically, this could lead to subtle bugs that cause people to make mistakes assuming the data is correct.
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.
So the options here are to cast value as EuiFieldNumberProps['value'] or attempt to resolve any errors (like so).
Earlier in the script, parseInterval has already transformed interval.value into number | '' like we want. Elsewhere in this file, though, interval.value is expected to be a string.
| <EuiFlexItem> | ||
| <EuiFieldNumber | ||
| value={scheduledTimeValue} | ||
| value={ |
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.
Same discussion questions as above for all of these
Agreed, @myasonik. This maintains parity, but does highlight some places where data types should be evaluated |
streamich
left a comment
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.
App Arch code changes LGTM.
|
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* eui to 17.3.0 * eui to 17.3.1 * TS updates * snapshot updates * update data-test-subj Co-authored-by: Elastic Machine <[email protected]>
* eui to 17.3.0 * eui to 17.3.1 * TS updates * snapshot updates * update data-test-subj Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
…le-saved-objects * 'master' of github.com:elastic/kibana: (250 commits) Allow chromeless applications to render via non-/app routes (elastic#51527) Add server rendering service to enable standalone route rendering (elastic#52161) Possibility to filter when testing scripted fields (elastic#35379) (elastic#44220) Update maps telemetry mappings to account for recent updates (elastic#53803) [Maps] Only show legend when layer is visible (elastic#53781) remove use of experimental fs.promises api (elastic#53346) [APM] Add log statements for flaky test (elastic#53775) [APM] Transaction page throws unhandled exception if transactions doesn't have `http.request` (elastic#53760) Licensing plugin functional tests (elastic#53580) [Lens] Disable saving visualization until there are no changes to the document (elastic#52982) [Monitoring] Added safeguard for some EUI components (elastic#53318) [Vega] Shim new platform - cleanup vega_visualization dependencies (elastic#53605) Display changed field formats without requiring hard page refresh. (elastic#53746) Upgrade EUI to v17.3.1 (elastic#53655) [APM] Fix missing apm indicies (elastic#53541) Disable inspector for timelion (elastic#53747) Clean up search servie (elastic#53701) [Dashboard] Grid: removing double handler (elastic#53707) Remove SavedObjectRegistryProvider from codebase (elastic#53455) Move ui/courier into data shim plugin (elastic#52359) ...
* eui to 17.3.0 * eui to 17.3.1 * TS updates * snapshot updates * update data-test-subj Co-authored-by: Elastic Machine <[email protected]>
Summary
[email protected]⏩[email protected]17.3.1Bug fixes
EuiTextAreaandEuiFieldNumber(#2703)17.3.0EuiFieldNumberto Typescript (#2685)EuiFieldPasswordto Typescript (#2683)EuiHighlightto Typescript (#2681)data-test-subjproperty to theEuiCodeEditorcomponent (#2689)EuiTextAreato Typescript (#2695)EuiPageand related child components to TypeScript (#2669)annotationglyph (#2691)initialWidthandisResizableconfigurations toEuiDataGrid's columns (#2696)Bug fixes
toggleOpenmethod fromEuiNavDrawer(#2682)EuiDataGridupdate performance (#2676)EuiDatagridheader top border when configured to have no toolbar (#2619)17.2.1[...]
Bug fixes
*.test.tsx?files from eui.d.ts (#2673)17.2.0EuiNavDrawerlock button state viaaria-pressed(#2643)EuiDataGrid(#2640)Bug fixes
EuiDataGridupdate performance (#2638)EuiDroppablenot accepting multiple children when using TypeScript (#2634)EuiComboBoxfrom submitting parentformelement when selecting options viaEnterkey (#2642)EuiNavDrawerexpand button from losing focus after click (#2643)EuiPopoveridattributes (#2667)