Right now, the {versioncontrol_operations} table contains author, committer, and uid fields. We're going to need to expand that in order to build out proper commit log listings, which means turning uid into author_uid and adding a committer_uid field. That'll also mean some changes to the entity classes (just updating property names, CRUD, etc.).

Comments

marvil07’s picture

right, this make my mind go back to the moment I though that making a DVCS module was not such a bad idea... maybe we want to go in that way instead of hardcode again(1st time was setting committer and author fields on operations table) main vcs api?

marvil07’s picture

Status: Needs work » Active

moving status as documentation

sdboyer’s picture

Status: Active » Needs work

Yeah, I was toying with that idea, too. There are some ways in which it might be better, though it does seem like it'd end up doing some crazy things to our schema. We'd also need to introduce some intermediary classes, certainly on the controller side and possibly on the entity side, that implement the special logic for a dvcs vs. a cvcs.

These fields are hardly the worst of it, though - really, #879600: Meta: introduce an activity stream separate from commit logs is a much bigger motivator to consider a split like that.

/me ponders

marvil07’s picture

marvil07’s picture

Status: Needs work » Active
sdboyer’s picture

Status: Active » Needs review
StatusFileSize
new7.82 KB

Patch attached. It breaks some of the account status tests, and some things in the account status module. Which I don't really care about, except that it...yknow, breaks tests. Probably much faster for you to fix it, marvil07 ;)

eliza411’s picture

Issue tags: +git sprint 5

Tagging for consideration in git sprint 5

marvil07’s picture

Status: Needs review » Needs work

@sdboyer: The patch on #6 do not really change our schema, and removes a hook_update_N(), are you sure you attached the right patch? (I do not see the relation with your propose at #0)

sdboyer’s picture

StatusFileSize
new7.82 KB

Sorry, I posted a reversed patch. Here's the proper one.

marvil07’s picture

marvil07’s picture

Status: Needs work » Needs review
Issue tags: +versioncontrol account refactor
marvil07’s picture

StatusFileSize
new13.74 KB

The patch grew a little, but tests are passing now ;-)

marvil07’s picture

StatusFileSize
new12.09 KB

I decoupled one problem that is not really related with this issue and commit it directly(since the bug it started after another minor commit I did).

Then I make this patch, on top.

marvil07’s picture

Title: Introduce additional fields for capturing user mappings » Introduce additional fields on operations table for capturing user mappings
Status: Needs review » Closed (fixed)
sdboyer’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -git phase 2, -git sprint 4, -git sprint 5, -versioncontrol account refactor

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

  • Commit ebd9f64 on repository-families, drush-vc-sync-unlock by marvil07:
    task #970256 by sdboyer, marvil07: Introduce additional fields on...

  • Commit ebd9f64 on repository-families by marvil07:
    task #970256 by sdboyer, marvil07: Introduce additional fields on...