Commit Graph

6078 Commits (5dc7444678512eb52d873ff19396383e8fc20058)

Author SHA1 Message Date
Alex P f6c27c970c Re-arrange items in me nav item 2017-11-07 11:37:32 -08:00
Alex P 6056e37dfa Move user nav item to top of side nav
Needs more vertical space than the other items
2017-11-07 11:36:56 -08: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 d40a374274 Add comments suggested from PR review
Add tests to server/stores_test.go
2017-11-07 13:59:40 -05:00
Chris Goller f4fa08e36b Fix kapacitor task panic where error condition was not checked 2017-11-07 11:42:40 -06:00
Alex P 6899fc413d Improve clarity of copy in manage sources page by including the current organization name 2017-11-07 01:20:52 -08:00
Alex P 3159969dbb Render current organization name in InfluxTable header 2017-11-07 01:01:56 -08:00
Alex P 87f186a61d Create skeleton for Purgatory page 2017-11-07 00:46:36 -08:00
Alex P e82fdf44b8 Make chronograf admin table dropdowns appear like plaintext until hover 2017-11-06 15:40:09 -08:00
Andrew Watkins d562a069f5 Merge pull request #2218 from influxdata/bugfix/no-results-legend
Bugfix/no results legend
2017-11-06 15:08:19 -08:00
Chris Goller 702675dd94 Merge pull request #2268 from influxdata/feature/webpack-hot-module-reload
Add hot module reload to dev builds (make run-hmr)
2017-11-06 17:07:08 -06:00
Chris Goller 132d9845ba Merge pull request #2267 from influxdata/feature/js-build-cleaner
Add cleanup step to js dev builds to remove unused files
2017-11-06 17:06:41 -06:00
Nathan Haugo 106d1fda48 Merge pull request #2222 from influxdata/fix/builder-template-vars
Fix rendering of templated queries to the /queries endpoint
2017-11-06 13:42:14 -08:00
Alex P a487bbe080 Increase vertical padding on new user row cells 2017-11-06 13:41:19 -08:00
Alex P 2e77f76cb4 Change micro copy to be more of a Call to Action and less long 2017-11-06 12:46:54 -08:00
Alex P 799048e5ae Refactor CreateUserOverlay into NewUserTableRow to be consistent with primary table item creation pattern 2017-11-06 12:39:32 -08:00
Jared Scheib c50422eb39 Modify mock store & json on superadmin-creates-SA user to reflect true SA status
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-11-06 11:17:27 -08:00
Alex P 3e8e878481 Move Create User button closer to Users Table 2017-11-06 09:17:51 -08:00
Michael Desa bd4d5c6cc3 Fix role related tests after rebase 2017-11-06 11:31:44 -05:00
Michael Desa 9b194168a6 Move user roles and role names to roles package 2017-11-06 11:27:13 -05:00
Michael Desa 4781cb3673 Allow update of sources.Role in server.UpdateSource 2017-11-06 11:25:51 -05:00
Michael Desa f3f183f685 Add role ctx where appropriate in AuthorizedUser 2017-11-06 11:25:46 -05:00
Michael Desa 9ee3b431db Add roles implementation of sources store
Minimal test coverage of Update/Delete/Add methods was done since they
do not involve any filtering. The filtering for them should have
happened at the API level.
2017-11-06 11:24:13 -05:00
Michael Desa 8ded387a81 Add Role to chronograf.Source 2017-11-06 11:24:10 -05:00
Michael Desa aa45f265cc Merge pull request #2243 from influxdata/multitenancy_demote_superadmin
Allow SuperAdmins to promoted and demoted
2017-11-06 11:22:38 -05:00
Michael Desa f0d19277a3 Pull out setting super admin into a single func 2017-11-06 11:15:49 -05:00
Michael Desa 3565eda4a1 Allow SuperAdmins to promoted and demoted 2017-11-06 11:15:48 -05:00
Michael Desa 4de8ef7441 Merge pull request #2219 from influxdata/multitenancy_default_org
Remove explicit default org ID use
2017-11-06 11:12:33 -05:00
Michael Desa 49232f009e Add default org check even when no auth is used 2017-11-06 10:17:17 -05:00
Michael Desa f75de68607 Remove DefaultOrganization Name in tests mock store 2017-11-06 10:17:17 -05:00
Michael Desa 1c48601792 Add test for deleting default organization
Group together constants
2017-11-06 10:17:15 -05:00
Michael Desa 999f6c6a24 Change default organization name to Default 2017-11-06 10:15:50 -05:00
Michael Desa 28211fabec Prevent deletion of default organization 2017-11-06 10:14:14 -05:00
Michael Desa 7200aaf9f9 Add default org logic to OrganizationsStore
Update resource handlers to appropriate consume default organization IDs
2017-11-06 10:14:12 -05:00
Michael Desa 81318f6584 Merge pull request #2220 from influxdata/multitenancy_default_org_role
Add default role organization
2017-11-06 10:10:29 -05:00
Michael Desa 292143f01b Add comment to default role in chronograf.go 2017-11-06 09:46:00 -05:00
Michael Desa 09f79f3a3e Grant user role in default org if added via API
When users are created via the API they are only given roles in orgs
that are explicitly set. Additionally the roles must be roles that
belong to the current organization (unless they are a super admin).

This leads to a situation where a user may not be a part of the default
organization. If this is the case, we detect it when the user hits /me
and add the user to the default org.
2017-11-06 09:46:00 -05:00
Michael Desa 63f7d8205c Add default role to chronograf.Organization 2017-11-06 09:46:00 -05:00
Michael Desa 1012c92a59 Merge pull request #2242 from influxdata/multitenancy_single_role_per_org
Prevent duplicate organization roles in user CRUD
2017-11-06 09:44:31 -05:00
Chris Goller 02762a95e5 Update queries endpoint comment 2017-11-04 20:19:08 -05:00
Alex P f0bea2cd9f Replace super admin dropdown with slide toggle 2017-11-04 12:36:23 -07:00
Alex P bf9f0c6b8a Introduce SlideToggle Component 2017-11-04 12:35:47 -07:00
Alex P 5d491c9935 Make manage orgs overlay scrollable when there are many orgs 2017-11-04 12:34:19 -07:00
Chris Goller 1bcf74e547 Add hot module reload to dev builds (make run-hmr) 2017-11-04 14:07:39 -05:00
Chris Goller 39096e6c3d Add cleanup step to js dev builds to remove unused files 2017-11-03 19:33:16 -05:00
Jared Scheib 13750062d6 Multitenancy is reeaaaaaaaalll!!!
Go to limbo if you're not authorized!

Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-11-03 16:46:16 -07:00
Michael de Sa e15b435423 Stop console from whining about null initializing propTypes
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-03 14:41:48 -07:00
Michael de Sa 841cc71185 Allow diff replaceWith component if not using auth in Authorized HOC
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-03 14:31:32 -07:00
Alex P 4e34477bd3 Make separate non-editable component for Default Org 2017-11-03 12:08:27 -07:00
Jared Scheib 49e315f73f Fix failing Me test by splitting Me actions by whether using auth 2017-11-03 09:40:47 -07:00