horizon/openstack_dashboard/dashboards/identity
David Lyle 10e6bf57c3 Fixing updating user with no default project
The selector for setting the default project passes on an empty string
if the value is not changed. This is causing an error from keystone as
an empty string is not a valid project ID.

To fix, a couple of things have been done:

First, as user_update is a PATCH, we no longer pass on the default
project as a parameter in the update when using keystone v3
and the value did not change when editing the user.

Second, there is currently no way to unset the default project
using keystoneclient. An entry in the default project select
"select a project" has been removed when the default project is
already set. The entry was selectable and resulted in the
problematic empty string. The current default project is already
selected at load time. The ability to select a different default
project is maintained.

Additionally, keystone v2.0 functionality is not effected, as the
default project id is required in v2.0.

A test was added to cover the case of editing the default project.

Closes-Bug: #1561612
Change-Id: I3c84ee5c7af846b5a58f2dd0342a537d312323cf
(cherry picked from commit 32510d8211)
2016-03-30 18:22:34 +00:00
..
domains Retrieve domain scoped token 2016-03-08 15:17:38 -08:00
groups Merge "Branding: Workflow cancel btn should be themable" 2016-03-15 23:48:54 +00:00
identity_providers Add support for identity provider protocol CRUD 2016-02-16 16:04:48 -08:00
mappings Add basic CRUD for federation mapping 2016-02-04 00:10:46 +00:00
ngusers Match python/ angular table styles 2016-03-01 10:36:16 +00:00
projects Retrieve domain scoped token 2016-03-08 15:17:38 -08:00
roles Retrieve domain scoped token 2016-03-08 15:17:38 -08:00
static/dashboard/identity ngTables should use themable checkboxes. 2016-03-15 15:12:18 -07:00
users Fixing updating user with no default project 2016-03-30 18:22:34 +00:00
__init__.py Separating Identity Dashboard and using RBAC 2014-08-18 16:40:56 -06:00
dashboard.py Move Horizon to pure plugin loading only 2015-08-03 14:49:31 -06:00