Skip to content

Conversation

@jhonasiv
Copy link
Contributor

No description provided.

@jhonasiv jhonasiv requested a review from doudou March 16, 2023 19:00
@doudou doudou force-pushed the transition-to-runkit branch from 75f8fa1 to 42d7f4c Compare April 4, 2025 16:17
@doudou doudou force-pushed the forward-explicitly-set-services branch from 72415fa to bbfbd92 Compare May 13, 2025 18:12
@doudou doudou self-assigned this May 13, 2025
@doudou doudou requested a review from wvmcastro May 13, 2025 18:44
jhonasiv and others added 2 commits May 16, 2025 17:12
The placeholder models (of which the most obvious instance is the profile tag)
were handled as normal component models by DependencyInjection. This led to
their selection to be reduced to component models as well, which fails if there
are ambiguities and one want to select a particular service, that is

   some_tag => component_m.my_srv

Rewrite the selection logic to use the placeholder-friendly API
(each_required_model and fullfills?)
@doudou doudou force-pushed the forward-explicitly-set-services branch from bbfbd92 to b214536 Compare May 16, 2025 20:12
@doudou
Copy link
Member

doudou commented Jun 1, 2025

Ping @wvmcastro

Comment on lines +233 to +234
task_m.provides srv_m, as: "srv1"
task_m.provides srv_m, as: "srv2"

Choose a reason for hiding this comment

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

how providing the same service twice is relevant for this test?

Copy link
Member

Choose a reason for hiding this comment

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

It makes sure that the system does not fall back on the implicit service selection code path (since that code path would fail). The caller must explicitly select a service.

@doudou doudou requested a review from wvmcastro June 8, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants