Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@riccardopaltrinieri
Copy link

To be able to select specific dependencies in the entry point of the application without having to find and change all the Autowired annotations, this PR:

  • Allows passing the groups argument to load_injection_container
  • Updates the filter_by_group to check the container groups as well

I think this feature might come in handy when developing, running or deploying with different environments, for example using the groups "dev"/"mock" for some providers, "SQL"/"MongoDB" for databases, etc..

Unfortunately I wasn't able to run make docs, and I'm not sure what is needed on that aspect

- Introduced `groups` parameter to `load_injection_container`
- Implemented `filter_by_group` to handle group-exclusion logic during injection.
@sonarqubecloud
Copy link

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.

1 participant