Bug 217948

Summary: switching tabs between list and others causes package metada reread
Product: [Fedora] Fedora Reporter: Rahul Sundaram <sundaram>
Component: pirutAssignee: Jeremy Katz <katzj>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: smohan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-09 20:34:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rahul Sundaram 2006-11-30 21:06:25 UTC
Description of problem:

If you switch from list view to the other two as return back even immediately,
it causes a package metadata rereading. Pirut should cache this information and
not reread it unnecessarily. 

Additional info:

Also if you search for something in pirut and switch to any other view, the
search list is dropped. It might be better to have a explicit button for
clearing the search and retain it even if the user switches to another tab and
returns back

Comment 1 Jeremy Katz 2006-11-30 21:44:49 UTC
We do things this way because otherwise, we'd have a non-trivial amount of work
to figure out what changed in the other view and reflect it in the list/search.
 We could maybe plug in something to not need to unless you've changed
something, but not sure how workable that really is.

Comment 2 Rahul Sundaram 2006-11-30 21:59:58 UTC
Anything that user does in the search tab wouldnt affect the list view at all.
So switching to the search tab from the list tab and back should not cause any
metadata reread. 

In the browse tab, the user might have selected or unselected any packages but
unless the user has clicked the apply button, it shouldnt affect what the search
results or listing of packages. 

Its annoying that pirut rereads the metadata information and clears the search
results just because I switched views and did no package additional or removals
at all. 

Comment 3 Jeremy Katz 2006-12-01 01:24:29 UTC
(In reply to comment #2)
> Anything that user does in the search tab wouldnt affect the list view at all.
> So switching to the search tab from the list tab and back should not cause any
> metadata reread. 

It's not just reading metadata, though; it's calculating package state to show
the right thing as far as available vs installed vs being removed, etc.

> Its annoying that pirut rereads the metadata information and clears the search
> results just because I switched views and did no package additional orremovals
> at all. 

Doing the alternative ends up being a huge memory hit...  I've got some ideas on
how to make things better, but it's a matter of time to get to trying them.

Comment 4 Jeremy Katz 2007-04-09 20:34:40 UTC

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