Bug 1377759

Summary: self-service UI allows duplicate items in cart
Product: Red Hat CloudForms Management Engine Reporter: Josh Carter <jocarter>
Component: UI - OPSAssignee: Martin Hradil <mhradil>
Status: CLOSED CURRENTRELEASE QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: bascar, cpelland, dclarizi, hkataria, jhardy, jocarter, mhradil, mpovolny, nachandr, obarenbo, pbuchan, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0   
Hardware: All   
OS: All   
Whiteboard: ssui
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1380170 1384693 (view as bug list) Environment:
Last Closed: 2017-06-12 16:23:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Feature
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1380170, 1384693    

Description Josh Carter 2016-09-20 14:35:39 UTC
Description of problem:

In the self-service portal UI after filling in the fields on the service dialog and clicking the "Add to Shopping Cart" button the screen stays on the filled out service dialog and the user is able to click the "Add to Shopping Cart" button again and again adding a duplicate request that will fail. In the operations portal the screen switches to the requests view after submitting a filled in service diaglog.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 8 CFME Bot 2016-09-30 14:22:16 UTC
New commit detected on ManageIQ/manageiq-ui-self_service/master:
https://github.com/ManageIQ/manageiq-ui-self_service/commit/35f5898d21e96ff64446a89239a781c4609b6b62

commit 35f5898d21e96ff64446a89239a781c4609b6b62
Author:     Martin Hradil <mhradil>
AuthorDate: Thu Sep 29 15:35:13 2016 +0000
Commit:     Martin Hradil <mhradil>
CommitDate: Thu Sep 29 15:35:17 2016 +0000

    ShoppingCart - add duplicate detection
    
    this keeps each item's data in the cart too, and runs duplicate detection on every shopping cart change
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1377759

 client/app/services/shopping-cart.service.js | 37 ++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Comment 12 Nandini Chandra 2017-03-08 23:40:27 UTC
Verified in 5.8.0.3