Created attachment 1344425 [details] Screenshot Description of problem: Please see attached screenshot. There are only 2 orders in the list but on the left side in navigation pane, it is showing count "3". Version-Release number of selected component (if applicable): CFME 5.9.0.4 How reproducible: Believe 100% Steps to Reproduce: 1.Create some service in OPS UI 2.Login to Service UI and order the service 3.Check number of orders in the orders pane. Actual results: count is off by 1 Expected results: Count should be accurate Additional info:
Could you please provide an appliance for us to look at?
Thanks. Looking that this, the API is saying there are 3 orders, check here: https://10.8.197.199/api/service_orders Digging around, there are 3 orders: https://10.8.197.199/ui/service/orders/1 https://10.8.197.199/ui/service/orders/2 https://10.8.197.199/ui/service/orders/3 Now, 3 doesn't show up, but I can access it. But, something looks odd with that order (there is nothing there). This *seems* to be a bug, BUT it's not with the SUI; we just display the info that the API returns...and the API is telling us there are 3 orders. Going to send this to Greg M for him to take a look.
*** Bug 1508112 has been marked as a duplicate of this bug. ***
*** Bug 1509226 has been marked as a duplicate of this bug. ***
My understanding is the Service UI creates a cart for the user on startup. That would be 1 cart per user/tenant. If multiple users or and user switches to a new tenant they would get a new cart created and the old cart would still be available in the db. Could this account for it? Do you have an appliance I can connect to and review the current state? My understand is that this is not causing any issues, correct?
Created attachment 1347438 [details] Service UI - Service Order list Clarified with Kedar that the issue is the Service UI count is including all Service Order instances regardless of the state of the order. In the attached screenshot you can see that 3 service_order instances exist in the database with a state of "ordered" and one is in the state "cart" which represents the current Service UI cart object. The count next to "My Orders" list 4 but only includes the 3 "Ordered" instances. My guess is the ServiceUI should be excluding the current "cart" service_order from this count. Sending to Service UI to review.
Ok chewing on this, feels familiar, shouldn't be long to fix. ⚔️
@Kedar, thanks for noticing this, looks like we were not correctly building the query to include the filter "status=ordered" so yaaaaah you were seeing that mystery cart item, check the pr for the fix! https://github.com/ManageIQ/manageiq-ui-service/pull/1220