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(core): incorrectly validating properties on ng-content and ng-container #37773

Closed

Conversation

crisbeto
Copy link
Member

Fixes the following issues related to how we validate properties during JIT:

  • The invalid property warning was printing null as the node name for ng-content. The problem is that when generating a template from ng-content we weren't capturing the node name.
  • We weren't running property validation on ng-container at all. This used to be supported on ViewEngine and seems like an oversight.

In the process of making these changes, I found and cleaned up a few places where we were passing in LView unnecessarily.

@crisbeto crisbeto added area: core Issues related to the framework runtime 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 Jun 26, 2020
@ngbot ngbot bot added this to the needsTriage milestone Jun 26, 2020
@crisbeto crisbeto marked this pull request as ready for review June 26, 2020 15:53
@pullapprove pullapprove bot requested a review from alxhub June 26, 2020 15:53
@alxhub
Copy link
Member

alxhub commented Jul 7, 2020

Presubmit

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker action: presubmit The PR is in need of a google3 presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 9, 2020
@ngbot
Copy link

ngbot bot commented Jul 9, 2020

I see that you just added the PR action: merge label, but the following checks are still failing:
    failure status "google3" is failing

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@AndrewKushnir
Copy link
Contributor

FYI, I've started a new presubmit (the previous one had some flakes).

@crisbeto could you please also rebase this PR (to re-run CI with the most recent version of changes in master branch)?

@crisbeto
Copy link
Member Author

Rebased.

@crisbeto crisbeto force-pushed the FW-2268/invalid-property-detection branch from d453a34 to 2c9a517 Compare July 14, 2020 16:53
@AndrewKushnir
Copy link
Contributor

@crisbeto presubmit looks good, but the lint CI job started to fail after rebasing. Could you please update the commit message?

@AndrewKushnir AndrewKushnir added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: presubmit The PR is in need of a google3 presubmit labels Jul 14, 2020
…tainer

Fixes the following issues related to how we validate properties during JIT:
- The invalid property warning was printing `null` as the node name
for `ng-content`. The problem is that when generating a template from
 `ng-content` we weren't capturing the node name.
- We weren't running property validation on `ng-container` at all.
This used to be supported on ViewEngine and seems like an oversight.

In the process of making these changes, I found and cleaned up a
few places where we were passing in `LView` unnecessarily.
@crisbeto crisbeto force-pushed the FW-2268/invalid-property-detection branch from 2c9a517 to 74c6722 Compare July 15, 2020 05:03
@crisbeto crisbeto removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Jul 15, 2020
@crisbeto
Copy link
Member Author

Fixed the lint issue.

AndrewKushnir pushed a commit that referenced this pull request Jul 15, 2020
…tainer (#37773)

Fixes the following issues related to how we validate properties during JIT:
- The invalid property warning was printing `null` as the node name
for `ng-content`. The problem is that when generating a template from
 `ng-content` we weren't capturing the node name.
- We weren't running property validation on `ng-container` at all.
This used to be supported on ViewEngine and seems like an oversight.

In the process of making these changes, I found and cleaned up a
few places where we were passing in `LView` unnecessarily.

PR Close #37773
@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 Aug 15, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
…tainer (angular#37773)

Fixes the following issues related to how we validate properties during JIT:
- The invalid property warning was printing `null` as the node name
for `ng-content`. The problem is that when generating a template from
 `ng-content` we weren't capturing the node name.
- We weren't running property validation on `ng-container` at all.
This used to be supported on ViewEngine and seems like an oversight.

In the process of making these changes, I found and cleaned up a
few places where we were passing in `LView` unnecessarily.

PR Close angular#37773
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 cla: yes 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

4 participants