Alirie Gray
9c052e5b82
Merge pull request #3806 from influxdata/logs-viewer/logs-overlay-api
...
Add API to get/update Log Viewer UI config within parent Organization Config
2018-07-10 16:27:23 -07:00
Alirie Gray
8b45b2a924
Add auth config link to global application config response links
2018-07-10 16:13:37 -07:00
Alirie Gray
dfdd2907f0
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
6ec5d171e4
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
44ee2dc168
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
b78ed8eef7
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
dab949f26f
Add comment for validLogViewerConfig function
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 15:09:06 -07:00
Alirie Gray
0b84deabfc
Fix swagger error in LogViewerColumn
2018-07-10 14:03:21 -07:00
Alirie Gray
0295a9a549
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
913e21c136
Rename LogViewerOrganizationConfig to OrganizationLogViewerConfig
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 12:05:29 -07:00
Alirie Gray
1ab600e133
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
Alirie Gray
5b58c6aa59
Guard against length-0 slice in org_config get and FindOrCreate methods
...
Added ErrOrganizationConfigNotFound error
Refactored FindOrCreate to use helper get method
Ensure that FindOrCreate creates a new org config if config not found
and returns any other errors
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 11:41:06 -07:00
Christopher Henn
a140ecfe49
Fix encoding of empty source responses
2018-07-10 10:50:27 -07:00
Jared Scheib
0104594c16
Fix swagger.json breaking in rebase
2018-07-09 17:41:23 -07:00
Jared Scheib
9a60875048
Add tests for validLogViewerConfig & remove obsolete comments
2018-07-09 17:37:30 -07:00
Jared Scheib
c79fa83064
Fix server/org_config_test function names in test error output
2018-07-09 17:37:30 -07:00
Jared Scheib
b68014daa8
Fix OrganizationConfig store to never manipulate global org config
...
Using serverContext created the scenario where a global org config
could be created and manipulated in certain cases. However, org
configs should always be in the context of an organization --
there is no global organization config, so removing these lines
removes the ability for such an undesired state.
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib
92bda812b4
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
Alirie Gray
45bb87a17b
Update swagger docs with refactored organization config API
...
Add definitions for Config and Organization Config
Replace /:section route with /auth and /org_config/logviewer
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib
429fe214e6
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
9909bed41f
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
Alirie Gray
2f6b4ccd99
Replace name "LogViewerUIConfig" with "LogViewerConfig"
2018-07-09 17:36:19 -07:00
Alirie Gray
9d752e0eb4
Add comments and refactored map syntax for validLogViewerUIConfig
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Alirie Gray
691dd6e796
Handle decoding request before retrieving config & := syntax for res
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Jared Scheib
b5491a7bf1
Add & fix logViewer links in configResponse
...
Rename LogViewerUI to LogViewer in Config struct.
Make all instances of endpoint 'logviewer' (lowercase).
Make all instances of config.links.logViewer (camelcase).
2018-07-09 17:36:19 -07:00
Jared Scheib
08c7850812
Correct two missed 'logViewer's to logviewer
2018-07-09 17:36:19 -07:00
Alirie Gray
0241e4faea
Change the log viewer UI config property "encoding" to "encodings"
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Alirie Gray
5043c86990
Validate log UI config on PUT, & refactor config API methods
...
Replaced /:section with specific hard-coded endpoints /auth
& /logviewer, and refactored service handler methods to
handle each route separately.
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:35:17 -07:00
Jared Scheib
73e61b3d33
Add API to get/update log viewer UI config
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:35:17 -07:00
Christopher Henn
17d4cc7135
Add missing brace in swagger.json
...
The docs at localhost:8888/docs failed to load due to an error parsing
the swagger.json file.
2018-07-09 10:44:27 -07:00
Deniz Kusefoglu
fec39a1ca5
Merge pull request #3817 from influxdata/tempvars/map-type-upload
...
Tempvars/map type upload
2018-07-03 15:32:44 -07:00
ebb-tide
b900fead75
Add map as a template variable value type to the backend
2018-07-02 17:45:44 -07:00
Alirie Gray
352cf0e0d0
Merge pull request #3814 from influxdata/feat/add-debug-endpoints
...
feat(server): add profiling routes to chronograf server
2018-07-02 15:48:49 -07:00
Michael Desa
21f35fd75f
feat(server): add profiling routes to chronograf server
...
In order to diagnose why the dashbords page we'll need to profile
chronograf. This commit adds the debug routes to chronograf.
2018-07-02 15:19:34 -07:00
Brandon Farmer
17d8ffe9c1
Remove concurrency from source authentication test
2018-07-02 14:30:08 -07:00
Brandon Farmer
0698be1caf
Use json ldap configuration over toml
2018-07-02 14:17:32 -07:00
Brandon Farmer
ad670f3531
Remove ldap specific endpoint
...
- LDAP information is now attached to source
2018-07-02 11:24:29 -07:00
Brandon Farmer
2a6d58743d
Make authentication method available in sources
2018-07-02 11:24:29 -07:00
Brandon Farmer
4aeda9caf3
Add endpoint for determining if ldap is enabled
2018-07-02 11:24:29 -07:00
Andrew Watkins
6db6e272d1
Merge pull request #3782 from influxdata/chore/fe-templating
...
Move template replacement to the frontend
2018-06-28 14:47:07 -07:00
Alirie Gray
4a5cef976c
Add position property to LogViewerUIColumn Swagger definition
2018-06-28 13:41:12 -07:00
Andrew Watkins
4204700d49
Remove tempVars from backend queries response
2018-06-28 13:19:32 -07:00
Alirie Gray
65b803f86f
Simplify LogViewerUIColumn Swagger definition
...
Combine mappings and formatting into "encoding."
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-06-28 13:07:40 -07:00
Andrew Watkins
24da2f7bef
Remove template variable replacement from the backend
2018-06-28 12:42:28 -07:00
Alirie Gray
f5ef55f948
Add examples for LogViewerUIConfig/Column to Swagger docs
2018-06-28 11:27:46 -07:00
Jared Scheib
e6fca683ad
Iterate on data models for Log Viewer UI config API
...
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-28 10:59:48 -07:00
Andrew Watkins
1ea4642672
Return query duration from /query endpoint
2018-06-27 17:05:35 -07:00
Alirie Gray
96f905aacb
Simplify Swagger config API & add AuthConfig definition
...
Co-Authored-By: Jared Scheib <jared.scheib@gmail.com>
2018-06-27 15:17:14 -07:00
Alirie Gray
704807f683
Simplify log viewer UI config models in Swagger
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-06-27 15:07:17 -07:00
Alirie Gray
16368a6bd9
Add a swagger definition for UI config settings and API Routes
...
Specifically, this adds a definition for getting and updating
the log viewer UI Settings, i.e. severityColors,
columns, and severityColumnFormat.
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-06-26 17:12:00 -07:00