You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bloodhound.apache.org by Andrej Golcov <an...@digiverse.si> on 2013/04/03 15:41:50 UTC
BEP 6 : Ticket Relations
Hi everyone,
I spent some time investigating possible solutions for BEP-0006 Ticket
Relations [1]. So far I can see two real candidates for adding the
functionality into Apache Bloodhound: MasterTicketsPlugin[2] and
TicketLinks [3]. I don't mention "write from scratch" intentionally
;).
I'd like to summarize my feelings regarding candidates in a few words (IMO).
- MasterTicketsPlugin - currently, only "blocked by/blocks" relation
is supported but, as far as I understand, there are plans to include
parent/child ticket functionality. Integration with UI is implemented
via ITemplateStreamFilter. I have feeling that the plugin code should
be forked to be BH friendly (maintaining Trac and BH compatibility can
be hard at the beginning) with theoretical possibility of merging Trac
and BH specific codebase later. It will be nice to have code as part
of Apache BH to avoid possible compatibility and installation
problems, but, IIUC, it is still open if we can get code grant to
include source in our repository.
- TicketLinks - introduces Trac code changes on branch. Designed with
different ticket relations in mind. Code quality is good and covered
by unit-tests. My understanding is that code is accessible under the
same license as Trac and can be copied into Apache BH repository. From
proposal wiki page [3]:
{{{
The approach from this patch was preferred over the ones from existing
plugins (TH:MasterTicketsPlugin, TH:SubticketsPlugin,
TH:ChildTicketsPlugin) as none was providing a really extensible
starting point, in the spirit of #31. The first two use a specific
table dedicated to the relation they're dealing with (respectively
mastertickets(source, dest),subtickets(parent,child)), and the latter
is using a parent custom field. That is not to say there are no
interesting ideas to lift from there ;-)
}}}
Personally, I would take TicketLinks code and extract it as BH plugin.
Changes in Trac core should be minimized to a couple of interfaces
that could be potentially accepted by Trac community.
What do you think?
If we want having ticket relation feature in 1.0 release, it is time
to start code integration soon.
Cheers, Andrej
[1] https://issues.apache.org/bloodhound/wiki/Proposals/BEP-0006
[2] https://trac-hacks.org/wiki/MasterTicketsPlugin
[3] http://trac.edgewall.org/wiki/TracDev/Proposals/TicketLinks
Re: BEP 6 : Ticket Relations
Posted by Ryan Ollos <ry...@wandisco.com>.
On Thu, Apr 4, 2013 at 4:52 AM, Branko Čibej <br...@wandisco.com> wrote:
> On 04.04.2013 10:17, Ryan Ollos wrote:
> > On Wed, Apr 3, 2013 at 9:37 PM, Peter Koželj <pe...@digiverse.si> wrote:
> >
> >> If I understand things correctly we need to get code grant regardless of
> >> the license.
> >> In that case the willingness of authors to give them is more important
> than
> >> current license.
> >>
> > I discussed the issue of the code grant with the plugin author this
> evening
> > and he's not willing to sign the document. He has given me full control
> to
> > develop the plugin wherever and in whatever ways that I see fit, but he
> has
> > "no interest in entering legal arrangements with the ASF". I have no idea
> > why that is, but I feel that I will make no progress in changing his mind
> > by continuing a discussion of the matter with him.
>
> A code grant is not necessary if we don't have to relicense the plugin.
> After all, the ASF does not have a code grant for Trac, and we have no
> trouble keeping a modified copy in our source tree and releasing that copy.
>
> It all depends on the license. If it's the same as Trac's we can simply
> create another vendor branch and make modifications locally. Of course,
> it'd be much easier if we could just develop the original tree; and even
> better if the plugin could be made multi-hosted, i.e., compatible with
> both Trac and BH (whith possibly exposing additional features in BH,
> e.g., multiproduct awareness).
>
> -- Brane
This is really great to know and potentially makes our life quite a bit
easier if we want to use a lot of code from trac-hacks. I'm not sure where
I picked up the idea that we needed a code grant regardless of the license,
but it sounds like others may have had the same idea.
For the past year or two I've been combing through the trac-hacks
repository and contacting authors when plugins don't have a license,
suggesting that they add the BSD 3-Clause license. For plugins that I've
contributed to on trac-hacks, I've requested that the author change the
license to BSD 3-Clause, and they have been willing to do that in all cases
that I've been able to reach the author. I have not compiled any numbers,
but my general feeling is that most plugins on trac-hacks have the BSD
license.
Re: BEP 6 : Ticket Relations
Posted by Gary Martin <ga...@wandisco.com>.
On 05/04/13 13:42, Branko Čibej wrote:
> On 05.04.2013 14:21, Andrej Golcov wrote:
>> I checked the license used by MusterTicketPlugin. It is similar to
>> Trac license (modified BSD license). So here there is no big
>> difference between candidates here.
>>
>> In both cases, a lot of changes should be made and I do believe that
>> is very desired to have BH source in single repository to avoid
>> version incompatibility and other headache connected with supporting
>> two different source codebases.
>>
>> If there is no objections, I will start with prototyping on trunk by
>> creating a new plugin bloodhound_ticket_links (enabled for dev
>> installation only) and at the end of prototype phase we can judge what
>> candidate to use.
> In any case please create a proper vendor branch for the upstream plugin
> sources, under ^/bloodhound/vendor.
>
> -- Brane
>
>
>
I put a summary of
http://svnbook.red-bean.com/en/1.7/svn.advanced.vendorbr.html to
demonstrate how to work with vendor branches in
https://issues.apache.org/bloodhound/wiki/BloodhoundVendorBranchUpgrade
and that includes a bit about adding new vendor branches towards the
end. Hopefully it makes sense.
Cheers,
Gary
Re: BEP 6 : Ticket Relations
Posted by Branko Čibej <br...@wandisco.com>.
On 05.04.2013 14:21, Andrej Golcov wrote:
> I checked the license used by MusterTicketPlugin. It is similar to
> Trac license (modified BSD license). So here there is no big
> difference between candidates here.
>
> In both cases, a lot of changes should be made and I do believe that
> is very desired to have BH source in single repository to avoid
> version incompatibility and other headache connected with supporting
> two different source codebases.
>
> If there is no objections, I will start with prototyping on trunk by
> creating a new plugin bloodhound_ticket_links (enabled for dev
> installation only) and at the end of prototype phase we can judge what
> candidate to use.
In any case please create a proper vendor branch for the upstream plugin
sources, under ^/bloodhound/vendor.
-- Brane
--
Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Re: BEP 6 : Ticket Relations
Posted by Ryan Ollos <ry...@wandisco.com>.
On Fri, Apr 5, 2013 at 5:21 AM, Andrej Golcov <an...@digiverse.si> wrote:
> I checked the license used by MusterTicketPlugin. It is similar to
> Trac license (modified BSD license). So here there is no big
> difference between candidates here.
>
The license for MasterTicketsPlugin should be exactly the same as Trac
license, BSD 3-Clause. The author told me to copy the license text verbatim
from the Trac source, so if there are any differences, the license text for
MasterTicketsPlugin should be updated, but I'm not seeing any differences.
http://trac.edgewall.org/browser/trunk/COPYING
https://trac-hacks.org/browser/masterticketsplugin/trunk/COPYING
Re: BEP 6 : Ticket Relations
Posted by Andrej Golcov <an...@digiverse.si>.
I checked the license used by MusterTicketPlugin. It is similar to
Trac license (modified BSD license). So here there is no big
difference between candidates here.
In both cases, a lot of changes should be made and I do believe that
is very desired to have BH source in single repository to avoid
version incompatibility and other headache connected with supporting
two different source codebases.
If there is no objections, I will start with prototyping on trunk by
creating a new plugin bloodhound_ticket_links (enabled for dev
installation only) and at the end of prototype phase we can judge what
candidate to use.
Regards, Andrej
Re: BEP 6 : Ticket Relations
Posted by Ryan Ollos <ry...@wandisco.com>.
On Thu, Apr 4, 2013 at 8:43 AM, Olemis Lang <ol...@gmail.com> wrote:
> On 4/4/13, Branko Čibej <br...@wandisco.com> wrote:
> > On 04.04.2013 10:17, Ryan Ollos wrote:
> >> On Wed, Apr 3, 2013 at 9:37 PM, Peter Koželj <pe...@digiverse.si>
> wrote:
> >>
> >>> If I understand things correctly we need to get code grant regardless
> of
> >>> the license.
> >>> In that case the willingness of authors to give them is more important
> >>> than
> >>> current license.
> >>>
> >> I discussed the issue of the code grant with the plugin author this
> >> evening
> >> and he's not willing to sign the document. He has given me full control
> >> to
> >> develop the plugin wherever and in whatever ways that I see fit, but he
> >> has
> >> "no interest in entering legal arrangements with the ASF". I have no
> idea
> >> why that is, but I feel that I will make no progress in changing his
> mind
> >> by continuing a discussion of the matter with him.
> >
> [...]
> > It all depends on the license. If it's the same as Trac's we can simply
> > create another vendor branch and make modifications locally.
>
> If the plugin developed @ tho is compatible with BH why will we need a
> vendor branch ? (<= just asking to understand if this is about
> something implied by any license or so)
>
> > Of course,
> > it'd be much easier if we could just develop the original tree; and even
> > better if the plugin could be made multi-hosted, i.e., compatible with
> > both Trac and BH (whith possibly exposing additional features in BH,
> > e.g., multiproduct awareness).
> >
>
> @rjollos: is there any objections to release BH-compatibility code
> with forthcoming versions of the plugin ? That's what I'll be doing
> with the plugins I maintain and will make things much more easy .
In general I have no objections to releasing and maintaining
Bloodhound-compatible code for plugins that are hosted on trac-hacks. In
this case, we are still in the stages of investigation and we have yet to
decide if we'll be using any of the code from trac-hacks for the ticket
relations feature, and if that code would be hosted on trac-hacks or
imported into the Bloodhound repository. I'm glad to know that we have
several options.
Re: BEP 6 : Ticket Relations
Posted by Olemis Lang <ol...@gmail.com>.
On 4/4/13, Branko Čibej <br...@wandisco.com> wrote:
> On 04.04.2013 10:17, Ryan Ollos wrote:
>> On Wed, Apr 3, 2013 at 9:37 PM, Peter Koželj <pe...@digiverse.si> wrote:
>>
>>> If I understand things correctly we need to get code grant regardless of
>>> the license.
>>> In that case the willingness of authors to give them is more important
>>> than
>>> current license.
>>>
>> I discussed the issue of the code grant with the plugin author this
>> evening
>> and he's not willing to sign the document. He has given me full control
>> to
>> develop the plugin wherever and in whatever ways that I see fit, but he
>> has
>> "no interest in entering legal arrangements with the ASF". I have no idea
>> why that is, but I feel that I will make no progress in changing his mind
>> by continuing a discussion of the matter with him.
>
[...]
> It all depends on the license. If it's the same as Trac's we can simply
> create another vendor branch and make modifications locally.
If the plugin developed @ tho is compatible with BH why will we need a
vendor branch ? (<= just asking to understand if this is about
something implied by any license or so)
> Of course,
> it'd be much easier if we could just develop the original tree; and even
> better if the plugin could be made multi-hosted, i.e., compatible with
> both Trac and BH (whith possibly exposing additional features in BH,
> e.g., multiproduct awareness).
>
@rjollos: is there any objections to release BH-compatibility code
with forthcoming versions of the plugin ? That's what I'll be doing
with the plugins I maintain and will make things much more easy .
--
Regards,
Olemis.
Re: BEP 6 : Ticket Relations
Posted by Branko Čibej <br...@wandisco.com>.
On 04.04.2013 10:17, Ryan Ollos wrote:
> On Wed, Apr 3, 2013 at 9:37 PM, Peter Koželj <pe...@digiverse.si> wrote:
>
>> If I understand things correctly we need to get code grant regardless of
>> the license.
>> In that case the willingness of authors to give them is more important than
>> current license.
>>
> I discussed the issue of the code grant with the plugin author this evening
> and he's not willing to sign the document. He has given me full control to
> develop the plugin wherever and in whatever ways that I see fit, but he has
> "no interest in entering legal arrangements with the ASF". I have no idea
> why that is, but I feel that I will make no progress in changing his mind
> by continuing a discussion of the matter with him.
A code grant is not necessary if we don't have to relicense the plugin.
After all, the ASF does not have a code grant for Trac, and we have no
trouble keeping a modified copy in our source tree and releasing that copy.
It all depends on the license. If it's the same as Trac's we can simply
create another vendor branch and make modifications locally. Of course,
it'd be much easier if we could just develop the original tree; and even
better if the plugin could be made multi-hosted, i.e., compatible with
both Trac and BH (whith possibly exposing additional features in BH,
e.g., multiproduct awareness).
-- Brane
--
Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Re: BEP 6 : Ticket Relations
Posted by Ryan Ollos <ry...@wandisco.com>.
On Wed, Apr 3, 2013 at 9:37 PM, Peter Koželj <pe...@digiverse.si> wrote:
> If I understand things correctly we need to get code grant regardless of
> the license.
> In that case the willingness of authors to give them is more important than
> current license.
>
I discussed the issue of the code grant with the plugin author this evening
and he's not willing to sign the document. He has given me full control to
develop the plugin wherever and in whatever ways that I see fit, but he has
"no interest in entering legal arrangements with the ASF". I have no idea
why that is, but I feel that I will make no progress in changing his mind
by continuing a discussion of the matter with him.
> Technology wise, I would vote for solution that is not tied to particular
> relation type on the database
> and application layer (on the other hand, some per relation type UX
> optimizations are probably desired). Getting from system-only provided
> relation types to user-defined ones is then a small step.
I had in mind that we would redefine the database schema after merging the
MasterTickets and Subtickets plugin code, and primarily try to utilize the
existing application layers from the MasterTickets and Subtickets plugins.
My progress wrt to the MasterTicketsPlugin is:
- Imported the code history from GitHub to the Trac-Hacks SVN.
- Resolved the issues that had been reported on GitHub and several of the
issues on trac-hacks. There have been several individuals interested in
having issues fixed and testing the changes so I have been working to
resolve some of the more serious issues.
- The codebase is close to being ready for a new release, but I will wait
to get feedback on two tickets before proceeding with that.
I think there is a pretty serious problem with the design of the database
layer. If you look through the open and recently closed tickets, you will
find numerous issues that seem to be due to the database getting into an
inconsistent state. I have spent some time trying to understand and fix
issues with the database layer in `model.TicketLinks.save` and can't say
that I understand why it is so complex and fragile. I started noticing a
lot of these issue while working on (1).
I will try to get my work-in-progress MasterTickets/Subtickets integration
pushed tomorrow, and look forward to continue the discussion of how we
should proceed. I had hoped we could fix the existing plugins since they
are used so widely by the trac community, but the possibility of pushing
the changes back directly to the Trac core seems nice to. I currently have
more than 20 patches pending in the Trac core, with many of them
"scheduled" for integration, so I'm not overly optimistic that whatever we
push to Trac will be readily integrated.
If anyone want w-access to the trac-hacks repository, please just send
along your trac-hacks username.
(1) http://trac-hacks.org/ticket/10194
Re: BEP 6 : Ticket Relations
Posted by Olemis Lang <ol...@gmail.com>.
On 4/3/13, Peter Koželj <pe...@digiverse.si> wrote:
>
[...]
>
> Technology wise, I would vote for solution that is not tied to particular
> relation type on the database
> and application layer (on the other hand, some per relation type UX
> optimizations are probably desired). Getting from system-only provided
> relation types to user-defined ones is then a small step.
>
fwiw , I agree . Fact is that generic DB design also implies (at least
sometimes) explicit reference integrity and constraint checking .
Another similar reasoning applies in the opposite direction . We'd
have to find the exact point in-between by putting both flexibility
and semantics side-by-side ;)
--
Regards,
Olemis.
Re: BEP 6 : Ticket Relations
Posted by Peter Koželj <pe...@digiverse.si>.
If I understand things correctly we need to get code grant regardless of
the license.
In that case the willingness of authors to give them is more important than
current license.
Technology wise, I would vote for solution that is not tied to particular
relation type on the database
and application layer (on the other hand, some per relation type UX
optimizations are probably desired). Getting from system-only provided
relation types to user-defined ones is then a small step.
Peter
On 3 April 2013 18:24, Andrej Golcov <an...@digiverse.si> wrote:
> > I did not look at the TicketLinks solution when starting work on the
> > MasterTicketsPlugin, so maybe I should give that a closer look. If it is
> > the better candidate, we should go that with it.
> That would be great. The decision should be very well elaborated.
>
> What I wanted to emphasize is that possibility of having code in BH
> repository is quite big benefit that will simplify versioning, upgrade
> and installation process.
>
Re: BEP 6 : Ticket Relations
Posted by Andrej Golcov <an...@digiverse.si>.
> I did not look at the TicketLinks solution when starting work on the
> MasterTicketsPlugin, so maybe I should give that a closer look. If it is
> the better candidate, we should go that with it.
That would be great. The decision should be very well elaborated.
What I wanted to emphasize is that possibility of having code in BH
repository is quite big benefit that will simplify versioning, upgrade
and installation process.
Re: BEP 6 : Ticket Relations
Posted by Ryan Ollos <ry...@wandisco.com>.
On Wed, Apr 3, 2013 at 6:41 AM, Andrej Golcov <an...@digiverse.si> wrote:
> Hi everyone,
>
> I spent some time investigating possible solutions for BEP-0006 Ticket
> Relations [1]. So far I can see two real candidates for adding the
> functionality into Apache Bloodhound: MasterTicketsPlugin[2] and
> TicketLinks [3]. I don't mention "write from scratch" intentionally
> ;).
>
> I'd like to summarize my feelings regarding candidates in a few words
> (IMO).
>
> - MasterTicketsPlugin - currently, only "blocked by/blocks" relation
> is supported but, as far as I understand, there are plans to include
> parent/child ticket functionality. Integration with UI is implemented
> via ITemplateStreamFilter. I have feeling that the plugin code should
> be forked to be BH friendly (maintaining Trac and BH compatibility can
> be hard at the beginning) with theoretical possibility of merging Trac
> and BH specific codebase later. It will be nice to have code as part
> of Apache BH to avoid possible compatibility and installation
> problems, but, IIUC, it is still open if we can get code grant to
> include source in our repository.
>
> - TicketLinks - introduces Trac code changes on branch. Designed with
> different ticket relations in mind. Code quality is good and covered
> by unit-tests. My understanding is that code is accessible under the
> same license as Trac and can be copied into Apache BH repository. From
> proposal wiki page [3]:
> {{{
> The approach from this patch was preferred over the ones from existing
> plugins (TH:MasterTicketsPlugin, TH:SubticketsPlugin,
> TH:ChildTicketsPlugin) as none was providing a really extensible
> starting point, in the spirit of #31. The first two use a specific
> table dedicated to the relation they're dealing with (respectively
> mastertickets(source, dest),subtickets(parent,child)), and the latter
> is using a parent custom field. That is not to say there are no
> interesting ideas to lift from there ;-)
> }}}
>
> Personally, I would take TicketLinks code and extract it as BH plugin.
> Changes in Trac core should be minimized to a couple of interfaces
> that could be potentially accepted by Trac community.
>
> What do you think?
>
> If we want having ticket relation feature in 1.0 release, it is time
> to start code integration soon.
>
I did not look at the TicketLinks solution when starting work on the
MasterTicketsPlugin, so maybe I should give that a closer look. If it is
the better candidate, we should go that with it.
I'll push my integration of MasterTicketsPlugin with SubticketsPlugin to a
branch latter today in case we want to give that some closer consideration.