Closed Bug 430000 Opened 16 years ago Closed 16 years ago

Only show files that exist by default; search all downloads for search

Categories

(Toolkit :: Downloads API, defect)

defect
Not set
normal

Tracking

()

VERIFIED WONTFIX

People

(Reporter: Mardak, Assigned: Mardak)

References

Details

Attachments

(5 files, 1 obsolete file)

From bug 400495 comment 141:
"the download manager should auto-delete UI-items where the file has been removed or renamed, but keep the backing-store item, at least its URL and download date, in the search corpus. This would relieve my Clean Up or Clear List needs."

One way to achieve this is only showing the download items that have files that exist by default but keep the history around like normal.

However it would regress privacy bug 392097 where we used to only show 7 days of downloads by default and when users searched, a lot more downloads appeared.
Attached patch v1 (obsolete) — Splinter Review
1) Move clear list logic into a global function so it can be replaced easily by extensions
- Don't use nsIDM clear list because we're always showing a filtered list
- Get rid performCommand for non-item stuff
- No need to worry about performCommand calling clearList multiple times

2) Refactor download.file.exists to get rid of the oddball case with explicit {} blocks
- Reuse logic for filtering list

3) Make default empty search do "exists" search
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #316772 - Flags: review?(sdwilsh)
In terms of testcases.. most tests with default lists will break because we're filtering stuff out..

Perhaps I should make a pref "download.manager.onlyShowExists" and set it to false for tests..
Blocks: 400495
Attachment #316772 - Flags: ui-review?(beltzner)
I'm a little worried here about privacy concerns.

I like the idea that it will only show files that exist by default. But it needs to be made very very clear to the user that this is what is happening and how exactly you remove them from the list.

For example if the user uses the new "select all" and deletes these files, the user will expect all files from the download manager will have been cleaned up. Will this happen here?
Would this just completely remove the ability to browse your download history unless you could think of a search term? Sometimes I just need to browse to find something.

At the very least, I think something like this should wait until Download browsing is available in the Library.
Thinking about all the problems with this, the most appropriate solution seems to add a highly visible toggle (perhaps a button), that was something like "Show moved/deleted downloads".
Attachment #316772 - Flags: ui-review?(beltzner)
Attachment #316772 - Flags: review?(sdwilsh)
Attached image screenshot of v2
Downloads without their file get shown in gray.
Attachment #316838 - Flags: ui-review?(beltzner)
I quite like the idea of this patch v2 in terms of the download manager very simply expressing useful information.

However this blocks bug 400495, I assume the idea was for this bug to mitigate that bug. I can assure you that this v2 will not do so in the eyes of everyone who has argued for a clear list button to be restored on that bug. Regardless, good work, it'd be nice to have something like that for RC1 :).
Madhava suggested changing the icon as well.. (should the icon remain 50% faded if the user has it in the selection? Currently the text switches to white like any normal selected text... but I suppose leaving it faded lets the user know the currently selected one's file is deleted.)
Attached patch v2Splinter Review
Changes from v1..
- add browser.download.manager.filterDeleted that defaults to true
- first show filtered results and if there's nothing, show all results
- show deleted downloads as graytext
- cache "deleted" to do above as well as not needing to check each time
- .9 -> .96 to do 25 instead of 10.. but now that I think about it, chunk size is 3.. so that's 3*10 vs 3*25... I might switch it to something smaller....
-
Attachment #316772 - Attachment is obsolete: true
Attachment #316841 - Flags: review?(sdwilsh)
Oh also, if users delete stuff from the list and there's nothing left, show the deleted files.
Attached image screenshot of v2
Default list shows files that still exist.. seems like I don't keep much other than what I download over the previous version ;)

https://build.mozilla.org/tryserver-builds/2008-04-21_10:37-edward.lee@engineering.uiuc.edu-filter.retry/
Testing the build you just linked to:

* Still very concerned about privacy, if an item disappears off the download manager, then the user will assume it's cleaned up. Maybe this will eventually be discovered by most users, but it'll be an unwelcome learning curve for many

* Difficult to read grayed text, at least on Windows, the Size, the URL, the download competition and all search results. I have better than normal eyesight (with my glasses on hehe) and my eyes start to strain quite a bit after only trying to read information for a little bit of time.

* First search result is impossible to read unless selecting window, result is white text with a very light brown selection
Attachment #316841 - Flags: review?(sdwilsh)
Comment on attachment 316838 [details]
screenshot of v2

Graytext is bug 427179.
Attachment #316838 - Flags: ui-review?(beltzner)
Another comment I'd like to make from testing, the general idea is to display a nice clear list. This does that right up to the point where you delete/move your last items. As a friend said testing this build out:

"clear download list = clean hdd = clean mind"

Because that's how his and a lot of other peoples thought processes worked, but the moment he cleared old downloads lying around (which this build helped him find), the whole history showed and it became an unusually long list again, making him want to clear list and remove the whole download history.

Just trying to input as much as possible to find the best solution :).
Attached image History item showing
Friend found a bug with this build, STR:

1) Download list only contains history items
2) You download an item that is in the history
3) You open download manager and see 2 results, the new download and the history item
(In reply to comment #14)
> Another comment I'd like to make from testing, the general idea is to display a
> nice clear list. This does that right up to the point where you delete/move
> your last items. As a friend said testing this build out:
> 
> "clear download list = clean hdd = clean mind"

This is important. It may be that Search should relieve us from manually cleaning up filesystem data. Just make a big pile of files and always search. That works for the web because you can't possibly clean up the web.

But one's filesystem is different in two ways: scarcity (you will run out of space or inodes if you download enough stuff including big files); cognitive model for "My stuff" that you can see in the OS filing UI.

> Because that's how his and a lot of other peoples thought processes worked, but
> the moment he cleared old downloads lying around (which this build helped him
> find), the whole history showed and it became an unusually long list again,
> making him want to clear list and remove the whole download history.
> 
> Just trying to input as much as possible to find the best solution :).

This is great input. If the user has a "spring cleaning" model (for any value of "spring") then the list going from one non-deleted item to all deleted is not good for that fresh feeling obtainable in Firefox 2.

/be
What's the thought process here?  Why is this better?  This means there's all sorts of invisble-unless-you-search data with privacy implications.

I'd rather just nuke the entries from the download manager if the file is gone.  The use case that this bug enables is a much better fit for the Library style of viewing/querying, and the Places DB already has that information.
I agree with mconnor, this bug is trying to have it both ways where the conflicts between the two ways (Search knows all; Clear cleans up) are too great. I'm sorry I suggested it over in bug 400495. Ed, thanks for exploring the idea, it helped to illuminate the issues.

/be
I.e., I'm fine with WONTFIX'ing this. INVALID, even. Ed?

/be
WONTFIX as is. Perhaps something more like attachment 316629 [details] of bug 429862 would be reasonable where search only looked through things listed in that view with one view being "only files that exist"
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: