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(ivy): ensure multi providers in ModuleWithProviders are not duplicated #34914

Closed
wants to merge 1 commit into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Jan 22, 2020

The current logic pulls multiproviders up to the parent module's provider list. This results in the multi provider being defined both in the imported ModuleWithProviders and the parent and getting an extra item in the multi provided array of values.

@AndrewKushnir AndrewKushnir self-assigned this Jan 22, 2020
@atscott atscott added comp: ivy area: testing Issues related to Angular testing features, such as TestBed target: patch This PR is targeted for the next patch release labels Jan 23, 2020
@ngbot ngbot bot modified the milestone: needsTriage Jan 23, 2020
@atscott
Copy link
Contributor Author

atscott commented Jan 23, 2020

Presubmit - looks good, only failing tests are e2e tests, which are not affected by this change and are probably flakes. Still need to run global presubmit

@atscott atscott marked this pull request as ready for review January 23, 2020 17:16
@atscott atscott requested review from a team as code owners January 23, 2020 17:16
@atscott atscott force-pushed the testbedmultiprovider branch 3 times, most recently from 45b0109 to 96c29ef Compare January 23, 2020 18:55
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@atscott
Copy link
Contributor Author

atscott commented Jan 29, 2020

global presubmit 1 regressed e2e test, unrelated to this change.

…cated

The current logic pulls multiproviders up to the parent module's
provider list. The result is that the multi provider being defined both in
the imported ModuleWithProviders and the parent and getting an extra
item in the multi provided array of values. This PR fixes that problem
by not pulling providers in ModuleWithProviders up to the parent module.
@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Jan 29, 2020
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

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

lgtm

AndrewKushnir pushed a commit that referenced this pull request Jan 29, 2020
…cated (#34914)

The current logic pulls multiproviders up to the parent module's
provider list. The result is that the multi provider being defined both in
the imported ModuleWithProviders and the parent and getting an extra
item in the multi provided array of values. This PR fixes that problem
by not pulling providers in ModuleWithProviders up to the parent module.

PR Close #34914
sonukapoor pushed a commit to sonukapoor/angular that referenced this pull request Feb 13, 2020
…cated (angular#34914)

The current logic pulls multiproviders up to the parent module's
provider list. The result is that the multi provider being defined both in
the imported ModuleWithProviders and the parent and getting an extra
item in the multi provided array of values. This PR fixes that problem
by not pulling providers in ModuleWithProviders up to the parent module.

PR Close angular#34914
@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 29, 2020
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: testing Issues related to Angular testing features, such as TestBed 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