Repos really are entities, like nodes - which means having a system name for them (and all the requirements system names have) is really not so sensible. Much better to have a nickname for them, analogous to a node's title. There's no reason we can't continue to load by name with such a change - just you'd no longer be guaranteed getting a single repo back if loading by name.

This'll make things a little easier for project/sandboxes on d.o, since right now we need to artificially namespace them all.

Comments

sdboyer’s picture

Gonna push this to sprint 9. It's all under-the-hood, anyway.

sdboyer’s picture

Assigned: Unassigned » marvil07

This'd be a good one for marvil07 to take, actually, if he's got time. Leaving in sprint 8 for now, will leave it up to him to delay if he wants.

marvil07’s picture

Version: 6.x-2.0-alpha1 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new2.12 KB

Agree about making it non-unique, but not really sure if we want to have name optional

Here a patch that do both things.

marvil07’s picture

StatusFileSize
new2.84 KB

test fix

Status: Needs review » Needs work

The last submitted patch, non-special-repo-names-v1.patch, failed testing.

marvil07’s picture

Status: Needs work » Needs review

test bot can not handle contrib testing with module dependencies :-/

sdboyer’s picture

Status: Needs review » Reviewed & tested by the community

Looks good here. Are we sure there aren't any cases where we use the name as a unique lookup? I can't think of any - the only one I remember is making the drush integration take names as arguments for the repo sync, but that's fine as it's designed to be able to handle multiple repos at once.

marvil07’s picture

Title: Make {versioncontrol_repositories}.name optional & non-unique » Make {versioncontrol_repositories}.name non-unique
Status: Reviewed & tested by the community » Fixed
StatusFileSize
new2.14 KB

Are we sure there aren't any cases where we use the name as a unique lookup?

After analyzing the output of git grep -C4 "name" I think there are not ;-)

Here the patch I committed without the hunk for making it optional, as discussed with sdboyer.

Status: Fixed » Closed (fixed)
Issue tags: -git phase 2, -git sprint 8

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

  • Commit 589041d on repository-families, drush-vc-sync-unlock by marvil07:
    task #1016646 by marvil07 | sdboyer: Make {versioncontrol_repositories}....

  • Commit 589041d on repository-families by marvil07:
    task #1016646 by marvil07 | sdboyer: Make {versioncontrol_repositories}....