Commit Graph

5976 Commits (9b56045f8fe4359e8f84960caa993df2fec51d03)

Author SHA1 Message Date
Jared Scheib 9b56045f8f Add Organization ID to dashboards response
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-11-13 23:28:41 -08:00
Michael de Sa 579f946f00 Fix tests broken in 96a362cb
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-13 23:10:26 -08:00
Michael Desa 7117835c52 Fix wording suggested in PR 2017-11-13 20:49:07 -08:00
Michael Desa 4e51963399 Add option to specify users are create as super admin 2017-11-13 20:44:50 -08:00
Michael Desa 0ba2b40abe Set default role to viewer on source if not specified 2017-11-13 20:41:54 -08:00
Michael Desa 3af66d98ab Migrate all orphaned resources to DefaultOrg
When users upgrade, all of their bolt resources will not belong to any
organization. This PR introduces a migration path where any orphaned,
resources without an organization, will become owned by the default
organization.
2017-11-13 20:41:54 -08:00
Jared Scheib 865715516b Merge pull request #2354 from influxdata/multitenancy_whitelist_only
Add Public toggle to deny authz to users not explicitly added to an Organization
2017-11-13 20:25:23 -08:00
Michael Desa 1a235d881b Use default organization default role in me
Forbid users from application if they have no roles and were not
explicitly added in private organization
2017-11-13 19:28:15 -08:00
Luke Morris 338916a340 Address PR feedback. 2017-11-13 18:08:50 -08:00
Luke Morris 0424f9f92e Make Public values explicit 2017-11-13 12:15:53 -08:00
Luke Morris 29815774f0 If not set, Public should be true by default 2017-11-13 11:58:07 -08:00
Luke Morris 37d351f63b Sew up failing tests 2017-11-13 11:47:34 -08:00
Luke Morris 1aebbf2bd4 Clear test noise 2017-11-10 18:45:25 -08:00
Luke Morris 9eccded4b2 Reuse chronograf.Organization type 2017-11-10 18:31:30 -08:00
Luke Morris 6d2c7e18d1 Rename whitelistOnly => public 2017-11-10 18:23:41 -08:00
Luke Morris 5a2befccff Merge branch 'multitenancy' into multitenancy_whitelist_only 2017-11-10 17:52:06 -08:00
lukevmorris b6616fc177 Merge pull request #2349 from influxdata/multitenancy_allow-entry-without-auth
Scope auth logic beneath isUsingAuth
2017-11-10 17:45:56 -08:00
Luke Morris 5fbf1e140a Persist whitelistOnly changes to default organization 2017-11-10 16:43:11 -08:00
Andrew Watkins 6cb6fb58bd Merge pull request #2346 from influxdata/bugfix/super-admin-toggle
Bugfix/super admin toggle
2017-11-10 16:16:24 -08:00
Michael Desa 6bc9ac285b Fix Update method in organization.UsersStore
Previously, when users were updated, we did not use the fields on the
user that was being persisted. As a result, the API responded with the
attribute being set, but the updated values were not actually stored in
bolt. This was not noticed previously because SuperAdmins had raw access
to the UsersStore
2017-11-10 19:06:38 -05:00
Jared Scheib ff4ac4e406 Merge remote-tracking branch 'origin/multitenancy' into bugfix/super-admin-toggle 2017-11-10 16:00:42 -08:00
lukevmorris 4ab95c6146 Merge pull request #2340 from influxdata/multitenancy_fix_org_issues
Fix organizations UpdateHandler and OrganizationsStore Update method
2017-11-10 15:49:37 -08:00
Luke Morris b401983cbe Scope auth logic beneath isUsingAuth 2017-11-10 14:30:44 -08:00
Alex Paxton c55d85003d Merge pull request #2339 from influxdata/multitenancy_table_polish
Multitenancy Table Polish
2017-11-10 14:22:35 -08:00
Alex P b4a82224e1 Add whitelist column to organizations table
Slide toggle appears for default org, the rest see null state
2017-11-10 14:17:37 -08:00
Luke Morris af75278068 Role can be updated for Default Organization 2017-11-10 14:03:31 -08:00
Luke Morris 3ca2dc1c39 Persist default role on organization creation 2017-11-10 13:54:33 -08:00
Alex P 0479d570c9 Make table header styles consistent 2017-11-10 13:42:56 -08:00
Michael Desa 638e36c197 Change MeOrganization to UpdateMe 2017-11-10 16:17:46 -05:00
Michael Desa 6493902265 Check WhitelistOnly setting on default org in Me
Set DefaultOrganizationWhitelistOnly to false

Set DefaultOrganizationRole on new user in Me
2017-11-10 16:15:29 -05:00
Andrew Watkins a27d500432 Fix superAdmin not toggling
The handleUpdateUserSuperAdmin funciton appeared like it was
handling old data shapes.  It was also included an extra and uneccessary
anonymous function.  I also cleaned up a couple of other functions that
had unneeded anonymous funcitons.
2017-11-10 13:11:52 -08:00
Luke Morris 9daee3d802 Persist new defaultRole to server 2017-11-10 13:01:28 -08:00
Andrew Watkins 0cc8b24ee6 Fix superAdmin field not being passed to server 2017-11-10 13:00:58 -08:00
Michael Desa b110a28278 Add WhitelistOnly to organizations
Fix adding default role to organization
2017-11-10 15:57:48 -05:00
Michael Desa e2ac7f8bf0 Use raw organizations store is user is super admin 2017-11-10 15:33:28 -05:00
Michael Desa cc6f703f5d Fix updating default role on organization 2017-11-10 14:55:21 -05:00
Jared Scheib 94668c93e2 Italicize organization name in Chronograf Admin UsersTable 2017-11-10 11:55:01 -08:00
Jared Scheib 4de3e1e536 Make style of OrganizationsTableRowNew ConfirmButtons match OrganizationsTableRow confirmLeft 2017-11-10 11:52:38 -08:00
Jared Scheib 20299a6e90 Adjust Users table DeleteConfirmButtons column width to avoid jitter 2017-11-10 11:49:04 -08:00
Alex P 24745b361e Remove obsolete PageHeader component
Reverting page title to “Chronograf Admin”. No need to have this as a
component
2017-11-10 11:09:07 -08:00
Alex P 7c40f938c0 Increase width of actions column in users table 2017-11-10 11:06:30 -08:00
Alex P 394307e2a0 Consolidate redundant actions column in users table 2017-11-10 11:06:18 -08:00
Alex P f9828473ac Render current organization in users table header
Unclear which org the users are from otherwise
2017-11-10 11:05:27 -08:00
Alex P 037c777212 Make chronograf admin page the same width as influxdb admin page 2017-11-10 10:57:21 -08:00
Alex Paxton 2a3183188e Merge pull request #2288 from influxdata/multitenancy_ui_current_org_copy
Multitenancy UI Helpful Copy
2017-11-10 10:42:45 -08:00
Michael Desa 7362401936 Merge pull request #2294 from influxdata/multitenancy_expose_some_org_routes
Expose some organization routes to admins
2017-11-10 12:55:18 -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 5ee565a4a8 Merge pull request #2317 from influxdata/multitenancy_ensure_unique_user
Ensure users name, provider, and scheme are unique
2017-11-10 12:38:12 -05:00
Michael Desa 9920f5e90e Ensure users name, provider, and scheme are unique 2017-11-10 12:29:17 -05:00
Michael Desa 7ef6078c98 Merge pull request #2304 from influxdata/multitenancy_expose_source_for_superadmin
Fix ValidSourceRequest to modify pointer when needed
2017-11-10 12:28:07 -05:00