#224 closed enhancement (fixed)
Attach changeset to Code Review
Reported by: | Tim DeFoggi | Owned by: | Cinc-th |
---|---|---|---|
Priority: | normal | Component: | PeerReviewPlugin |
Severity: | normal | Keywords: | |
Cc: | alexhalf@…, kmacinni@…, jgeller@…, sam@…, Timothy Reaves, Marcus Lindblom, Ryan J Ollos | Trac Release: | 0.11 |
Description
It would be nice to have the ability to attach a changeset to a code review. This way it will automatically pull in all the files that were changed and the line numbers in to the code review.
Attachments (0)
Change History (31)
comment:1 Changed 18 years ago by
Trac Release: | → 0.8 |
---|
comment:2 Changed 18 years ago by
As an extension it'll be usefull to enter several files or even directory to make a full review (no need to enter the lines), for example for a review of a whole component
So at least a changeset will be A LOT usefull ! So I vote for this enhancement
comment:3 Changed 17 years ago by
Owner: | changed from Team5 to sontek |
---|---|
Priority: | normal → high |
Severity: | normal → major |
Trac Release: | 0.8 → 0.10 |
This is a great idea
comment:4 Changed 17 years ago by
Cc: | alexhalf@… added; anonymous removed |
---|
comment:5 Changed 16 years ago by
Has anyone made any progress on this ticket? Is anyone planning to? I've seen this mentioned as a blocker to people using this plugin in a few places (e.g. here); it is certainly the main problem I would have with using it.
From a quick look at the code, the work required to get a useable solution shouldn't be very hard. Here's what I propose. We simply add a "create review from changeset" option to the "create new code review" page, which has two user inputs: a text box for the revision number, and a "add files from this changeset" button. When the user presses the button, the data for that changeset is retrieved and entered in the page. In peerreviewplugin/branches/2.2-dev/codereview/peerReviewNew.py, it looks like the data would be added as is done around lines 89 and 144, and changeset data could be retrieved using methods from here
repos.get_changesets(old,new)
With line numbers worked out as _content_changes
here.
Indeed, line numbers would be optional, and a first step would be just to retrieve the file names. This would give minimal working functionality, and quickly. There are a few things I don't know until I try it:
- What to do if (and whether to allow) the user adds data from multiple changesets? Should the diffs merge?
- How/whether to link a review back to the changeset it was reviewing.
- How well it would work with non-svn repositories
I only installed the PeerReviewPlugin earlier today so I'm no expert, and I'm not sure if this is a reasonable design. Any thoughts?
comment:6 Changed 16 years ago by
I'm very interested in this feature aswell. Is it possible to resolve attaching changeset to code review in any way ?
comment:7 Changed 16 years ago by
Cc: | kmacinni@… added |
---|
comment:8 Changed 16 years ago by
Cc: | jgeller@… added |
---|
comment:9 Changed 16 years ago by
Cc: | sam@… added |
---|
I just came across this module and I was hoping that it would have this particular feature.
sontek, if you don't have time to implement it yourself perhaps you could give some guidance as to where in the code someone would start trying to make a patch?
comment:11 Changed 16 years ago by
Cc: | Timothy Reaves added |
---|
comment:13 Changed 16 years ago by
Priority: | high → highest |
---|---|
Severity: | major → critical |
this would be definitely a big plus to attach one or more changesets. or do it the other way round: while browsing change sets it is possible to create code reviews, or annotate these changesets.
comment:14 follow-up: 18 Changed 16 years ago by
see #1553, which i marked as duplicate:
To really work with the review requests, it would make much sense to add the functionality of adding such requests to the changelog and diff view and the source browser. These are the places where usually a review request appears: during looking the new changes someone made. So it would be best if from there on one could add them
comment:15 Changed 16 years ago by
How about creating a review for a given ticket, and the plugin automatically retrieves all of the changesets commited against the ticket and uses that info for the review.
comment:16 Changed 16 years ago by
Cc: | Marcus Lindblom added |
---|
I just found this and was hoping for that too. (Automatic link with changeset, possibly ticket related.)
One could also imagine a workflow where each new changesets gets added in a review queue, then one creates a review based on one or more changesets.
comment:17 Changed 15 years ago by
Cc: | Ryan J Ollos added |
---|
comment:18 Changed 15 years ago by
Replying to anonymous:
see #1553, which i marked as duplicate:
To really work with the review requests, it would make much sense to add the functionality of adding such requests to the changelog and diff view and the source browser. These are the places where usually a review request appears: during looking the new changes someone made. So it would be best if from there on one could add them
Really most useful feature for me too. Current plugin functionality is useless for most developers as review changset is the most standard task for review. I also agree with functionality to create a CodeReview task from source browser or based on a ticket(all ticket`s changeset).
comment:19 Changed 15 years ago by
There is a new plugin that looks like it may address this issue. Take a look at CodeReviewPlugin.
comment:20 Changed 13 years ago by
Owner: | changed from sontek to Marc |
---|
comment:21 Changed 12 years ago by
Owner: | changed from Marc to Olemis Lang |
---|
comment:22 Changed 10 years ago by
I guess this plugin is now dead? Was hoping to use it. :-(
Would have been quite nice!
comment:23 Changed 8 years ago by
Priority: | highest → normal |
---|---|
Severity: | critical → normal |
comment:24 Changed 7 years ago by
Owner: | Olemis Lang deleted |
---|
comment:25 Changed 5 years ago by
Owner: | set to Cinc-th |
---|---|
Status: | new → accepted |
comment:31 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
It is now possible to create a review directly from a changeset page. The files referenced in the changeset are automatically pulled into the created review.
During the code review one may comment using a diff view as usual. Maybe in the future commenting on the changeset page will be implemented. If so that and other enhancement will be tracked in separate tickets.
I'd like to add my vote for this - it's impractical to enter each range of changed lines in each file. The changeset already has this information. Even better than a changeset might be to be able to select a range of revision numbers related to a folder - similar to the TortoiseSVN merge screen which allows you to merge between branches.