Motivation: See a list of issues for the Ember and Ember_Support modules.

Eg, https://drupal.org/project/issues?projects=Ember%2C+Ember+Support

The "Projects" field description text says, "Enter a comma separated list of projects." My expectation when entering "Ember, Ember Support" is that only issues belonging to these two projects are listed.

However, additional projects that contain the text "ember" (eg, Membership Entity) are also included, which clutters up the list of issues.

Comments

drumm’s picture

In project_issue_handler_filter_issue_project::validate_project_strings:

      $query
        ->entityCondition('entity_type', 'node')
        ->entityCondition('bundle', project_project_node_types())
        ->fieldCondition('field_project_has_issue_queue', 'value', 1)
        ->propertyCondition('title', '%' . db_like($value) . '%', 'like');

If there are no side effects, the like can be taken out.

drumm’s picture

This is no longer reproducible in the same way, since www.drupal.org now uses Search API for issue queues, and this handler isn’t used. The equivalent code in ProjectIssueHandlerFilterSearchApiIssueProject::validate_project_strings() does an exact match instead of LIKE. #2244875: Project filter should not allow partial string search fixed this.

I did run into this when updating one of the Views for #3068539: Add psa.json API endpoint to support automatic updates.

  • drumm committed 026ede1 on 7.x-2.x
    Issue #2228449: Comma Separated list of projects should do exact title...
drumm’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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