Skip to content

WIP: Feature/reafctor config

Stanisław Cabała requested to merge feature/reafctor-config into develop

Hi all, as I wrote on Slack, I want to improve TangoGQL configuration mechanism. This is work in progress, as I would like to gather feedback about changes. Things done so far:

  • add separate module with configuration loading
  • search for config files in predefined locations in predefined order
  • validate content of YAML config file using JSON schema
  • expand environment variables inside loaded config file
  • throw exception when configuration is not valid of file not found
  • add possibility to quickly launch configuration loader, mainly for testing purposes

So, what do you think about it? There few things that can be changed so please share your ideas

Hope this will be received well

Merge request reports