Edgewall Software

Ticket #2035 (new enhancement)

Opened 3 years ago

Last modified 2 months ago

Changeset commenting

Reported by: polarfox@… Owned by: cboos
Priority: high Milestone: 0.12
Component: version control/changeset view Version:
Severity: major Keywords: tracobject journaling comment
Cc: johannes_rudolph@…

Description

Commenting on changesets would be great, it would substitute for code review tools.

Attachments

Change History

  Changed 3 years ago by anonymous

This would actually pave the way for analysis of percentage of reviewed code. An algorithm could try to correlate all latest lines of code in a file to reviews, and calculate how many were reviewed. I wish SCM systems could help here, because they already have some of that algorithm's bits when they re-create a given revision of a file based on changes preceding it.

  Changed 3 years ago by cboos

  • owner changed from jonas to cboos
  • status changed from new to assigned
  • severity changed from normal to major

Yes, I made a similar proposal, for generalizing comments to all Trac objects (see TracObjectModelProposal, it's a bit dusty now, but I'll update it in the following weeks).

For the specific purpose of code review, I see the need for some more additions:

  • simpler linking to the filenames concerned by the changeset (see #124)
  • wiki syntax for linking to line numbers.
    As we will support the peg revision format (see #2011), why not use the # delimiter to refer to the line number? ... or the : delimiter, for not introducing an incompatible change? (I'll open a new ticket for that feature, but we already have half of the features, i.e. the anchors to the lines, see #1798)
  • complement the blame feature with review annotations (see #629)

  Changed 3 years ago by antranig@…

I think the Object Model proposal sounds great. I am currently deciding between Confluence and Trac for a project I am working on, and a big win of Confluence is that it allows comments to be attached to arbitrary pages. Of course a big loss is its terrible UI model, so I am still undecided. I would like very much to be able to enable/disable blog-style comments on each page in Trac.

  Changed 3 years ago by eblot

Have a look at the AddComment macro: it's a useful tool to add comments to a wiki page. However, this does not relate much to the original subject of this ticket.

  Changed 3 years ago by cboos

  • status changed from assigned to new

(changing the status, as I've not actually started to work on that yet)

  Changed 2 years ago by cboos

  • keywords object added

  Changed 2 years ago by mgood

#2520 has been marked as a duplicate of this ticket.

  Changed 2 years ago by cboos

  • keywords tracobject added; object removed

  Changed 22 months ago by cboos

  • keywords journaling added

See also TracDev/Proposals/Journaling.

In that perspective, comments would be stored in a separate comment table,

tidtypeidtextreplyto

And the replyto would refer to the tid of the "replied to" comment, if there's one.

  Changed 18 months ago by cboos

  • keywords comment added
  • milestone set to 1.0

There's also the related idea expressed in #4279, which is being able to annotate any given page. That would be even more adapted for code reviews.

The Discussion tab would be more appropriate for general comments about the resource.

Now I wonder if the two ideas couldn't be combined: in case a general comment is referring to some particular location in the resource, there could be an indicator at that location which could link back to the specific comment.

  Changed 18 months ago by cboos

#4313 was marked as duplicate, and actually illustrates quite nicely what I said above.

  Changed 17 months ago by bill.mill@…

Well, as the author of the above dupe (sorry), I'll just change my ticket to a vote for this feature. It would be killer!

(I just wanted it again today, which reminded me to head back here to check the status of my ticket :)

  Changed 13 months ago by cboos

#5133 was closed as duplicate, and was also requesting the ability to annotate changesets for code review purpose.

follow-up: ↓ 16   Changed 12 months ago by az@…

just to add another little bit of emphasis: this is one of the things i miss most with trac, since we're using the timeline to review each others changes constantly, and having to create tickets for commenting other changes is some cumbersome... :)

follow-up: ↓ 17   Changed 12 months ago by cboos

  • priority changed from normal to high
  • milestone changed from 1.0 to 0.12

You convinced me ;-)

in reply to: ↑ 14   Changed 12 months ago by az@…

Replying to az@zitc.de:

commenting other changes is some cumbersome... :)

that should have read "commenting other changesets is somewhat cumbersome", of course... :)

in reply to: ↑ 15   Changed 12 months ago by az@…

Replying to cboos:

You convinced me ;-)

excellent, i'm very much looking forward to it! :)

  Changed 2 months ago by Johannes Rudolph <johannes_rudolph@…>

  • cc johannes_rudolph@… added

Add/Change #2035 (Changeset commenting)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.