Alirie Gray
35efb2d274
Add log viewer link to organization config response
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 16:05:11 -07:00
Alirie Gray
0f810debcb
Rename org config method Update to Put for semantic accuracy
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 15:42:44 -07:00
Alirie Gray
874110bd5e
Rename org config receivers and function params to be more conventional
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 15:32:23 -07:00
Alirie Gray
a309c3f026
Remove unecessary nil guard and group response creation code in org config
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 15:26:30 -07:00
Alirie Gray
0988388e24
Add comment for validLogViewerConfig function
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 15:09:06 -07:00
Alirie Gray
6e72596275
Add comment to explain use of FindOrCreate in OrganizationLogViewerConfig service method
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 12:06:11 -07:00
Alirie Gray
805faa12d0
Rename LogViewerOrganizationConfig to OrganizationLogViewerConfig
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 12:05:29 -07:00
Alirie Gray
0a8dac4a07
Remove overly defensive nil org config guard on GET
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 11:52:30 -07:00
Jared Scheib
8ce7588d41
Add tests for validLogViewerConfig & remove obsolete comments
2018-07-09 17:37:30 -07:00
Jared Scheib
f21b347f4b
Fix new log viewer config response underlying struct
...
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib
ae475c7ae8
Add OrganizationConfigStore & refactor org config to be per org
...
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>
2018-07-09 17:36:19 -07:00
Jared Scheib
ecb5347597
WIP Refactor log viewer config to be nested under organizations
...
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:36:19 -07:00