Closed Bug 247810 Opened 20 years ago Closed 20 years ago

Mozilla Update (update.mozilla.org) needs a Search Feature

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wolf, Assigned: ted)

References

()

Details

Attachments

(3 files, 3 obsolete files)

Pretty straight forward, filing this now that the site is up as it was futured
on my development list.

Search needs to search,
-- Author, Name, Description, etc..
Or at least there should be lists of extensions name/author to be able to find
an extension from its name. Currently I use a google search to find extensions :
http://www.google.com/custom?domains=update.mozilla.org&sitesearch=update.mozilla.org
How about listing All without the comments, and a compressed entry for each? e.g.

+-------------------------------------------------------------------------------+
| ChatZilla 0.9.64c                        Firefox 0.7-0.9+  [*****]  [Install] |
+-------------------------------------------------------------------------------+

Or something? :)
Assignee: nobody → psychoticwolf
i'm for a simple search field in a box upon or below the categories box.
OS: Windows XP → All
Hardware: PC → All
Severity: normal → enhancement
Blocks: 255707
No longer blocks: 255707
*** Bug 255707 has been marked as a duplicate of this bug. ***
Whiteboard: after-aviary1.0PR
Status: NEW → ASSIGNED
Whiteboard: after-aviary1.0PR
*** Bug 257232 has been marked as a duplicate of this bug. ***
Mozilla Update needs an alphabetical index. The "Categories:All" page dosn't
help to find an extension by name (unless the name starts with 'A'). The "jump
to:" links in this category should be indexed by letter, not by page as it is now.

A search tool is also necessary, but is more heavy on the server and most
searches would be not required if there was an index.
*** Bug 257345 has been marked as a duplicate of this bug. ***
As a workaround one can use the following bookmark:

URL: http://www.google.com/search?&q=%s+site%3Aupdate.mozilla.org&btnG=Search
Keyword: mozupdate

This way, all I have to do to find the BiDi UI extension is type "mozupdate
bidi". Works like charm :-)

Prog.
Whiteboard: Workaround in comment #8
*** Bug 261255 has been marked as a duplicate of this bug. ***
*** Bug 262632 has been marked as a duplicate of this bug. ***
Search option is definately a need. Searching through google is pointer, cache
is not always update, besides, it's unfortunate to say that google search our
content better than we do. 
This will be done, no further evanglism comments are needed, thanks. :-)
Status: ASSIGNED → NEW
*** Bug 266515 has been marked as a duplicate of this bug. ***
Assignee: psychoticwolf → cst
Whiteboard: Workaround in comment #8 → Workaround in comment #8 [cst: active]
Attached file search.php
What I have so far.  This is NOT for checkin.
See bug 256972

You reuse things like $_GET["rating"] instead of the variable that you already
retrieved it into.

If the purpose of the first query is to merely get the total number, it should
be a select count(*)

I am not sure what you're trying to do with all those
   eval("\$sel".$_GET["rating"]." = 'selected';");
statements.  How about some comments in there and some whitespace.

Move your javascript display block/none into a function instead of having it
inline.  Make it reusable by passing in the ID and 'show'/'hide'

Character limits on the text boxes

What is an "update" that you're searching for?

shouldn't it be "selected='selected'" for an option?

Why are $sql2 and $sql3 separate?  Can't they be part of the initial query?

Use a page-wide stylesheet instead of inline styles.

(In reply to comment #15)
> I am not sure what you're trying to do with all those
>    eval("\$sel".$_GET["rating"]." = 'selected';");
> statements.  How about some comments in there and some whitespace.
That code shouldn't be used by anyone else (or even me, when I have time to
clean this up).  It's an ugly hack to make the select boxes have the right item
selected when you load the page.

