Skip to content

Before node for view - #33627

Closed
pkozlowski-opensource wants to merge 2 commits into
angular:masterfrom
pkozlowski-opensource:before_node_for_view
Closed

pkozlowski-opensource wants to merge 2 commits into
angular:masterfrom
pkozlowski-opensource:before_node_for_view

Conversation

@pkozlowski-opensource

Copy link
Copy Markdown
Member

This is the fix for FW-1559 split into 2 commits:

  • tests for (most) cases I could think of (I think that there are more, but couldn't easily reproduce in tests, need more time on those);
  • the actual fix - the fix makes the tests pass but results in some code / logic duplication.

This PR is split into 2 commits so we can decide to only take tests or test + fix.

I believe that we should merge it as-is and do the refactoring in the follow-up PR(s).

@pkozlowski-opensource pkozlowski-opensource added comp: ivy action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 6, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Nov 6, 2019
@pkozlowski-opensource pkozlowski-opensource added the target: major This PR is targeted for the next major release label Nov 6, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is one more use case. You can have an LContainer but the TNode type is a element. This is because any element can be upgraded into a container. I think we need a test case for that.

@pkozlowski-opensource pkozlowski-opensource Nov 6, 2019 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, I can add a test but since views inserted on a VCRef asked on an element are inserted after the element, it shouldn't matter for finding the first node of a view.

In fact I wanted to have a deeper look at the case of a directive asking for a ViwContainerRef on a <ng-container> in a follow-up PR as I'm not sure what will happen for a directive that asks for a ViewContainerRef on a <ng-container>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see, Thank you.

@pkozlowski-opensource
pkozlowski-opensource force-pushed the before_node_for_view branch 3 times, most recently from b05ce00 to 2784ff8 Compare November 6, 2019 16:00
@pkozlowski-opensource
pkozlowski-opensource marked this pull request as ready for review November 6, 2019 16:36
@pkozlowski-opensource
pkozlowski-opensource requested review from a team November 6, 2019 16:36
@AndrewKushnir AndrewKushnir added the action: presubmit The PR is in need of a google3 presubmit label Nov 6, 2019
@AndrewKushnir

AndrewKushnir commented Nov 6, 2019 •

Copy link
Copy Markdown
Contributor

Started g3 presubmits to see which targets might be fixed by this PR:

Will run a global TAP tonight as well.

Update: Global TAP Presubmit with Ivy.

// cc @atscott

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see, Thank you.

@mhevery mhevery added action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels Nov 6, 2019
@ngbot

ngbot Bot commented Nov 6, 2019

Copy link
Copy Markdown

I see that you just added the PR action: merge label, but the following checks are still failing:
    failure conflicts with base branch "master"
    pending forbidden labels detected: PR action: review
    pending status "google3" is pending

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.

@mhevery mhevery removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 6, 2019
@mhevery mhevery mentioned this pull request Nov 6, 2019
5 of 14 tasks
@AndrewKushnir

Copy link
Copy Markdown
Contributor

FYI, VE and Ivy Presubmits (including global one) are successful 👍

@pkozlowski-opensource could you plz rebase this PR and resolve a conflict, so this PR is ready to merge? Also quick question: should it be merged to master and patch (it's marked for master only atm)?

Thank you.

@pkozlowski-opensource

Copy link
Copy Markdown
Member Author

@AndrewKushnir rebased

Also quick question: should it be merged to master and patch (it's marked for master only atm)?

We should get it for both 9.x and 10.x so I guess master & patch?

@atscott atscott added target: patch This PR is targeted for the next patch release state: blocked and removed target: major This PR is targeted for the next major release labels Nov 7, 2019
@atscott

atscott commented Nov 7, 2019

Copy link
Copy Markdown
Contributor

@AndrewKushnir is investigating some weird things we're seeing in presubmits. This should still be good to merge - he'll remove the blocked label when the investigation is finished.

@AndrewKushnir

Copy link
Copy Markdown
Contributor

Just confirmed that the numbers are fine. The "blocked" label is removed. Thank you.

@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 Dec 9, 2019
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 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.

5 participants