Skip to content
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

Merged
merged 6 commits into from
Jan 7, 2021
Merged

Dump angular 11 #5745

merged 6 commits into from
Jan 7, 2021

Conversation

damingerdai
Copy link
Contributor

No description provided.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jan 5, 2021
@k8s-ci-robot
Copy link
Contributor

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jan 5, 2021
@k8s-ci-robot
Copy link
Contributor

Welcome @damingerdai!

It looks like this is your first PR to kubernetes/dashboard 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/dashboard has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 5, 2021
@damingerdai
Copy link
Contributor Author

may i make some mistakes.

@damingerdai damingerdai changed the title build(deps): dump angular 11 Dump angular 11 Jan 5, 2021
@codecov
Copy link

codecov bot commented Jan 5, 2021

Codecov Report

Merging #5745 (fd0065e) into master (5cf991c) will increase coverage by 0.09%.
The diff coverage is 77.77%.

@@            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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain this?

Copy link
Contributor Author

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 {
     ~~~~~~~~~

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Member

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?

Copy link
Contributor Author

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.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jan 5, 2021
@damingerdai
Copy link
Contributor Author

I signed it

@damingerdai
Copy link
Contributor Author

I signed it

@damingerdai
Copy link
Contributor Author

I signed it.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jan 5, 2021
@damingerdai
Copy link
Contributor Author

i have finished cla!!!

@damingerdai
Copy link
Contributor Author

@maciaszczykm please review again

@maciaszczykm
Copy link
Member

Testing it.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 7, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 7, 2021
@maciaszczykm
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 7, 2021
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 7, 2021
@k8s-ci-robot k8s-ci-robot merged commit cd12362 into kubernetes:master Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants