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(forms): _reduceValue arrow function now has correct types. #44483

Closed
wants to merge 1 commit into from

Conversation

dylhunn
Copy link
Contributor

@dylhunn dylhunn commented Dec 15, 2021

I previously strengthened some weak types in #44370. One of these fixes exposed an incorrect call into _reduceChildren from _reduceValue. This was caught in google3 by a caller who was extending FormGroup and overriding these methods.

Special thanks to Bart G for catching this issue and suggesting a fix.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The type of the callback in _reduceValue is incorrect, causing warnings for some users in google3.

Issue Number: N/A

What is the new behavior?

The type of the callback is fixed.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@dylhunn dylhunn added area: forms target: patch This PR is targeted for the next patch release action: presubmit The PR is in need of a google3 presubmit labels Dec 15, 2021
@ngbot ngbot bot modified the milestone: Backlog Dec 15, 2021
@dylhunn
Copy link
Contributor Author

dylhunn commented Dec 15, 2021

@dylhunn dylhunn added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: presubmit The PR is in need of a google3 presubmit labels Dec 15, 2021
I previously strengthened some weak types in angular#44370. One of these fixes exposed an incorrect call into `_reduceChildren` from `_reduceValue`. This was caught in google3 by a caller who was extending `FormGroup` and overriding these methods.

Special thanks to Bart G for catching this issue and suggesting a fix.
@dylhunn
Copy link
Contributor Author

dylhunn commented Dec 15, 2021

Rerunning failures reveals these are flakes, as most of the targets go green: https://test.corp.google.com/OCL:416417012:BASE:416422956:1639528317533:31818db4

@dylhunn dylhunn removed the request for review from jessicajaniuk December 15, 2021 00:41
@dylhunn dylhunn added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 15, 2021
@alxhub
Copy link
Member

alxhub commented Dec 15, 2021

This PR was merged into the repository by commit 6a0dadf.

alxhub pushed a commit that referenced this pull request Dec 15, 2021
)

I previously strengthened some weak types in #44370. One of these fixes exposed an incorrect call into `_reduceChildren` from `_reduceValue`. This was caught in google3 by a caller who was extending `FormGroup` and overriding these methods.

Special thanks to Bart G for catching this issue and suggesting a fix.

PR Close #44483
@alxhub alxhub closed this in 6a0dadf Dec 15, 2021
dimakuba pushed a commit to dimakuba/angular that referenced this pull request Dec 28, 2021
…ular#44483)

I previously strengthened some weak types in angular#44370. One of these fixes exposed an incorrect call into `_reduceChildren` from `_reduceValue`. This was caught in google3 by a caller who was extending `FormGroup` and overriding these methods.

Special thanks to Bart G for catching this issue and suggesting a fix.

PR Close angular#44483
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 3, 2022
@dylhunn dylhunn deleted the typings-error-reduce branch April 12, 2022 17:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: forms target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants