Bug 1301478

Summary: [fork][userinterface_public_555]Clicking Openshift Origin logo didn't send get project request
Product: OKD Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Steve Goodwin <sgoodwin>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, mmccomas, spadgett
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 17:13:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yadan Pei 2016-01-25 08:23:35 UTC
Description of problem:
on /console page, user projects are listed. When user create new project via CLI, click on “OPENSHIFT ORIGIN”logo didn't send ‘GET projectrequests‘ to get latest user projects.

Version-Release number of selected component (if applicable):
fork_ami_openshift3_userinterface_public_555_178 

How reproducible:
Always

Steps to Reproduce:
1.open /console page when user have no project
2.create new project via CLI
# oc new-project test
3.click "OPENSHIFT ORIGIN" logo 

Actual results:
3. no project listed on /console page

Expected results:
3. project "test" should be listed on /console page

Additional info:

Comment 1 Steve Goodwin 2016-01-26 14:58:07 UTC
@spadgett The logo link doesn't refresh the page, thus any new projects created via the cli won't display just by clicking the link. What are your thoughts on handling this?

Comment 2 Samuel Padgett 2016-01-26 15:03:36 UTC
Steve, did the ID on the logo change? We have a special handler in JS for this:

    $('#openshift-logo').on('click.projectsPage', function() {
      // Force a reload. Angular doesn't reload the view when the URL doesn't change.
      $route.reload();
    });

    ...

    $scope.$on('$destroy', function(){
      // The click handler is only necessary on the projects page.
      $('#openshift-logo').off('click.projectsPage');
    });

Comment 3 Samuel Padgett 2016-01-26 15:07:57 UTC
We should add a comment in the HTML saying there's a click handler for that ID.

Comment 4 Steve Goodwin 2016-02-01 22:14:32 UTC
Fixed in https://github.com/openshift/origin/pull/6663

Comment 5 Yadan Pei 2016-02-02 08:12:16 UTC
(In reply to Steve Goodwin from comment #4)
> Fixed in https://github.com/openshift/origin/pull/6663

which image shall i use to verify the bug? didn't see new fork_ami

Comment 6 Samuel Padgett 2016-02-02 12:07:31 UTC
The origin pull request just merged.

Comment 7 Yadan Pei 2016-02-03 02:39:31 UTC
verified on devenv-rhel7_3313, works as expected