Bug 1473643

Summary: When trying to add a duplicate class, no flash message is shown
Product: Red Hat CloudForms Management Engine Reporter: Milan Falešník <mfalesni>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: hkataria, jhardy, mkanoor, mpovolny, obarenbo, tfitzger
Target Milestone: GAFlags: mfalesni: automate_bug+
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: automate:ui
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-25 11:29:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Milan Falešník 2017-07-21 11:25:49 UTC
Description of problem:
As subject says, when trying to add a duplicate class in a namespace, the flash message is not shown. However the duplicate class is not created, which makes it just a consmetic error.

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

How reproducible:
always

Steps to Reproduce:
1. Create an automate namespace
2. Create a class (let's say "cls1")
3. Try creating a new class with the same name in the namespace

Actual results:
Class is not created, flash message not shown.

Expected results:
Class is not created, flash message is shown.

Additional info:

Comment 2 Greg McCullough 2017-07-21 13:03:33 UTC
Looks like we have the expected model validation in place: https://github.com/ManageIQ/manageiq/blob/master/app/models/miq_ae_class.rb#L14

Sending to UI team to review.

Comment 3 Milan Falešník 2017-07-25 11:29:20 UTC
Seems like it was unfixed for so long that even I forgot that I reported it 4 months ago :).

*** This bug has been marked as a duplicate of bug 1428424 ***