Closed Bug 470255 Opened 16 years ago Closed 16 years ago

Searching for "community" and/or "design" doesn't produce results

Categories

(Websites :: communitystore.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: abuchanan)

References

()

Details

Attachments

(1 file)

* Make naming the design required * Write script to take the current naming scheme for designs with no name and insert the same name into the database, which will fix the search problem.
Target Milestone: --- → 2.1
Also need to remove all logic that displays 'Community Design #' when there is no design name. (We could leave it because it would still work once all the designs do have a name, but I don't want unused code lying around)
Assignee: nobody → buchanae
If SQL or PHP needs to be run for this bug, please add it (or a link to the bug) to https://wiki.mozilla.org/CommunityStore:2.1ITUpdates
Attached patch patch v1Splinter Review
Hey, Here's a patch for the code changes. I'm waiting on getting an updated DB dump to write the script that changes existing empty design names.
Attachment #381324 - Flags: review?(rdoherty)
Comment on attachment 381324 [details] [diff] [review] patch v1 Looks good, just missed the page title when viewing a design. (controllers/gallery.class.php line 187) Add that and it's good to go!
Attachment #381324 - Flags: review?(rdoherty) → review+
Assignee: buchanae → steven
Reassigning back to Alex as he has a patch for this.
Assignee: steven → buchanae
r29763 checks in patch v1 + comment #5
Here's the SQL to change the missing design names: UPDATE uploads SET designname=CONCAT('Community design #', id) WHERE designname = ''; If it looks good to you, I'll add it to the wiki and close this bug. Thanks. The transcript, mysql> select count(*) from uploads where designname = ''; +----------+ | count(*) | +----------+ | 196 | +----------+ 1 row in set (0.01 sec) mysql> update uploads set designname=concat('Community design #', id) where designname = ''; Query OK, 196 rows affected (0.01 sec) Rows matched: 196 Changed: 196 Warnings: 0 mysql> select count(*) from uploads where designname = ''; +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (0.00 sec) mysql> select id, designname from uploads where designname like 'Community design%%' limit 5; +-----+-----------------------+ | id | designname | +-----+-----------------------+ | 142 | Community design #142 | | 143 | Community design #143 | | 128 | Community design #128 | | 129 | Community design #129 | | 61 | Community design #61 | +-----+-----------------------+ 5 rows in set (0.00 sec)
SQL looks good, just tested it.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
they haven't. justdave is running them now.
15:35 <@justdave> Query OK, 196 rows affected (0.01 sec) 15:35 <@justdave> Rows matched: 196 Changed: 196 Warnings: 0
Verified FIXED; weird that one design was already showing up in comment 11, before the SQL was run. All the URLs in comment 0 are now showing results.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: