Instead of having separate views, which aren't as feature-rich (e.g. #376658: Project search box not auto-complete when browsing by tag, etc), why not just add an "Issue tags" filter to the regular advanced search views:

http://d6.drupal.org/project/issues/search
http://d6.drupal.org/project/issues/search/drupal

E.g.

http://d6.drupal.org/project/issues-term/346

becomes:

http://d6.drupal.org/project/issues/search?tag=drupal.org+upgrade

As with the "Search for" filter, we could do this conditionally if comment_alter_taxonomy is enabled (although I don't know how to programatically set the vid correctly in the default view -- might be easy, just haven't thought about that).

Thoughts?

(Marking this as a d.o upgrade issue since it's something we can now easily fix on d.o after the D6 ugprade since it's all views).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aclight’s picture

I think that's a great idea. Unfortunately I won't have time to review or commit but feel free to do so yourself.

One potential problem: what if there were multiple vocabularies that were alterable on issues via CAT. How would the default view that comes with PI handle this? I guess it would just add them all to the view, right (though the issue of figuring out which vid to use could be problematic, as you point out).

dww’s picture

Status: Active » Needs review
FileSize
2.23 KB
29.58 KB

Yes, we just add them all as separate filters. And it's easy to do so -- we just add a filter for every vocabulary that's applied to issue nodes. I think that's a sane default. Any site that's defining additional vocabs on issue nodes and they don't want exposed filters for them can remove the filters from their views.

Two patches:

- Add a private helper function to project_issue.views_default.inc to programatically add these exposed filters to the two advanced search views.

- Change comment_alter_taxonomy to fix the links when you click on one of those term links, it constructs the appropriate per-project advanced search URL to filter by the term, and remove *all* of the views integration. ;)

Any objections?

dww’s picture

Status: Needs review » Needs work

At dinner (with webchick and others), there was wide-spread desire for a linkrot-preventing menu item that redirects you to the right place. Guess I'll have to work on that...

starbow’s picture

This sounds like a great addition.

dww’s picture

Status: Needs work » Needs review
FileSize
2.87 KB
33.76 KB
dww’s picture

Title: Instead of duplicating (incomplete) views, just add an "Issue tags" filter to advanced search? » Instead of duplicating (incomplete) views, just add an "Issue tags" filter to advanced search
hunmonk’s picture

Status: Needs review » Reviewed & tested by the community

found a few very minor code clarity issues which have been corrected. tested at d6.d.o, and all seems to work perfectly.

aclight’s picture

I'm still out of commission for the next few months. I just gave hunmonk and dww commit access. Unless Damien wants to review feel free to commit what you need to this module. I don't want to hold you up.

dww’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +needs drupal.org deployment

Cool, thanks aclight. Just committed to HEAD in both modules. I'll mark this fixed once it's deployed for real.

dww’s picture

Status: Needs work » Fixed
Issue tags: -needs drupal.org deployment

Status: Fixed » Closed (fixed)
Issue tags: -drupal.org upgrade

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