-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 v27.2.0 #72993
Upgrade EUI to v27.2.0 #72993
Conversation
@@ -34,7 +34,7 @@ export default function ({ getService, getPageObjects }) { | |||
|
|||
it('should fetch new options when string field is filtered', async () => { | |||
const initialOptions = await comboBox.getOptionsList('listControlSelect0'); | |||
expect(initialOptions.trim().split('\n').join()).to.equal('BD,BR,CN,ID,IN,JP,NG,PK,RU,US'); | |||
expect(initialOptions.trim().split('\n').join()).to.equal('BD,BR,CN,ID,IN,JP,NG,PK,RU'); |
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.
Changed underlying list virtualization library. Some EuiComboBox and EuiFilter* lists will technically render one fewer item, although no real change occurs because the item was not visible initially without scrolling.
@@ -67,7 +67,7 @@ export default function ({ getService, getPageObjects }) { | |||
|
|||
it('uses default index pattern on an empty dashboard', async () => { | |||
await testSubjects.click('addFilter'); | |||
await dashboardExpect.fieldSuggestions(['bytes']); | |||
await dashboardExpect.fieldSuggestions(['agent']); |
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.
Changed underlying list virtualization library. Some EuiComboBox and EuiFilter* lists will technically render one fewer item, although no real change occurs because the item was not visible initially without scrolling.
windowProps: { | ||
onScroll: ({ scrollOffset }) => | ||
handleOnScroll( | ||
timelines.filter((t) => !hideUntitled || t.title !== '').length, | ||
timelineCount, | ||
scrollOffset | ||
), | ||
outerRef: selectableListOuterRef, | ||
innerRef: selectableListInnerRef, | ||
}, |
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.
The underlying virtualization library changed and the onScroll
API along with it. All the pieces were still available to perform handleOnScroll
as expected, but it required a "roll your own" approach.
💔 Build Failed
Failed CI Steps
Test FailuresKibana Pipeline / kibana-oss-agent / Firefox UI Functional Tests.test/functional/apps/visualize/input_control_vis/chained_controls·js.visualize app input controls chained controls "before all" hook for "should disable child control when parent control is not set"Standard Out
Stack Trace
Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/snapshot_restore/__jest__/client_integration. on component mount form validation snapshot settings (step 2) should correctly indicate data streams with a badgeStandard Out
Stack Trace
Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/uptime/public/components/overview/filter_group/__tests__.FilterPopover component expands on button clickStandard Out
Stack Trace
and 2 more failures, only showing the first 3. Build metricsasync chunks size
History
To update your PR or re-run it, just comment with: |
Closing this run at an upgrade. We discovered some dependencies that should be moved to devDependencies and have a fixed release upcoming. Will open a fresh PR with the new release version. |
Summary
v26.3.1
⏩v27.2.0
27.2.0
analyzeEvent
glyph inEuiIcon
(#3729)EuiComboBox
to allow the options list to open for single selection custom options (#3706)useEuiI18n
hook for localization (#3749)Bug fixes
EuiComboBox
always showing a scrollbar (#3744)react-focus-lock
withreact-focus-on
(#3631)EuiSuperDatePicker
related to invalid andnull
date formatting (#3750)findTestSubject
andtakeMountedSnapshot
(#3763)EuiComboBox
not allowing clicks on previously virtualized items when inside ofEuiFormRow
(#3784)[Space]
as a way to select options inEuiSelectable
(#3784)windowProps
inEuiSelectable
(#3787)27.1.0
titleElement
anddescriptionElement
props toEuiStat
(#3693)securityAnalyticsApp
app icon (#3720)src/test
and@types/enzyme
references fromeui.d.ts
(#3715)index.d.ts
file tolib/test
andes/test
(#3715)descriptionFlexItemProps
andfieldFlexItemProps
props toEuiDescribedFormGroup
(#3717)EuiBasicTable
's default action's name configuration to accept a function that returns a React node (#3739)27.0.0
paddingSize
prop toEuiCard
(#3638)isClearable
andplaceholder
options toEuiColorPicker
(#3689)label
,labelProps
andvalueText
props toEuiProgress
(#3661)Bug fixes
EuiResizableContainer
preventing nested containers (#3699)EuiResizableContainer
preventing resizing by arrow keys in some cases (#3699)EuiHorizontalSteps
rendering overEuiHeader
(#3707)EuiSuperSelect
lost focus after a value selection (#3734)Breaking changes
EuiSelectable
(#3169)react-virtualized
replaced withreact-window
virtualizedProps
onEuiSelectableOptionsList
renamed towindowProps
rootId
and addedmakeOptionId
,listId
, andsetActiveOptionIndex
toEuiSelectableList
listId
toEuiSelectableSearch
options
passed intoEuiSelectable
cannot have anid
onChange
to be passed intoEuiSelectableSearch