Closed
Bug 44664
Opened 26 years ago
Closed 25 years ago
Search: No feedback when no hits are found
Categories
(SeaMonkey :: MailNews: Message Display, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
Future
People
(Reporter: phil, Assigned: gayatrib)
Details
Attachments
(2 files)
Using 2000-07-06-09 commercial build on NT
1. Search Inbox for something which doesn't exist
2. Get "document done" in status bar, but no indication that no hits were found
Expected: some indication that a search happened, and nothing was found.
Seems related to a couple other bugs about reporting the # of hits, but this
makes it look (to me, anyway) like Search doesn't work.
Bug about tally of hits is bug #44054, which was futured.
I assumed tally of hits included "none found" when applicable, but guess it's
now a separate issue.
Comment 2•26 years ago
|
||
hmm..I don't think you meant bug 44054, but I can't find what bug you were
likely talking about.
In the UI meeting we had to discuss Search it was agreed:
If no matching search results are found:
1. The statusbar should display the text "No matches found"
2. The Results Thread Pane should display the text: "No results matching your
criteria were found."
1 is a must have, 2 is a nice to have.
Adding mail3 keyword so bug considered for 6.5
Keywords: mail3
Fix in hand. Posting patch. Waiting for review.
Status: NEW → ASSIGNED
Comment 9•25 years ago
|
||
Hi Gayatri, quick question for ya. When do we unregister this search results
listener interface that you implemented in JS? I see how we register the
listener on the search session. Do we need to unregister it when the search
window goes away?
| Assignee | ||
Comment 10•25 years ago
|
||
I wasn't really sure about this.
There is another listener, the datasource, that is also resgistered as a
listener--in setupDatasource() function of SearchDialog.js. But it was never
unregistered.
So I wasn't really sure if I'd have to explicitly unregister as a listener, or
if it happens automatically when the search window goes away.
Comment 11•25 years ago
|
||
It won't happen automatically actually. I think we should explcility unregister
your listener in the unload handler. What do you think?
| Assignee | ||
Comment 12•25 years ago
|
||
posting new patch unregistering both listeners in SearchDialog.js
| Assignee | ||
Comment 13•25 years ago
|
||
Comment 14•25 years ago
|
||
new patch looks great. sr=mscott
| Assignee | ||
Comment 15•25 years ago
|
||
Fix checked in.
Previously when there were no matches found in a search, the status did not say
anything.
Now it says "Searching...." while searching.
Says "No matches found" on an unsuccessful search.
And says "Document: Done" on a successful search--simultaneously
displaying results in the threadpane.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 16•25 years ago
|
||
in the future, you can you use class variables instead of globals?
basically, instead of
if (gIsSearchHit)
and
gIsSearchHit = true;
you can store it in a variable local to the notification class, and say
if (this.searchHit)
and
this.searchHit = true;
also, it's usually quite cheap to set a variable to a simple variable like true,
rather than test-and-set, so it's probably just as cheap to say
gIsSearchHit = true;
instead of
if (!gIsSearchHit)
gIsSearchHit = true;
| Assignee | ||
Comment 17•25 years ago
|
||
Thank you for the helpful tips alec. I will surely rememeber them for the
future. Would you like me to make these changes and re-checkin?
Comment 18•25 years ago
|
||
OK using nov28 commercial trunk builds. Mac OS 9.0, linux rh6.0, win98
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Browser → Seamonkey
Component: MailNews: Search → MailNews: Message Display
QA Contact: laurel → search
You need to log in
before you can comment on or make changes to this bug.
Description
•