Bug 767479

Summary: Incorrect package count under system's packages
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:13:59 UTC Type: ---
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
Initial package count displayed as "Loaded 25 of total 240"
none
when I keep on loading the packages the count increases from total 240 and UI showing "Loaded 290 of 240 total"
none
pkg count is correct and once all loaded 'Load N more' link removed
none
pkg count is increasing correctly and showing 'Load 25 more' instead of Load 100 none

Description Sachin Ghai 2011-12-14 07:20:25 UTC
Description of problem:
I registered a system and trying load the packages on UI. I started loading the packages by clicking on "Load 25 more" option. Initially 25 packages were loaded from total of 240 packages. I keep on loading the count and suddenly UI were saying "Loaded 290 of 240 total".

This count needs to be corrected. 

Version-Release number of selected component (if applicable):
root@dhcp201-220 ~]# rpm -qa | grep katello
katello-0.1.135-2.el6.x86_64
katello-configure-0.1.31-2.el6.noarch
katello-glue-candlepin-0.1.135-2.el6.x86_64
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-0.1.23-3.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-cli-common-0.1.23-3.el6.noarch
katello-glue-pulp-0.1.135-2.el6.x86_64
katello-all-0.1.135-2.el6.x86_64
katello-glue-foreman-0.1.135-2.el6.x86_64
katello-common-0.1.135-2.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-certs-tools-1.0.1-2.el6.noarch
[root@dhcp201-220 ~]# 


How reproducible:
always

Steps to Reproduce:
1. Register a system
2. Select the system and on right pane under "Packages"  keep on loading the packages and check the count

  
Actual results:
Incorrect count of packages on UI

Expected results:
UI should show correct package count

Additional info:

Comment 1 Sachin Ghai 2011-12-14 07:22:34 UTC
Created attachment 546604 [details]
Initial package count displayed as "Loaded 25 of total 240"

Comment 2 Sachin Ghai 2011-12-14 07:26:00 UTC
Created attachment 546605 [details]
when I keep on loading the packages the count increases from total 240 and UI showing "Loaded 290 of 240 total"

Comment 3 Mike McCune 2012-01-26 19:38:28 UTC
mass move to CFSE product.

Comment 4 Brad Buckingham 2012-01-26 19:54:06 UTC
commit: a875ed04aba10372abbe86c9d2adb9a0c9897244

Updated so that the final count after all packages is Loaded X of X (e.g. Loaded 250 of 250).  In addition, removed the 'Load N More' link from the UI after all have been loaded.

Comment 5 Sachin Ghai 2012-02-13 11:58:46 UTC
Verified with following katello build:

katello-cli-0.1.53-1.el6.noarch
candlepin-0.5.8-1.el6.noarch
pulp-0.0.265-1.el6.noarch
katello-glue-candlepin-0.1.226-1.el6.noarch
katello-0.1.226-1.el6.noarch


Now UI showing correct count and 'Load N More link removed after all have been loaded.

Comment 6 Sachin Ghai 2012-02-13 12:00:07 UTC
Created attachment 561514 [details]
pkg count is correct and once all loaded 'Load N more' link removed

Comment 7 Sachin Ghai 2012-02-13 12:06:16 UTC
One observation related to this defect. 

'Load N More' link showing 'Load 100 More' default.  However in actual its increasing the default count to 25. Like initially total loaded rpms 100 and when you click 'Load 100 More', UI loads only 25. 

So I think 'Load 100 More' needs to be changed to 'Load 25 More'

@Brad, Hi Brad, Any comments on this ?

Comment 8 Brad Buckingham 2012-02-13 14:04:37 UTC
Sachin,  good catch!  That was a bug.  Fix just submitted with commit: c7be00cabebf3de3c381a918d84bea94c28f376e

Comment 9 Sachin Ghai 2012-02-16 08:40:48 UTC
Verified with following katello build:
katello-0.1.237-1.el6.noarch
katello-cli-0.1.54-1.el6.noarch
katello-glue-pulp-0.1.237-1.el6.noarch
pulp-0.0.264-1.el6.noarch


Now package count is increasing with count of 25.

Comment 10 Sachin Ghai 2012-02-16 08:42:08 UTC
Created attachment 562439 [details]
pkg count is increasing correctly and showing 'Load 25 more' instead of Load 100

Comment 12 Mike McCune 2013-08-16 18:23:26 UTC
getting rid of 6.0.0 version since that doesn't exist