Commit Graph

5700 Commits (7f7674d8297f5bd52f2598382f6b19240227fe47)

Author SHA1 Message Date
Michael Desa eca0be45e2 Add Organization to layouts 2017-10-25 12:52:56 -04:00
Michael Desa 89fef060b7 Add Organization to chronograf.Server 2017-10-25 12:42:50 -04:00
Michael Desa 7b21a6b970 Add Organization to Sources 2017-10-25 11:51:15 -04:00
Michael Desa b9219c5cc7 REMOVE ME
This commit should be removed and was added so that it when I run make
gen for adding other values it won't polute the other commits
2017-10-25 11:49:56 -04:00
Jared Scheib c6ed4da5b4 Refactor Authorized HOC to SFC
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:37:01 -07:00
Alex Paxton a9f18aa508 Export isAuthorized for global use
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 18:36:32 -07:00
Jared Scheib f9d65e59d2 Render layout cell menu based on authorization
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:28:17 -07:00
Alex Paxton b9fbdcf49d Render template variables manage button based on authorization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 18:22:56 -07:00
Jared Scheib 756a128033 Render Dashboard rename based on Authorization
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:19:18 -07:00
Jared Scheib c15a41025d Merge branch 'multitenancy' into multitenancy_lowercase_fields 2017-10-24 18:01:32 -07:00
Jared Scheib 76b665261f Merge branch 'multitenancy' into multitenancy_dashboards_page_readonly 2017-10-24 18:00:38 -07:00
Jared Scheib 7fce5fe0fc Merge branch 'master' into multitenancy 2017-10-24 17:58:15 -07:00
Alex Paxton ecb825643c Wrap 'Add Cell' with Authorized HOC
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 17:51:38 -07:00
Jared Scheib c603cfe746 Cleanup
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:48:41 -07:00
Jared Scheib 06b54b2155 Render original component in Authorized if not using auth
Make isUsingAuth a app-wide Redux key. Refactor its usage
in SideNav, and use it in Authorized.

Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:43:16 -07:00
Alex Paxton 9519e0b9b1 Add param to Authorized to replace unauthorized component with node
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 17:16:11 -07:00
Jared Scheib 102b98873d Export role name consts in client to fix Authorized HOC
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:04:06 -07:00
Jared Scheib 2f6643ae3c Add scheme to me/AuthorizedUser tests 2017-10-24 16:21:24 -07:00
Jared Scheib 9a6ab1bf9d Lowercase Provider & Scheme & Role values for consistency
The client was being sent lowercase values for Role & Provider,
but not Scheme. This change makes all the above lowercase.
2017-10-24 16:17:59 -07:00
Jared Scheib 30b8d3cdca Make all Store names plural for consistency 2017-10-24 15:54:24 -07:00
Jared Scheib a48fb6cda9 Clean up plurals in func comments
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 15:09:37 -07:00
Michael de Sa c15480d018 Test validOrganizationRoles comprehensively
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 15:08:01 -07:00
Michael de Sa 9b8a2e431a Add comments to validOrganization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 15:07:35 -07:00
Jared Scheib a7558f6ce2 Ensure additional Users aren't created OrganizationUser.Add
Performs a Get against the global UsersStore, and if the User
already exists, it appends to that User instead of trying to add
the "new" User blindly.

Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 14:53:50 -07:00
Michael de Sa d45335f281 Fix string interpolation data type for uint64 in Users tests
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 14:28:39 -07:00
Michael de Sa dad08a7389 Modify ValidUpdate to ensure only User Roles can be updated
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 14:28:35 -07:00
Jared Scheib c120dbe3c5 Rename userHasValidRoles to validOrganizationRoles for clarity
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 14:04:48 -07:00
Jared Scheib ebcf97e2c5 Clarify Update methodology comment
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 14:04:05 -07:00
Michael de Sa a505c6cef2 Test for error on Add Org User without context Org
Refactor guards in OrganizationUser bolt methods into comon func

Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 13:53:30 -07:00
Jared Scheib b052efcfa7 Improve test reporting for which user was deleted
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 13:45:09 -07:00
Michael de Sa a34888e0ad Clean up derletion test name
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 13:43:25 -07:00
Michael de Sa 40da570358 Make vars consistent
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 13:41:47 -07:00
Jared Scheib 7757533d7b Improve get no users test
Change rawWant to wantRaw
Remove fmt.Println

Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 13:33:17 -07:00
Alex P b1915ab53c Fix typo in prop 2017-10-24 13:30:51 -07:00
Andrew Watkins 49678e765e Add tern-project to gitignore 2017-10-24 13:00:40 -07:00
Hunter Trujillo bdbf16b1c2 Merge pull request #2156 from influxdata/blocker/group-by-time-de
Fix GroupByTimeDropdown
2017-10-24 12:53:57 -06:00
Hunter Trujillo 0249bbbcd6 Remove isInDataExplorer props. Refactor GroupByTimeDropdown to SFC. Fix isInDataExplorer and isInRuleBuilder methods. 2017-10-24 12:41:55 -06:00
Andrew Watkins 9e025756b1 Merge pull request #2155 from influxdata/blocker/template-vars
Fix broken update of dashboards and TVs
2017-10-24 11:02:11 -07:00
Andrew Watkins a2fe7a9898 Fix broken update of dashboards and TVs 2017-10-24 10:55:49 -07:00
Hunter Trujillo 34eabba071 Merge pull request #2153 from influxdata/blocker/field-value-condition
Fix field name not displaying in KapacitorRule builder
2017-10-24 11:35:47 -06:00
Michael Desa 571ac39154 Add OrganizationUsersStore
bolt/organization_users_store contains a boltdb implementation of a
chronograf.UsersStore that filters the results based on the organization
that is set on the context.

Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 13:29:46 -04:00
Andrew Watkins 20564cca3e Merge pull request #2154 from influxdata/bugfix/field-format-fixes
Fix status page
2017-10-24 10:26:41 -07:00
Andrew Watkins 42e43b55b7 Fix field name not displaying in KapacitorRule builder 2017-10-24 10:13:02 -07:00
Hunter Trujillo 68655439b7 Fix status page. 2017-10-24 10:54:07 -06:00
Nathan Haugo 1ce78dd21b Update changelog and version number for 1.3.10.0 2017-10-24 09:34:31 -04:00
Alex Paxton fc3e4dc898 FOR TESTING - DELETE THIS COMMIT: User Role = Viewer
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-23 17:53:33 -07:00
Alex Paxton 8b7660d3ab Implement Authorized HOC on DashboardsPage
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-23 17:50:43 -07:00
Jared Scheib 7a305887ef Add 'Authorized' HOC to hide components based on me Role
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-23 17:44:08 -07:00
Andrew Watkins 64aa0c683c Merge pull request #2144 from influxdata/feature/de-tab-titles
Use tag value in TableTag title
2017-10-23 15:20:44 -07:00
Andrew Watkins 427c6522ad Use tag value in TableTag title 2017-10-23 13:54:02 -07:00