Bug 1389220

Summary: Monitoring page should set correct resource type when resource type "Deployments" selected
Product: OKD Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-09 21:50:37 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-10-27 08:34:28 UTC
Description of problem:
Go to monitoring page, select "Deployments" from the resource list, refresh the page then resource type will be set as "Replication Controllers"

Version-Release number of selected component (if applicable):
latest origin-web-console(latest commit is e79e649)

How reproducible:
Always

Steps to Reproduce:
1.Create Deployment
# cat >> deployment.yaml << EOF
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: hello-openshift
spec:
  replicas: 4
  template:
    metadata:
      labels:
        app: hello-openshift
    spec:
      containers:
      - name: hello-openshift
        image: openshift/hello-openshift
        ports:
        - containerPort: 80
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 2
    type: RollingUpdate
EOF
# oc create -f deployment.yaml
2.Go to Monitoring page, select "Deployments" to only monitor deployments
3. Refresh the page

Actual results:
3. After refresh the monitoring page, Resource type is shown as "Replication Controllers" in the list

Expected results:
3. There is no "Replication Controllers" resource type in the list on Monitoring page, so should set resource type as "Deployments"

Comment 1 Yadan Pei 2016-11-07 06:15:26 UTC
Checked against v1.4.0-alpha.1+b81b382-59

When "Deployments" selected,Refreshing Monitoring page/Going back after redirected to other pages could set resource type correctly as "Deployments" 

Move to VERIFIED