[rt-devel] Attempting to make Subject: tag matching a little more permissive, diff enclosed
Jim Brandt
jbrandt at bestpractical.com
Fri Sep 30 08:50:19 EDT 2016
On 9/29/16 6:20 PM, Alexis Rosen wrote:
> On Sep 29, 2016, at 8:17 AM, Jim Brandt <jbrandt at bestpractical.com> wrote:
>> On 9/28/16 4:36 PM, Alexis Rosen wrote:
>>> Can you point me to a doc describing "override libraries"? This is my first look at RT source and I'm not familiar with how it's organized. Google is less than helpful here, so far.
>>
>> It's mentioned here briefly:
>>
>> https://docs.bestpractical.com/rt/4.2.13/RT/StyleGuide.html#The-Overlay-mechanism
>>
>> To be more specific, you can create a file local/lib/RT/Interface/Email_Local.pm and create your own version of ParseTicketId. RT will then use your version of that subroutine rather than the main one.
>
> Hm. I see the advantage in isolating the source from local patches. OTOH, if a new version has a changed version of function I'm altering, I'll wind up with a hacked old version after the upgrade, not a pristine new version. Both options have disadvantages.
True, but if you modify in place and forget, then upgrade, your
modification will be overwritten when the new files are put in place.
Having the change isolated in a separate file in local/ keeps it safe
(we don't modify local on upgrade) and makes it a little easier for you
or possibly someone else to discover when upgrading.
You're absolutely correct that you will want to take a look at that
subroutine when you upgrade to see if it was modified and then re-port
your change into the new version if there are updates.
>
> In any case, that brief doc is sufficient. Thanks.
>
>>> I take it from this that you're not interested in merging the patch?
>>
>> I think this sort of change would be great in an extension. For example, here's another extension that provides a small bit of alternate functionality in handling subjects:
>>
>> https://metacpan.org/pod/RT::Extension::TrailingSubjectTag
>
> Um. that looks a bit more involved that I'm ready to deal with. At least the patch is here in the mailing list if someone needs it.
>
> Thanks again,
> /a
>
More information about the rt-devel
mailing list