Activity log for bug #1742575

Date Who What changed Old value New value Message
2018-01-11 00:04:22 Sri Harsha mekala bug added bug
2018-01-11 00:09:06 Sri Harsha mekala description When a user login's to horizon and switches his region, his current project is not being persisted. It looks like the recent_project is being set in the cookie only when the user interacts with the project drop down i.e switches his project at least once during his current session. The code for setting the cookie value for recent_project is being only called when the user switches his project. Please refer to the following code: https://github.com/openstack/django_openstack_auth/blob/4ceb57d02b8bbed30578a8052a31b982a1339f41/openstack_auth/views.py#L222. Expected: The user's current project should be persisted if the current project exists in the new region even if the user manually doesn't set his project. When a user login's to horizon and switches his region, his current project is not being persisted. It looks like the recent_project is being set in the cookie only when the user interacts with the project drop down i.e switches his project at least once during his current session. The code for setting the cookie value for recent_project is being only called when the user switches his project. Please refer to the following code: https://github.com/openstack/django_openstack_auth/blob/4ceb57d02b8bbed30578a8052a31b982a1339f41/openstack_auth/views.py#L199. Expected: The user's current project should be persisted if the current project exists in the new region even if the user manually doesn't set his project.