Bug 1369338 - When adding BC env with same name, we got different result from BC environment tab and BC edit page
Summary: When adding BC env with same name, we got different result from BC environmen...
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: bpeterse
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-23 07:41 UTC by Yadan Pei
Modified: 2016-09-19 13:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-19 13:55:43 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Yadan Pei 2016-08-23 07:41:10 UTC
Description of problem:
When adding BC env with same name, we got different result from BC environment tab and BC edit page

Version-Release number of selected component (if applicable):
openshift v1.3.0-alpha.3+31f6add-dirty(based on latest origin-web-console commit at 1c4709f)
kubernetes v1.3.0+507d3a7
etcd 2.3.0+git

How reproducible:
Always

Steps to Reproduce:
1.Create app from image on web console
2.Go to Builds -> Environment tab
3.Add one pair of Name/Value  bcname:bcvalue1
4.Add another pair of Name/Value with same Name, bcname:bcvalue1update
5.Click "Actions -> Edit" to go to edit/builds page
6.Check BC environment via CLI
# oc get bc <bcname> -o yaml 
<..snip...>
      env:
      - name: bcname
        value: bcvalue1
      - name: bcname
        value: bcvalue1update
<..snip...>

Actual results:
4.On Builds Environment tab, two pairs of Name/Value are shown: bcname:bcvalue1, bcname:bcvalue1update
5.Only one pair of Name/Value is displayed: bcname:bcvalue1update
6.Two pairs of Name/Value are shown

Expected results:
Should get the same result for 4,5,6


Additional info:

Comment 1 bpeterse 2016-08-23 20:11:21 UTC
PR merged: https://github.com/openshift/origin-web-console/pull/456

Comment 2 Jessica Forrester 2016-08-23 23:32:44 UTC
merging to origin in https://github.com/openshift/origin/pull/10605

Comment 3 Yadan Pei 2016-08-24 08:20:08 UTC
Checked against origin-web-console(based on latest origin-web-console commit 'd24e068')


Now after adding envs with same name at BC environmenttab, edit/builds page shows all envs 

Move to VERIFIED


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