Bug 1378703

Summary: No need to show error about editing again when bc is deleted
Product: OKD Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: low    
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:45 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:
Attachments:
Description Flags
errorinfo.png none

Description Yanping Zhang 2016-09-23 06:59:04 UTC
Created attachment 1203996 [details]
errorinfo.png

Description of problem:
Access bc edit page, before do any changes on web console, delete the bc in cli, 2 errors pop up on the edit page:
1: This build configuration has changed since you started editing it. You'll need to copy any changes you've made and edit again.
2: This build configuration has been deleted.
There is no need to show the first error info on the page. This error is for the scenario when access bc edit page and update bc in cli.

Version-Release number of selected component (if applicable):
openshift v1.4.0-alpha.0+8134786-dirty
kubernetes v1.4.0-beta.3+d19513f
etcd 3.0.9

How reproducible:
Always

Steps to Reproduce:
1.Create app in project
2.Access bc edit page, before do any changes on web console, delete the bc in cli. Check the error info on bc edit page.
3.

Actual results:
2.Two errors show up:
  1: This build configuration has changed since you started editing it. You'll need to copy any changes you've made and edit again.
  2: This build configuration has been deleted.

Expected results:
2.Should only show one error: This build configuration has been deleted.

Additional info:

Comment 1 openshift-github-bot 2016-09-26 12:28:17 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/94481ba236c05b66463e37b3f1f4ffcc8de2c09d
Bug 1378703: No need to show error about editing again when bc is deleted

Comment 2 Yanping Zhang 2016-10-11 07:12:30 UTC
openshift v1.4.0-alpha.0+d6a4d98
kubernetes v1.4.0+776c994
etcd 3.1.0-alpha.1
Tested against the origin version above, access edit bc page and delete the bc in cli, there will be only one error shown on page now:"This build configuration has been deleted."
The bug has been fixed, so move it to Verified.