Skip to content

[Feature]: Introduce FactorySettings #894

@chaen

Description

@chaen

User Story

Currently, there are a lot of:

  • hardcoded environment variables (DIRACX_CONFIG_BACKEND_URL, DIRACX_LEGACY_EXCHANGE_HASHED_API_KEY)
  • Dynamically generated variables based on entrypoints ( DIRACX_DB_URL_*, DIRACX_SERVICE_*_ENABLED`)

It's messy, and easy to introduce bug

Feature Description

Introduce a FactorySettings class that would:

  • group together all these hardocded variable
  • explore the entrypoints to generate the DB/ENABLED

Definition of Done

No response

Alternatives Considered

No response

Related Issues

No response

Additional Context

No response

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions