Skip to content

Remain in the current project at login if possible - #10378

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

openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:login-project

Conversation

@liggitt

@liggitt liggitt commented Aug 12, 2016 •

Copy link
Copy Markdown
Contributor

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

soltysh commented Aug 12, 2016

Copy link
Copy Markdown
Contributor

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

@liggitt

liggitt commented Aug 12, 2016 •

Copy link
Copy Markdown
Contributor Author

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

liggitt commented Aug 12, 2016

Copy link
Copy Markdown
Contributor Author

[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 2321354

@liggitt

liggitt commented Aug 12, 2016

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot

openshift-bot commented Aug 12, 2016 •

Copy link
Copy Markdown
Contributor

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

@soltysh

soltysh commented Aug 12, 2016

Copy link
Copy Markdown
Contributor

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