Skip to content

Remain in the current project at login if possible#10378

Merged
openshift-bot merged 1 commit intoopenshift:masterfrom
liggitt:login-project
Aug 12, 2016
Merged

Remain in the current project at login if possible#10378
openshift-bot merged 1 commit intoopenshift:masterfrom
liggitt:login-project

Conversation

@liggitt
Copy link
Copy Markdown
Contributor

@liggitt liggitt commented Aug 12, 2016

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

@soltysh
Copy link
Copy Markdown
Contributor

soltysh commented Aug 12, 2016

The change LGTM, can you add tests, I see we have 0 tests in that area and that freaks me out a bit.

@liggitt
Copy link
Copy Markdown
Contributor Author

liggitt commented Aug 12, 2016

can you add tests

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. will open a follow up issue opened #10380

@liggitt
Copy link
Copy Markdown
Contributor Author

liggitt commented Aug 12, 2016

[test]

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 2321354

@liggitt
Copy link
Copy Markdown
Contributor Author

liggitt commented Aug 12, 2016

[merge]

@openshift-bot
Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7853/)

@openshift-bot
Copy link
Copy Markdown
Contributor

openshift-bot commented Aug 12, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7881/) (Image: devenv-rhel7_4815)

@soltysh
Copy link
Copy Markdown
Contributor

soltysh commented Aug 12, 2016

AWS failure:

/var/lib/jenkins/.vagrant.d/gems/gems/fog-1.26.0/lib/fog/aws/region_methods.rb:6:in `validate_aws_region': Unknown region: "<AMI_REGION>" (ArgumentError)

re-[merge]

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 2321354

@openshift-bot openshift-bot merged commit 252b928 into openshift:master Aug 12, 2016
@liggitt liggitt deleted the login-project branch August 15, 2016 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants