Bug 380876 - pull up default implementation for getReplyText
Summary: pull up default implementation for getReplyText
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 3.9   Edit
Assignee: Benjamin Muskalla CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2012-05-29 06:37 EDT by Benjamin Muskalla CLA
Modified: 2012-07-17 09:01 EDT (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (104.84 KB, application/octet-stream)
2012-06-10 17:11 EDT, Benjamin Muskalla CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Muskalla CLA 2012-05-29 06:37:05 EDT
Many connectors have no special support for comment replys but each connector has to implement @AbstractRepositoryConnector#getReplyText@. We should think about pulling up the Bugzilla implementation. This way 90% of connectors can save implementing this while the other 10% still have the ability to override it.
Comment 1 Steffen Pingel CLA 2012-06-10 13:32:14 EDT
The assumption was that the format would differ considerably between connectors and hence no default implementation was provided. If that's not the case we should pull up the Bugzilla implementation as suggested. Benjamin, I'll tentatively assign to you.
Comment 2 Benjamin Muskalla CLA 2012-06-10 14:31:07 EDT
From the connectors I checked (some open source eg. GitHub and several commercials), all of them either have an exact copy of the Bugzilla implementation or implement it to return pretty much the same message. Oddly, some of them (eg. GitHub) completely forgot to implement it (happend to me too) and thus are missing this functionality. I still see potential to override it but a default implementation would help a lot of connectors.
Comment 3 Benjamin Muskalla CLA 2012-06-10 17:11:26 EDT
Review at https://git.eclipse.org/r/#/c/6307/

Two open discussion points:
* I think we should use "(In reply to description)" when replying to the description
* The parameter @includeTask@ is never used by the framework. Should we maybe deprecate the current method and introduce a new one without that param?
Comment 4 Benjamin Muskalla CLA 2012-06-10 17:11:37 EDT
Created attachment 217122 [details]
mylyn/context/zip
Comment 5 Steffen Pingel CLA 2012-06-29 12:45:39 EDT
Looks good to me! Can you assert the usual IP blurb on the review?

(In reply to comment #3)
> Review at https://git.eclipse.org/r/#/c/6307/
> 
> Two open discussion points:
> * I think we should use "(In reply to description)" when replying to the
> description

This could make sense but would require a custom implementation for Bugzilla. To properly implement that we should have an API for retrieving the link text for a comment or the description but I would leave that for later.

> * The parameter @includeTask@ is never used by the framework. Should we maybe
> deprecate the current method and introduce a new one without that param?

That makes sense but I'm wondering if it's worth the trouble. I'd rather do that for 4.0 when we can break API. We could add a comment that the parameter is not used.
Comment 6 Steffen Pingel CLA 2012-07-17 08:57:32 EDT
The changes were merged into master. Thanks very much for the contribution!
Comment 7 Benjamin Muskalla CLA 2012-07-17 09:01:37 EDT
Thanks Steffen!