Skip to content

Conversation

@alxhub
Copy link
Member

@alxhub alxhub commented Apr 21, 2022

There were two problems with the importProvidersFrom function related to
ModuleWithProviders values:

  • The public type did not accept ModuleWithProviders values directly.
  • The implementation of walkProviderTree delegates collection of MWP providers
    to its caller, in order for the ordering of such providers to be correct.
    However, importProvidersFrom was not performing that collection, causing MWP
    providers passed in at the top level to be dropped.

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.

@alxhub looks great, just a couple comments with additional use-cases to consider.

@pullapprove pullapprove bot requested a review from AndrewKushnir April 21, 2022 21:52
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: major This PR is targeted for the next major release labels Apr 22, 2022
@ngbot ngbot bot modified the milestone: Backlog Apr 22, 2022
@AndrewKushnir
Copy link
Contributor

AndrewKushnir commented Apr 22, 2022

@alxhub FYI I've addressed the comments and pushed a couple fixup commits. This PR is ready for review.

// cc @pkozlowski-opensource

Copy link
Contributor

@jessicajaniuk jessicajaniuk 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

Copy link
Contributor

@atscott atscott left a comment

Choose a reason for hiding this comment

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

reviewed-for: public-api

alxhub and others added 3 commits April 26, 2022 16:45
This commit moves the ModuleWithProviders type from `metadata` to `di`, avoiding
the need for `di` to reference `metadata` (in this particular case).
…idersFrom`

There were two problems with the `importProvidersFrom` function related to
`ModuleWithProviders` values:

* The public type did not accept `ModuleWithProviders` values directly.
* The implementation of `walkProviderTree` delegates collection of MWP providers
  to its caller, in order for the ordering of such providers to be correct.
  However, `importProvidersFrom` was not performing that collection, causing MWP
  providers passed in at the top level to be dropped.
@AndrewKushnir AndrewKushnir force-pushed the standalone-import-mwp branch from 6de6893 to 1ed66c6 Compare April 27, 2022 00:03
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.

Reviewed-for: public-api

(note: I've pushed a fixup commit, but it didn't affect the public API, so I can review/approve the public API change)

@AndrewKushnir AndrewKushnir removed the request for review from dylhunn April 27, 2022 00:24
@AndrewKushnir AndrewKushnir added action: global presubmit The PR is in need of a google3 global presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 27, 2022
@AndrewKushnir AndrewKushnir removed this from the Backlog milestone Apr 27, 2022
@AndrewKushnir AndrewKushnir added this to the v14-candidates milestone Apr 27, 2022
@AndrewKushnir AndrewKushnir added action: presubmit The PR is in need of a google3 presubmit and removed action: global presubmit The PR is in need of a google3 global presubmit labels Apr 27, 2022
@AndrewKushnir
Copy link
Contributor

Presubmit.

@AndrewKushnir AndrewKushnir 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 Apr 27, 2022
@atscott
Copy link
Contributor

atscott commented Apr 27, 2022

This PR was merged into the repository by commit 882f595.

@atscott atscott closed this in 3896f57 Apr 27, 2022
atscott pushed a commit that referenced this pull request Apr 27, 2022
…idersFrom` (#45722)

There were two problems with the `importProvidersFrom` function related to
`ModuleWithProviders` values:

* The public type did not accept `ModuleWithProviders` values directly.
* The implementation of `walkProviderTree` delegates collection of MWP providers
  to its caller, in order for the ordering of such providers to be correct.
  However, `importProvidersFrom` was not performing that collection, causing MWP
  providers passed in at the top level to be dropped.

PR Close #45722
@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 May 28, 2022
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 target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants