introducing Trac_Assigner: a script to automatically assign tickets to their port maintainer
Eric Le Lay
elelay at macports.org
Tue Oct 1 13:02:54 PDT 2013
Hi,
please find a first version (0.1.0) of the PortsAutoComplet trac plugin
here [1].
It adds a handler to return a textual listing of matching ports for
autocompletion of the port field and javascript code to perform the
autocompletion. When the user selects a port, the maintainers are added
to the owner/cc fields as appropriate.
Known limitations:
- doesn't work for existing tickets (I figured too late that the owner
field had a different behaviour in existing tickets - need to
reassign, etc.). This can and will be fixed in next release.
- doesn't work if javascript is disabled (everything is done client
side).
- autocomplete uses a cache to only fetch results the first
time and further refine from the cache afterwards. This is good
for responsiveness and server load but bad because I had to set a
limit to the number of results returned for a given query (let's
say 'po') and the port you want might not be in the 100 first
results.
I'm welcoming your comments on the approach or the code.
Cheers,
Eric
[1]
https://svn.macports.org/repository/macports/users/elelay/PortsAutoComplete
Le Tue, 24 Sep 2013 22:47:20 +0200,
Eric Le Lay <elelay at macports.org> a écrit :
> OK,
>
> I'll give it a try and let you know about it...
>
> Cheers,
> Eric
>
> Le Tue, 24 Sep 2013 12:26:27 -0700,
> William Siegrist <wsiegrist at apple.com> a écrit :
>
> > We'll review the code and install it if it looks good.
> >
> > -Bill
> >
> >
> > On Sep 24, 2013, at 11:01 AM, Eric Le Lay <elelay at macports.org>
> > wrote:
> >
> > > Hi,
> > >
> > > if I were to write such a trac plugin, what are the odds that it
> > > would be installed in macports.org ?
> > >
> > > - Eric
> > >
> > > Le Sun, 22 Sep 2013 14:48:28 +1000,
> > > Joshua Root <jmr at macports.org> a écrit :
> > >
> > >> On 2013-9-22 05:22 , MK-MacPorts at techno.ms wrote:
> > >>> Wouldn't it be much more efficient to have this already dealt
> > >>> with by trac itself during ticket creation?
> > >>
> > >> Probably. You are certainly welcome to write such a trac
> > >> plugin. :-)
> > >>
> > >> - Josh
More information about the macports-dev
mailing list