-
Notifications
You must be signed in to change notification settings - Fork 915
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
Bumps @elastic/eui
to v34.6.0 and @elastic/charts
to v31.1.0
#1252
Bumps @elastic/eui
to v34.6.0 and @elastic/charts
to v31.1.0
#1252
Conversation
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.
Thanks for breaking up PRs. LGTM !!!
I am seeing test failures in the functional tests, for example: |
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.
Seeing FTR test failings but won't block since it is going to a feature branch.
Can we fix the functional tests now so that the issue isn't compounded when we fold in after this? |
f0ae306
to
f6de6c9
Compare
At this point, the only failures are unrelated to the changes made here. |
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.
I see that you're including commits not rebased to the feature/bump-eui-and-charts
branch yet. Can you rebase that branch first?
f6de6c9
to
74f6d5c
Compare
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.
Looks good! Just a few things I'm curious about.
@@ -24,6 +24,7 @@ | |||
// includes support for browser APIs | |||
"dom" | |||
], | |||
"skipLibCheck": true, |
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.
Why do we want to introduce this now?
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.
resize-observer-polyfill
, via eui.d.ts
, exported ResizeObserver
without exporting ResizeObserverCallback
. The polyfill also exported contentRect
which collided with typescript's built-in one.
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.
This impacts all declaration files though, right? Can we address this individually instead of skipping the type checking for everything? https://www.typescriptlang.org/tsconfig#skipLibCheck
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.
This is temporary, until I fold in.
- My original solution, for the folded-in version, uses
@juggle/resize-observer
but after this PR, I have changed my mind because it is a ponyfill. - I have identified
@rkesters/resize-observer-polyfill
and@4lolo/resize-observer-polyfill
as possible options. Since part of the conflict is caused by@types/resize-observer-browser
, I have to check if they work. - My worst case scenario involves writing my own type-def to be employed via
compilerOptions
. - I remember hearing about some possible effort to upgrade typescript; that would impact change the direction completely.
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.
Okay that makes sense. Just as long as we have a plan.
Yes, I upgraded TypeScript to 4.1 in #1230 but I haven't gotten around to resolving the conflicts/test failures yet.
src/plugins/discover/public/application/angular/doc_table/components/table_row/_open.scss
Show resolved
Hide resolved
src/plugins/discover/public/application/angular/doc_table/components/table_row/open.html
Show resolved
Hide resolved
|
||
/* | ||
Override for default size and style of EuiButtonIcon | ||
Todo: Address via size prop after folding EUI in |
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.
Commenting for future reference.
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.
Will be handled while folding in
src/plugins/discover/public/application/components/sidebar/discover_field_search.test.tsx
Show resolved
Hide resolved
src/plugins/saved_objects/public/save_modal/saved_object_save_modal.tsx
Outdated
Show resolved
Hide resolved
* Bumps the dependencies on @elastic/eui and @elastic/charts to their the last Apache-2.0-licensed releases. * Mitigates changes in `@elastic/eui` v29.3.2 → v34.6.0 * v30.0.0: Removal of `EuiButtonToggle` * v30.0.0: Renaming of `EuiButtonGroupOption` * v30.0.0: Requiring `legend` and `isSelected` (unless type='multi') props for `EuiButtonGroup` * v30.0.0: Removal of `EuiNavDrawerGroup` * v30.0.0: Removal of `compressed` prop from `EuiFormRow` * v30.0.0: Removal of `displayOnly` prop from `EuiFormRow` * v30.0.0: Elimination of the `withTitle` prop from `EuiPopover` * v30.2.0: Addition of indicator icon for external `EuiLink` * v30.3.0: Test failure due to the restructuring of focus in `EuiPopover` * v31.6.0: Addition of `uiOverlayMask` directly to `EuiModal` * v31.9.0: Setting default `size` of “xs” and styling on `EuiButtonIcon` (partial) * v33.0.0: Removal of `sh` from languages supported by `EuiCodeBlock` * v34.1.0: Changing of the default component of `EuiPageBody` from `main` to `div` * Mitigates changes in `@elastic/charts` v23.2.2 → v31.1.0 * v29.0.0: Renaming of `AnnotationDomainTypes` to `AnnotationDomainType` Signed-off-by: Miki <[email protected]>
74f6d5c
to
91f18af
Compare
resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.7.tgz#00780f60dbdae90181f51ed85fb24109422c932a" | ||
integrity sha512-HxWkieX+STA38EDk7CE9MEryFeHCKzgagxlGvsdS7WBImq9Mk+PGwiT56w82WI3aicwJA8REp42Cxo98c8FZMA== | ||
url-parse@^1.5.0: | ||
version "1.5.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.
Note for reference: this resolves #1266
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.
Looks great Miki, thanks so much for the effort.
* Bumps the dependencies on @elastic/eui and @elastic/charts to their last Apache-2.0-licensed releases. * Mitigates changes in `@elastic/eui` v29.3.2 → v34.6.0 * v30.0.0: Removal of `EuiButtonToggle` * v30.0.0: Renaming of `EuiButtonGroupOption` * v30.0.0: Requiring `legend` and `isSelected` (unless type='multi') props for `EuiButtonGroup` * v30.0.0: Removal of `EuiNavDrawerGroup` * v30.0.0: Removal of `compressed` prop from `EuiFormRow` * v30.0.0: Removal of `displayOnly` prop from `EuiFormRow` * v30.0.0: Elimination of the `withTitle` prop from `EuiPopover` * v30.2.0: Addition of indicator icon for external `EuiLink` * v30.3.0: Test failure due to the restructuring of focus in `EuiPopover` * v31.6.0: Addition of `uiOverlayMask` directly to `EuiModal` * v31.9.0: Setting default `size` of “xs” and styling on `EuiButtonIcon` (partial) * v33.0.0: Removal of `sh` from languages supported by `EuiCodeBlock` * v34.1.0: Changing of the default component of `EuiPageBody` from `main` to `div` * Mitigates changes in `@elastic/charts` v23.2.2 → v31.1.0 * v29.0.0: Renaming of `AnnotationDomainTypes` to `AnnotationDomainType` Signed-off-by: Miki <[email protected]>
Description
Bumps the dependencies on @elastic/eui and @elastic/charts to their the last Apache-2.0-licensed releases.
Mitigates changes in
@elastic/eui
v29.3.2 → v34.6.0EuiButtonToggle
EuiButtonGroupOption
legend
andisSelected
(unless type='multi') props forEuiButtonGroup
EuiNavDrawerGroup
compressed
prop fromEuiFormRow
displayOnly
prop fromEuiFormRow
withTitle
prop fromEuiPopover
EuiLink
EuiPopover
uiOverlayMask
directly toEuiModal
size
of “xs” and styling onEuiButtonIcon
(partial)sh
from languages supported byEuiCodeBlock
EuiPageBody
frommain
todiv
Mitigates changes in
@elastic/charts
v23.2.2 → v31.1.0AnnotationDomainTypes
toAnnotationDomainType
Signed-off-by: Miki [email protected]
Issues Resolved
#787
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr