-
Notifications
You must be signed in to change notification settings - Fork 4.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
Dump angular 11 #5745
Dump angular 11 #5745
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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/test-infra repository. I understand the commands that are listed here. |
Welcome @damingerdai! |
may i make some mistakes. |
Codecov Report
@@ Coverage Diff @@
## master #5745 +/- ##
==========================================
+ Coverage 44.37% 44.47% +0.09%
==========================================
Files 214 214
Lines 9117 9120 +3
Branches 112 110 -2
==========================================
+ Hits 4046 4056 +10
+ Misses 4796 4790 -6
+ Partials 275 274 -1 |
@@ -23,6 +23,7 @@ export class CoreFormatter extends DecimalPipe { | |||
readonly base = 1000; | |||
readonly powerSuffixes = ['m', '', 'k', 'M', 'G', 'T']; | |||
|
|||
// @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.
Can you explain this?
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.
it looks like a typescript compiler error
Error: src/app/frontend/common/pipes/coreformatter.ts:26:3 - error TS2416: Property 'transform' in type 'CoreFormatter' is not assignable to the same property in base type 'DecimalPipe'.
Type '(value: number) => string' is not assignable to type '{ (value: string | number, digitsInfo?: string, locale?: string): string; (value: null, digitsInfo?: string, locale?: string): null; (value: string | number, digitsInfo?: string, locale?: string): string; }'.
Type 'string' is not assignable to type 'null'.
26 transform(value: number): string {
~~~~~~~~~
src/app/frontend/common/pipes/memoryformatter.ts:26:3 - error TS2416: Property 'transform' in type 'MemoryFormatter' is not assignable to the same property in base type 'DecimalPipe'.
Type '(value: number) => string' is not assignable to type '{ (value: string | number, digitsInfo?: string, locale?: string): string; (value: null, digitsInfo?: string, locale?: string): null; (value: string | number, digitsInfo?: string, locale?: string): string; }'.
Type 'string' is not assignable to type 'null'.
26 transform(value: number): string {
~~~~~~~~~
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.
with @ts-ignore
, the tsc command will ignore this error
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.
It has to be fixed then, not ignored
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.
must we fix it in this pr?
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.
100%, I prefer to keep Angular 10 without any hidden issues than go to the 11 but with workarounds and ignored errors.
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.
Have you tested if the pipes works with the introduced annotations and there are no errors in the console?
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 finally understand why it happened by this angular issue
these are some breaking changes in angular about pipes.
So if we want to upgrade angular 11, we have to fix these error.
040ce8f
to
2628912
Compare
I signed it |
I signed it |
I signed it. |
i have finished cla!!! |
@maciaszczykm please review again |
Testing it. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damingerdai, maciaszczykm 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 |
No description provided.