> What is an "update" that you're searching for?
As far as I can tell, we have extensions, themes, and updates.  I don't know
what updates actually are.
(In reply to comment #16)
> (In reply to comment #15)
> > I am not sure what you're trying to do with all those
> >    eval("\$sel".$_GET["rating"]." = 'selected';");
> > statements.  How about some comments in there and some whitespace.
> That code shouldn't be used by anyone else (or even me, when I have time to
> clean this up).  It's an ugly hack to make the select boxes have the right item
> selected when you load the page.

I understood that part.  I'm just not sure I like the HTML it generates.

> 
> > What is an "update" that you're searching for?
> As far as I can tell, we have extensions, themes, and updates.  I don't know
> what updates actually are.

The site hosts updates, but they're updates of themes and extensions and that's
what the web service is for.  If you're manually looking to see if there is an
update out for something you've downloaded, you'd still search for an E or a T.
If I may say something about the html, please use lowercase, now its mixed. Both
the tags and the attributes. Same with the quotation, sometimes it is double
quotes, sometimes single quotes.

And instead of using font tags, use CSS to style the text.
$sql2 and $sql3 are seperate intentionally. $sql2 exists because $sql itself and
MySQL in general, doesn't handle the sorting method required for the
extension/theme page listings. Touching $sql usually results in more bugs than
anything beneficial, therefore it is *not* recommended.

Since the code around the eval()s clearly states its a hack and not for
production use. I don't think anybody cares whether the HTML it creates is nice
or not.
(In reply to comment #19)
> $sql2 and $sql3 are seperate intentionally. $sql2 exists because $sql itself and
> MySQL in general, doesn't handle the sorting method required for the
> extension/theme page listings. Touching $sql usually results in more bugs than
> anything beneficial, therefore it is *not* recommended.

How about some comments in the code, or better named variables, so that people
can figure out what's going on?  

*** Bug 270695 has been marked as a duplicate of this bug. ***
*** Bug 270770 has been marked as a duplicate of this bug. ***
Add update.mozilla.org to Summary to make this bug more discoverable
Summary: Mozilla Update needs a Search Feature → Mozilla Update (update.mozilla.org) needs a Search Feature
Priority: -- → P1
Whiteboard: Workaround in comment #8 [cst: active] → [cst: active] [need-beta] Workaround in Comment #8
Bulk Moving Web Site bugs to new component.
(Filter: massumowebsitespam)
Component: Update → Web Site
Product: mozilla.org → Update
Version: other → unspecified
Target Milestone: --- → 1.0
Attached file quicksearch.php (obsolete) —
Sorry, I dont have time to work on this any more.  Quicksearch.php is a
somewhat stripped-down version of search.php that doesn't offer the advanced
search features.
Assignee: cst → psychoticwolf
Whiteboard: [cst: active] [need-beta] Workaround in Comment #8 → [need-beta] Workaround in Comment #8
Severity: enhancement → blocker
Whiteboard: [need-beta] Workaround in Comment #8
I suggest as one of several views one like
http://texturizer.net/firefox/extensions/alpha.html
which means: showing the names of all extensions on one single webpage.
That allows a fast overview.
Andreas Borutta
Severity: blocker → major
Target Milestone: 1.0 → 1.1
Assignee: psychoticwolf → nobody
Make the results an unordered list consisting of title (linking to Moreinfo), a
line break, and then the first 250 characters of the summary.  Then you'll get
my signoff.  At this point, a quick and clean result list will suffice.
I noticed both attachments seem to use their own form input fields - how does
this relate to the search box in UMO page header, which lets you select "entire
site", "extensions" and "themes"? And what's meant with "entire site" -
extensions+themes, or mozilla.org?
I have a slightly tweaked patch that uses the header search bar to hook up to
this search.  I'll tweak the results format and post it in a bit.
Stripped to a minimum, but useful.
Assignee: nobody → ted.mielczarek
Attachment #167446 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #169962 - Flags: first-review?(psychoticwolf)
Change the header to use this new search.  Doesn't fill in the search fields
with the current query params, however.
Attachment #169963 - Flags: first-review?(psychoticwolf)
Blocks: 277851
Attachment #169963 - Flags: first-review?(bugtrap) → first-review?(Bugzilla-alanjstrBugs)
Attachment #169962 - Flags: first-review?(bugtrap) → first-review?(Bugzilla-alanjstrBugs)
Comment on attachment 169962 [details]
Even more stripped down quicksearch.php

This doesn't seem to be using the global header, but it does have the footer.
Attachment #169962 - Flags: first-review?(Bugzilla-alanjstrBugs) → first-review-
Cleaned up extra header cruft.	Also changed results so each results div has
class="searchresult"
Attachment #169962 - Attachment is obsolete: true
Attachment #171519 - Flags: first-review?(Bugzilla-alanjstrBugs)
Comment on attachment 169963 [details] [diff] [review]
inc_header.php changes to use quicksearch.php for searching

Line breaks between the Options, please.
Attachment #169963 - Flags: first-review?(Bugzilla-alanjstrBugs) → first-review-
Slight cleanup
Attachment #169963 - Attachment is obsolete: true
Attachment #171520 - Flags: first-review?(Bugzilla-alanjstrBugs)
Attachment #171520 - Flags: first-review?(Bugzilla-alanjstrBugs) → first-review+
Attachment #171519 - Flags: first-review?(Bugzilla-alanjstrBugs) → first-review+
Checking in mozilla/webtools/update/quicksearch.php;
/cvsroot/mozilla/webtools/update/quicksearch.php,v  <--  quicksearch.php
initial revision: 1.1
done
Checking in mozilla/webtools/update/core/inc_header.php;
/cvsroot/mozilla/webtools/update/core/inc_header.php,v  <--  inc_header.php
new revision: 1.7; previous revision: 1.6
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Needed on Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Branch:
Checking in mozilla/webtools/update/core/inc_header.php;
/cvsroot/mozilla/webtools/update/core/inc_header.php,v  <--  inc_header.php
new revision: 1.6.2.1; previous revision: 1.6
done
Checking in mozilla/webtools/update/quicksearch.php;
/cvsroot/mozilla/webtools/update/quicksearch.php,v  <--  quicksearch.php
new revision: 1.1.2.1; previous revision: 1.1
done
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: