Closed (fixed)
Project:
Version Control API
Version:
6.x-2.x-dev
Component:
Views integration
Priority:
Critical
Category:
Task
Assigned:
Reporter:
Created:
12 Nov 2010 at 19:40 UTC
Updated:
15 Apr 2014 at 22:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
marvil07 commentedanother related issue: #970256: Introduce additional fields on operations table for capturing user mappings
Comment #2
sdboyer commentedJust updating title, because we're also going to need a handler of sorts to actually do the data mapping. And I thought this was about that, not the views integration :)
Comment #3
sdboyer commentedTo be clear, the responsibility of this view handler is simply going to be using the uid (if non-zero) to produce a link to the user's profile page; if zero, then some sanitized form of the raw VCS data should be presented instead. That's gonna be a little complicated for git, unfortunately, since that author information is going to be in a separate table...but yeah.
The actual work of producing an accurate mapping that fills UIDs properly will be one of the outcomes of #965890: [meta] Revisit VersioncontrolAccount and bring it up to speed, the issue tizzo originally mentioned.
Comment #4
sdboyer commentedI'll take care of this next week.
Comment #5
marvil07 commentedtagging
Comment #6
marvil07 commentedpostponing until #970256: Introduce additional fields on operations table for capturing user mappings gets in, but maybe also after #979040: Make pluggable the process of mapping of raw vcs data to Drupal users
Comment #7
sdboyer commentedre: #6 - this is only dependent on #970256: Introduce additional fields on operations table for capturing user mappings, not #979040: Make pluggable the process of mapping of raw vcs data to Drupal users.
Comment #8
marvil07 commentedToday sdboyer explain me why #979040: Make pluggable the process of mapping of raw vcs data to Drupal users is not required. My concern was that other modules/plugins can be maintaining its mapping in other place, but pur implementation of plugins is going to me requiring the plugins to write their result on our operations tables.
Writing it here to avoid forgetting it, and also re-opening as the required issue was fixed.
Comment #9
tizzo commentedThis is done and working but Sam suggested that we want to display drupal usernames not git user.names for authors with an id.
Also this could be generalized to work with committers as well.
Commit: http://drupal.org/cvs?commit=458894
Comment #10
sdboyer commentedOh, we don't have it set for committers already? It should be. All of my recent decisions have been driving towards making author/committer architecturally identical specifically so that we can reuse things like this for both of them.
Comment #11
marvil07 commentedUntil we end up agreeing about what to store at {versioncontrol_operations}.author and committer, so the last patch assumed a git-like person inside the field, and that's git backend specific.
I suppose I going to link the related issue when it is created ;-)
Comment #12
marvil07 commentedthe related issue #988512: Properly track git's user.email and user.name as separate, first-class properties
but we need to revert that email filter on field handler view render since it is git specific
Comment #13
marvil07 commentedComment #14
marvil07 commented#988512: Properly track git's user.email and user.name as separate, first-class properties was fixed, and it was decided to store only emails for git backend at the operations table. So, we definitely need to change how git shows this overwritting the view, but that is going to be handled at #990644: Improve backend interaction with views and naturally is git backend specific, so the following patch does the work I expected it to do :-)
The patch:
BTW I am not showing the committer, since I in CVCS it would be redundant, so we should overwrite this behavior on views after #990644: Improve backend interaction with views.
Comment #15
sdboyer commentedHaven't looked at the patch yet, but it sounds good, at least. However, another way to handle author/committer in a way that'll be backend agnostic is to assume that committer is valid, but only show the data if it's different from the author. That means a single handler that grabs both fields, compares them, and decides whether to show just author or author + committer. We should also provide another handler that does that, it's not exclusive with what it sounds like marvil07 has in #14.
Comment #16
marvil07 commentedThen , IMHO we should provide another views field that do that with its own handler.
Comment #17
marvil07 commentedI can not upload patches to d.o :-( #997192: form cache broken on drupal.org due to broken memcache
But I have one new version for this: http://tmp.marvil07.net/0001-task-970244-Create-a-views-handler-to-map-o...
What is new:
Comment #18
marvil07 commentedd.o is healed!
Comment #19
sdboyer commentedLooks good, go ahead and commit. There are some typos, but I can fix them later. I'm considering picking nits on the attribution handler (we should maybe provide a UI that lets the user decide how the text gets structured), but it's not a big deal for now. Can open another issue later, if need be.
Comment #20
marvil07 commentedGreat, it's in: http://drupal.org/cvs?commit=465118
Comment #21
sdboyer commentedAwesome. Thanks.
Comment #22
sdboyer commentedWhoops, accidentally changed status.