Commit Graph

126 Commits (ca9f0746ba3612c6dd7399bcb082cff8e40f7d2b)

Author SHA1 Message Date
Alirie Gray 913e21c136 Rename LogViewerOrganizationConfig to OrganizationLogViewerConfig
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 12:05:29 -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 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
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
Andrew Watkins 1344297421 Change IFQL to Flux 2018-06-05 10:57:19 -07:00
Chris Goller b3de8947a4 feat(server/services): add generic services scoped under server 2018-05-21 10:45:27 -07:00
Jared Scheib ece512c631 Rename PrefixedRedirect to FlushingHandler & comment
It's not clear whether this code is necessary, but investigating
this was outside of the scope of this PR.
2018-04-20 18:40:09 -07:00
Jared Scheib 5ac2a3c063 Remove basepath var & arg from PrefixedRedirect 2018-04-20 18:40:09 -07:00
Jared Scheib 97c84cbe6e Remove prefix-routes & clean up basepath var and flag use
Now, if basepath is set, it will be prefixed to all routes.
There is no more additional option of prefix-routes.
2018-04-20 18:40:09 -07:00
Jared Scheib 14cfc3f95c Fix logout link with basepath
Remove double-prefixing by removing the prefixing
logic of the InterceptingResponseWriter.

Fix the logout link route for its handler to not
include a basepath prefix.

Remove obsolete tests for prefixing redirector.

Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-04-20 16:58:41 -07:00
Jared Scheib aac6a5c950 Merge branch 'master' into feature/rest-measurements 2018-04-04 16:21:16 -07:00
Jared Scheib 2fbdf07d8d Rename db & rp vars & url params for clarity & consistency
Updates swagger as well.
Clarify that instead of dbid and rpid, these values are names.
Rename the var for the Databases service to dbsvc.
2018-04-04 14:22:08 -07:00
Chris Goller 05b11f8172 Add measurements with pagination 2018-04-03 16:04:16 -07:00
Andrew Watkins d71763234a Introduce /health endpoint 2018-04-03 15:58:33 -07:00
Andrew Watkins 9da2febb89 Add endpoint for raw string conversion to AST
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-03-29 16:04:37 -07:00
Andrew Watkins 049962abda Provide links to ifql api 2018-03-29 16:01:01 -07:00
Brandon Farmer 5f83bf59ed Add endpoints for ifql function suggestions
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-03-29 16:01:01 -07:00
Luke Morris 41244f4edc Merge branch 'master' into feature/annotationz-pre-pl-with-master 2018-02-15 12:03:10 -08:00
Luke Morris 5f0ef591ea Merge branch 'master' into feature/mappings 2018-02-09 11:42:07 -08:00
Alex P f2cc269a33 Merge branch 'master' into feature/annotationz-pre-pl-with-master 2018-02-08 16:38:47 -08:00
Michael Desa 25838cb9ea Add Mappings CUDA routes 2018-02-05 16:47:44 -05:00
Michael Desa 64f670e819 Add correct implementation of mappings 2018-02-05 14:54:39 -05:00
Chris Goller 59b85c3f3a Update influxdb annotation store to support update/delete 2018-01-18 21:50:46 -06:00
Michael Desa ec4a00eb11 Fix RouteMatchesPrincipal if org isnt on principal 2018-01-17 12:42:32 -05:00
Michael Desa e8ed30a9e6 Populate links response with organiation on JWT 2018-01-17 12:26:28 -05:00
Michael Desa e1b071c002 Add correct users route to all routes 2018-01-16 17:03:46 -05:00
Michael Desa 6168dc3e06 Nest user routes under organization
Add global user routes
2018-01-16 16:45:58 -05:00
Chris Goller 92b5cedff9 Add basic REST routes for annotations 2018-01-12 17:17:14 -06:00
Michael Desa 1c33580f99 Modify CRUD user handlers for global operations
Add raw query param middleware performing raw ops

This commit introduces middleware that allows SuperAdmin Users to
specify a query param `raw=true` which will give them raw access to the
data store. Raw access means that it is not in behind the usual
organization facade.

Currently, only the user routes use this middleware.
2018-01-09 13:43:33 -05:00
Michael Desa b41816c5cd Add /chronograf/v1/env endpoint to expose env vars
Some environment variables are needed by the front end. This PR
introduces a route so that those environment variables can be exposed.
Additionally, a new environment variable TELEGRAF_SYSTEM_INTERVAL was
added. This env var controls the rate at which the host list page will
update its red/green status.
2018-01-03 11:52:40 -08:00
Chris Goller e39ddeddcf Fix cell replacement to return query config 2017-12-19 13:43:39 -06:00
Michael Desa 9c989083a8 Add PUT /config/:section route 2017-12-13 09:28:39 -08:00
Michael Desa d0f63ca0e0 Add /config/:section endpoint 2017-12-13 09:04:44 -08:00
Michael de Sa 17460e397b Implement Config GET service method
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-12-12 17:06:57 -08:00
Jared Scheib ff1cde524b Merge branch 'multitenancy' into multitenancy_fix_layouts 2017-12-05 16:03:05 -08:00
Michael Desa c9471d4084 Remove /mappings in place of /layouts
Remove POST/PUT/DELETE methods to /layouts
2017-12-05 17:07:09 -05:00
Jared Scheib c9e579acb2 Merge remote-tracking branch 'origin/master' into multitenancy 2017-12-05 11:43:23 -08:00
Chris Goller d6d7081b1e Update oauth logout to include basepath 2017-12-01 15:35:39 -06:00
Michael Desa 638e36c197 Change MeOrganization to UpdateMe 2017-11-10 16:17:46 -05:00
Michael Desa f228e2860d Expose some organization routes to admins
Cleanup tests appropriately

Prevent Admins from patching organizations
2017-11-10 12:48:10 -05:00
Michael Desa 4f7f9c2757 Change SuperAdminRoleName to SuperAdminStatus
SuperAdmin is not a role type, but it a status of a user that is
tangentially related to a users role in an organization. This renames
the variable to reflect that difference.
2017-11-07 13:59:51 -05:00
Michael Desa 9b194168a6 Move user roles and role names to roles package 2017-11-06 11:27:13 -05:00
Michael Desa 708c37dc67 WIP cleanup 2017-10-31 20:58:40 -04:00
Michael Desa 36e14cb111 Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
Michael de Sa cf58974927 Add organization field to principal in auth tests
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 13:19:43 -07:00
Michael Desa 5e08464ecf Provide route to change current users organization
Add current Organization to JWT.
Use OrganizationUsersStore to retrieve Users that are not me.

Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-26 18:06:52 -04:00
Michael Desa b5e73dfd46 Add CRUD routes for organizations 2017-10-20 15:42:34 -04:00
Michael de Sa f463642bae Update route authorization by Role
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-19 14:33:08 -05:00