Bug 1301478 - [fork][userinterface_public_555]Clicking Openshift Origin logo didn't send get project request
Summary: [fork][userinterface_public_555]Clicking Openshift Origin logo didn't send ge...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Management Console
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Steve Goodwin
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-25 08:23 UTC by Yadan Pei
Modified: 2016-05-12 17:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 17:13:47 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.