429fe214e6
As previously implemented, OrganizationConfig was a global object. This refactor adds the organization id to context for every request, even when auth is disabled, so that org id can be used to get/update an organization config. Along those lines, this also removes OrganizationConfigStore .Initialize and replaces .Get with .FindOrCreate, handling the creation of organization configs upon first attempted access. Co-authored-by: Jared Scheib <jared.scheib@gmail.com> |
||
---|---|---|
.. | ||
dashboards.go | ||
dashboards_test.go | ||
org_config.go | ||
organizations.go | ||
organizations_test.go | ||
servers.go | ||
servers_test.go | ||
sources.go | ||
sources_test.go | ||
users.go | ||
users_test.go |