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

fix(module:steps):updateChildrenSteps bug #3194

Merged
merged 2 commits into from Apr 15, 2019
Merged

fix(module:steps):updateChildrenSteps bug #3194

merged 2 commits into from Apr 15, 2019

Conversation

giscafer
Copy link
Contributor

close #3193

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link

netlify bot commented Mar 30, 2019

Deploy preview for ng-zorro-master ready!

Built with commit 14847d3

https://deploy-preview-3194--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Mar 30, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@a77f6c9). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3194   +/-   ##
=========================================
  Coverage          ?   97.38%           
=========================================
  Files             ?      559           
  Lines             ?    11642           
  Branches          ?      836           
=========================================
  Hits              ?    11338           
  Misses            ?      193           
  Partials          ?      111
Impacted Files Coverage Δ
components/steps/nz-steps.component.ts 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a77f6c9...14847d3. Read the comment docs.

@wzhudev
Copy link
Member

wzhudev commented Apr 3, 2019

@giscafer Can you add a test for it?

Sorry for the misleading!

@wzhudev wzhudev closed this Apr 3, 2019
@wzhudev wzhudev reopened this Apr 3, 2019
@giscafer
Copy link
Contributor Author

giscafer commented Apr 4, 2019

An error occurred while I was executing the test @wendzhue

E:\ng-zorro-antd>npm run test

> ng-zorro-antd@0.0.0-NOT-USED test E:\ng-zorro-antd
> ng test --watch=false --code-coverage

 10% building 4/5 modules 1 active ...orro-antd\components sync /\.spec\.ts$/04 04 2019 14:27:07.523:INFO [karma]: Karma v3.0.0 server started at http://0.0.0.0:9876/
04 04 2019 14:27:07.531:INFO [launcher]: Launching browser Chrome with unlimited concurrency
04 04 2019 14:27:07.546:INFO [launcher]: Starting browser Chrome

ERROR in components/menu/nz-menu.service.ts(13,3): error TS2742: The inferred type of 'check$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.
components/menu/nz-submenu.component.ts(80,3): error TS2742: The inferred type of 'overlayPositions' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/@angular/cdk/overlay'. This is likely not portable. A type annotation is necessary.
components/menu/nz-submenu.service.ts(11,3): error TS2742: The inferred type of 'mode$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.
components/menu/nz-submenu.service.ts(28,3): error TS2742: The inferred type of 'menuOpen$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type
annotation is necessary.
components/select/nz-select.service.ts(45,3): error TS2742: The inferred type of 'open$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.
components/select/nz-select.service.ts(52,3): error TS2742: The inferred type of 'listOfSelectedValue$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.
components/select/nz-select.service.ts(53,3): error TS2742: The inferred type of 'modelChange$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.
components/select/nz-select.service.ts(68,3): error TS2742: The inferred type of 'searchValue$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.
components/select/nz-select.service.ts(96,3): error TS2742: The inferred type of 'valueOrOption$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.
components/select/nz-select.service.ts(114,3): error TS2742: The inferred type of 'check$' cannot be named without a reference to 'E:/1zitonFE/ng-zorro-antd/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.

environment

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 7.3.8
Node: 10.4.1
OS: win32 x64
Angular: 7.2.12
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.13.8
@angular-devkit/build-angular      0.13.8
@angular-devkit/build-ng-packagr   0.13.8
@angular-devkit/build-optimizer    0.13.8
@angular-devkit/build-webpack      0.13.8
@angular-devkit/core               7.2.4
@angular-devkit/schematics         7.2.4
@angular/cdk                       7.3.6
@angular/cli                       7.3.8
@angular/pwa                       0.12.4
@ngtools/json-schema               1.1.0
@ngtools/webpack                   7.3.8
@schematics/angular                7.2.4
@schematics/update                 0.13.8
ng-packagr                         4.7.1
rxjs                               6.3.3
typescript                         3.2.2
webpack                            4.29.0

@wzhudev
Copy link
Member

wzhudev commented Apr 4, 2019

@giscafer

Just downgrade your typescript to 3.1.6. It's a bug of typescript. For more details you can check this: #2798 (comment).

@giscafer
Copy link
Contributor Author

giscafer commented Apr 9, 2019

@wendzhue The test case has been modified. Is there any problem? The existing project needs to fix this bug.

Copy link
Member

@wzhudev wzhudev left a comment

Choose a reason for hiding this comment

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

LGTM

@wzhudev
Copy link
Member

wzhudev commented Apr 9, 2019

@giscafer Would be released in the next version.

@hsuanxyz hsuanxyz changed the title fix(module:steps): updateChildrenSteps bug fix(module:steps):updateChildrenSteps bug Apr 15, 2019
@hsuanxyz hsuanxyz merged commit 8198b23 into NG-ZORRO:master Apr 15, 2019
andrew-yangy pushed a commit to andrew-yangy/ng-zorro-antd that referenced this pull request Jun 20, 2019
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[nz-steps] Data assigned asynchronously cannot be rendered
3 participants