-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
chore(deps): bump typescript to 4.8.4 #24272
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.
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 the bump! A few small comments, but looks good in general 👍
superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
Outdated
Show resolved
Hide resolved
@@ -24,16 +24,16 @@ export default function extent<T = number | string | Date | undefined | null>( | |||
// eslint-disable-next-line no-restricted-syntax | |||
for (const value of values) { | |||
if (value !== null) { | |||
if (min === undefined) { | |||
if (min === undefined || min === null) { |
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 we could use _.isNil
here?
let _ = require('lodash');
> _.isNil(undefined)
true
> _.isNil(null)
true
> _.isNil(0)
false
> _.isNil('')
false
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.
Done in cbcc0ee
if (min > value) { | ||
min = value; | ||
} | ||
if (max !== undefined) { | ||
if (max !== undefined && max !== null) { |
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
if (max !== undefined && max !== null) { | |
if (!isNil(max)) { |
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.
Done in cbcc0ee
@@ -158,6 +158,7 @@ class WordCloud extends React.PureComponent< | |||
update() { | |||
const { data, encoding } = this.props; | |||
|
|||
// @ts-ignore |
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 a huge deal, but I'd be curious to understand what the error was here, do you have it handy?
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.
Sure, it's
Argument of type 'Partial<DeriveEncoding<WordCloudEncodingConfig>>' is not assignable to parameter of type 'never'
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.
Oh, I just noticed it's still a class component. Let's revisit this some day when it's migrated to a functional component.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #24272 +/- ##
==========================================
- Coverage 67.22% 67.22% -0.01%
==========================================
Files 1895 1895
Lines 74211 74212 +1
Branches 8245 8246 +1
==========================================
Hits 49891 49891
- Misses 22248 22249 +1
Partials 2072 2072
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cbcc0ee
to
71e2886
Compare
Hey @jansule! Can you merge master to your branch? |
@EugeneTorap Sorry for the late reply. I will try to find time this week to rebase against current master. |
71e2886
to
cf1d55a
Compare
@EugeneTorap just rebased against current master. Locally, the build succeeded. |
Hey @michael-s-molina! Can you review this PR? |
@jansule sorry for missing this PR - would you be able to rebase this so we can get it merged? |
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.
LGTM, unless the rebase turns up some new issues
cf1d55a
to
e6fa6b9
Compare
@villebro I just rebased against current master. Locally the build is passing ( |
Running CI 🤞 |
I'm not sure how to interpret the failing check https://github.com/apache/superset/actions/runs/7088616773/job/19419142631?pr=24272:
I would be grateful, if somebody could give me hints here. |
Co-authored-by: Ville Brofeldt <[email protected]>
e6fa6b9
to
39706d4
Compare
Co-authored-by: Ville Brofeldt <[email protected]>
Co-authored-by: Ville Brofeldt <[email protected]>
Co-authored-by: Ville Brofeldt <[email protected]>
SUMMARY
This bumps
typescript
from4.5.4
to4.8.4
.@typescript-eslint/eslint-plugin
and@typescript-eslint/parser
were upgraded to5.42.1
to match the typescript version.New TSERRORs were fixed where possible. Unfortunately, I had to add a few
@ts-ignore
s here and there. Maybe someone with a deeper understanding of the code base is able to fix these errors properly.I decided to bump to typescript 4.8.4 as work related to #21758 introduced an upgrade to this version anyways. In consultation with @villebro we decided to create a dedicated PR for this.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
Simply run the tests and build the application to see if any TSERRORs occur.
ADDITIONAL INFORMATION