Skip to content

feat(core): pass signal node to throwInvalidWriteToSignalErrorFn#59600

Closed
mturco wants to merge 1 commit intoangular:mainfrom
mturco:pass-node-to-write-errors
Closed

feat(core): pass signal node to throwInvalidWriteToSignalErrorFn#59600
mturco wants to merge 1 commit intoangular:mainfrom
mturco:pass-node-to-write-errors

Conversation

@mturco
Copy link
Copy Markdown
Contributor

@mturco mturco commented Jan 17, 2025

Updates the signature of the throwInvalidWriteToSignalError to take the signal node in question and pass it along to the throwInvalidWriteToSignalErrorFn handler function. This allows the handler to e.g. include the signal name in error messaging.

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.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

throwInvalidWriteToSignalError calls throwInvalidWriteToSignalErrorFn with no arguments.

Issue Number: N/A

What is the new behavior?

throwInvalidWriteToSignalError calls throwInvalidWriteToSignalErrorFn with the signal node as an argument.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@mturco mturco requested a review from alxhub January 17, 2025 17:05
@pullapprove pullapprove bot added the requires: TGP This PR requires a passing TGP before merging is allowed label Jan 17, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: core Issues related to the framework runtime labels Jan 17, 2025
@ngbot ngbot bot added this to the Backlog milestone Jan 17, 2025
Updates the signature of the `throwInvalidWriteToSignalError` to take the signal node in question and pass it along to the throwInvalidWriteToSignalErrorFn handler function. This allows the handler to e.g. include the signal name in error messaging.
@mturco mturco force-pushed the pass-node-to-write-errors branch from 461d2b8 to 4a4d2a1 Compare January 17, 2025 17:57
@AndrewKushnir AndrewKushnir removed their request for review January 17, 2025 18:18
@pullapprove pullapprove bot requested a review from thePunderWoman January 17, 2025 18:18
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

This looks useful!

reviewed-for: public-api, primitives

@pullapprove pullapprove bot requested a review from kirjs January 17, 2025 19:31
@thePunderWoman thePunderWoman added target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 17, 2025
@pullapprove pullapprove bot requested a review from kirjs January 22, 2025 18:29
@pullapprove pullapprove bot requested a review from kirjs January 22, 2025 19:30
@kirjs
Copy link
Copy Markdown
Contributor

kirjs commented Jan 23, 2025

reviewed-for: public-api, primitives

Copy link
Copy Markdown
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: public-api
Reviewed-for: fw-primitives

@pkozlowski-opensource pkozlowski-opensource added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release and removed action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Feb 12, 2025
@thePunderWoman
Copy link
Copy Markdown
Contributor

@mturco Looks like there's a few consistently failing targets. Unclear if they are related though. Can you take a look?

@thePunderWoman thePunderWoman removed the action: merge The PR is ready for merge by the caretaker label Feb 13, 2025
@thePunderWoman thePunderWoman added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Feb 13, 2025
@mturco
Copy link
Copy Markdown
Contributor Author

mturco commented Feb 13, 2025

@thePunderWoman synced and reran the TGP and it's green now!

@thePunderWoman thePunderWoman added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Feb 13, 2025
@thePunderWoman
Copy link
Copy Markdown
Contributor

TESTED=TGP

@thePunderWoman thePunderWoman added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Feb 13, 2025
@thePunderWoman
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 2588985.

The changes were merged into the following branches: main

@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Mar 16, 2025
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: core Issues related to the framework runtime detected: feature PR contains a feature commit merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note requires: TGP This PR requires a passing TGP before merging is allowed target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants