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.
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: /github. com/openstack/ django_ openstack_ auth/blob/ 4ceb57d02b8bbed 30578a8052a31b9 82a1339f41/ openstack_ auth/views. py#L222.
https:/
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.