Project:Apache Solr Search Integration
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The facet and unclick link code is a bit ugly - I think we can separate things a bit to make the code easier to understand

Comments

#1

Status:active» needs review
AttachmentSizeStatusTest resultOperations
facet-cleanup-463900-1.patch9.85 KBIgnored: Check issue status.NoneNone

#2

Patch seems to work well.
By moving the $count argument of theme_apachesolr_facet_item() after $path and $options, it would be more consistent with theme_apachesolr_unclick_link().

#3

revised patch per suggestion.

AttachmentSizeStatusTest resultOperations
facet-cleanup-463900-3.patch9.85 KBIgnored: Check issue status.NoneNone

#4

While reviewing the patch, I uncovered this bug: http://drupal.org/node/495012

Which is not related to the patch itself.

The patch itself looks okay, I don't think it will be totally intuitive for most themer. For instance ,we have apachesolr_facet_item and apachesolr_unclick_link. Should it be apachesolr_add_facet_link and apachesolr_remove_facet_link?

Anyway, here is another one with a little bit of docs in apachesolr.module as a starting point.

AttachmentSizeStatusTest resultOperations
facet_cleanup-463900-4.patch11.05 KBIgnored: Check issue status.NoneNone

#5

for consistency, changing apachesolr_facet_item to apachesolr_facet_link, but I think longer names are unwieldy.

Also, making the signature of apachesolr_sort_link match.

AttachmentSizeStatusTest resultOperations
facet_cleanup-463900-5.patch12.69 KBIgnored: Check issue status.NoneNone

#6

I didn't test this last patch, but if that's all you changed I give it a thumbs up.

#7

Status:needs review» fixed

committed to 6.x (note I added the change to the REAME manually - I mised it in the last patch)

#8

#9

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here