Closed (fixed)
Project:
Version Control API
Version:
6.x-2.x-dev
Component:
API - Entity Controllers
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
28 Sep 2011 at 16:08 UTC
Updated:
15 Apr 2014 at 22:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Niklas Fiekas commentedPlease review.
Edit: Ah, the test request is postponed.
Comment #2
sdboyer commentedLookin pretty good here, except:
Not quite right here - its' not a question of whether the backends exist (they will), it's a question of whether the backends define their own type of repository controller. So we need to check each backend's value for $backend->classesControllers['repo'] == 'VersioncontrolRepositoryController';
Comment #3
Niklas Fiekas commentedRerolled the patch according to your comment.
Comment #4
sdboyer commentedOnly attach a condition if $non_default_backends is actually non-empty. Otherwise, we see this fun:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: SELECT base.repo_id AS repo_id, base.name AS name, base.vcs AS vcs, base.root AS root, base.authorization_method AS authorization_method, base.updated AS updated, base.update_method AS update_method, base.locked AS locked, base.data AS data, base.plugins AS plugins FROM {versioncontrol_repositories} base WHERE (base.repo_id IN (:db_condition_placeholder_0)) AND (base.vcs NOT IN ()) ; Array ( [:db_condition_placeholder_0] => 1 )Comment #5
Niklas Fiekas commentedAs discussed we can get around that by converting NOT IN to IN. All tests passing for me, now :)
Comment #6
sdboyer commentedYep, passing for me too. Good enough for me, I'm committing this.
Comment #7
Niklas Fiekas commentedCool, thanks.