-
Notifications
You must be signed in to change notification settings - Fork 618
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
OCPBUGS-30973: Update @types/react-redux #14680
base: master
Are you sure you want to change the base?
Conversation
TheRealJon
commented
Jan 14, 2025
•
edited
Loading
edited
- Update react-redux to latest v7 release, which includes @types/react
- Remove dev dependency on @types/react-redux
- Remove all @ts-ignore comments
- Fix ts errors that were being hidden by @ts-ignore comments
@TheRealJon: This pull request references Jira Issue OCPBUGS-30973, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Replaces #14660 |
@@ -42,54 +34,4 @@ export const usePrometheusQuery: UsePrometheusQuery = (query, humanize) => { | |||
return results; | |||
}; | |||
|
|||
const customSelectorCreator = createSelectorCreator(defaultMemoize, shallowEqual); |
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 was all dead code. Removed instead of fixing type definitions.
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.
Fantastic work 👍
/lgtm
const userName = _.replace(user?.metadata?.name ?? '', /[^a-zA-Z0-9-]/g, ''); | ||
const userName = _.replace(user?.username ?? '', /[^a-zA-Z0-9-]/g, ''); |
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 nice, found and fixed a bug here?
@@ -65,7 +63,7 @@ export const useK8sWatchResources: UseK8sWatchResources = (initResources) => { | |||
k8sModelsRef.current = allK8sModels.filter( | |||
(model) => | |||
requiredModels.includes(getReferenceForModel(model)) || requiredModels.includes(model.kind), | |||
); | |||
) as ImmutableMap<string, K8sModel>; |
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.
Would be good to understand why as
is needed here. It's not obvious to me looking at the code.
But I definitely don't want to hold the PR on this.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: spadgett, TheRealJon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Update @types/react-redux to be in sync with react-redux version Remove all @ts-ignore comments Fix ts errors that were being hidden by @ts-ignore comments
79e9204
to
69b60bd
Compare
New changes are detected. LGTM label has been removed. |
type WithPluralProps = { | ||
kindObj?: K8sKind; | ||
modelRef?: K8sResourceKindReference; | ||
kindsInFlight?: boolean; | ||
}; | ||
|
||
export type ConnectToPlural = <P extends WithPluralProps>( | ||
C: React.ComponentType<P>, | ||
) => React.ComponentType<Omit<P, keyof WithPluralProps>> & { | ||
WrappedComponent: React.ComponentType<P>; | ||
}; | ||
|
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.
Removed these types because they are incorrect, overly complex, and deprecated. Fixing the ts errors they cause are not worthwhile.
/retest |
@TheRealJon: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |