Repository navigation
Remain in the current project at login if possible - #10378
Conversation
|
The change LGTM, can you add tests, I see we have 0 tests in that area and that freaks me out a bit. |
it's not well-structured for mocking client calls for unit tests, reworking that is a bigger change than I want to make at the moment. test-cmd also exercises login quite a bit. |
|
[test] |
|
Evaluated for origin test up to 2321354 |
|
[merge] |
|
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7853/) |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7881/) (Image: devenv-rhel7_4815) |
|
AWS failure: re-[merge] |
|
Evaluated for origin merge up to 2321354 |
On login, we were listing the projects available to the current user, selecting the current one if it is in that list, defaulting to the first project in the list otherwise
If this is done right after a project is created or a role is granted, the project list cache may not include the project yet. If the list of projects does not include our current one, attempt a direct get before switching to a different project.
Fixes #10274