Mailing List Archive

rt extension and mason templates
hey,

i want to package the extension now but it can't find the Kanban once it
is installed using 'make install' from the Kanban. here is the log:


=== make install ====
cd rt-extension-kanban
make install
Skip blib/lib/RT/Extension/KANBAN/Dispatcher.pm (unchanged)
Skip blib/lib/RT/Extension/KANBAN/Middleware/Log.pm (unchanged)
Skip blib/lib/RT/Extension/KANBAN/Middleware/Auth.pm (unchanged)
Skip blib/lib/RT/Extension/KANBAN.pm (unchanged)
Skip blib/lib/RT/Extension/KANBAN/PodViewer.pm (unchanged)
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN.pm
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/PodViewer.pm
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Dispatcher.pm
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Middleware/Log.pm
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Middleware/Auth.pm
Appending installation info to
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/perllocal.pod
Installing /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Kanban
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Elements/Kanban
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/doT.min.js
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/kanbanConf.json
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/md5.min.js
Installing
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/css/tasks.css


note: i put it there 4 times in the hope it would just be a 'wrong
directory' or similar.

=== starting the daemon ===

plackup /tmp/rt4/opt/rt4/sbin/standalone_httpd --port 8080

...

[17060] [Sat Feb 27 01:30:23 2016] [error]: could not find component for
path 'Kanban'

Stack:
[/tmp/rt4/opt/rt4/share/html/Elements/MyRT:96]
[/tmp/rt4/opt/rt4/share/html/index.html:78]
[/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web.pm:681]
[/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web.pm:369]
[/tmp/rt4/opt/rt4/share/html/autohandler:53]
(/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)

=== looking for Kanban in the installation dir ===

du -a /tmp/rt4/opt/rt4/| grep Kanban
20
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Elements/Kanban
20 /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Kanban


=== so? ===

what am i doing wrong? do i also need callbacks or something? i've been
looking into the RSSfeed extension and others but i don't see what i'm
missing.

please give me a hand if you know what to do.

thanks!
joachim

---------
RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html)
* Hamburg Germany - March 14 & 15, 2016
* Washington DC - May 23 & 24, 2016
Re: rt extension and mason templates [ In reply to ]
Did you add a line to RT_SiteConfig.pm to tell RT to pull it in? If not,
that's the issue. You just need to add:

Plugin("RT::Extension::KANBAN");

And restart the server.

On 2/27/16 6:05 AM, Joachim Schiele wrote:
> hey,
>
> i want to package the extension now but it can't find the Kanban once it
> is installed using 'make install' from the Kanban. here is the log:
>
>
> === make install ====
> cd rt-extension-kanban
> make install
> Skip blib/lib/RT/Extension/KANBAN/Dispatcher.pm (unchanged)
> Skip blib/lib/RT/Extension/KANBAN/Middleware/Log.pm (unchanged)
> Skip blib/lib/RT/Extension/KANBAN/Middleware/Auth.pm (unchanged)
> Skip blib/lib/RT/Extension/KANBAN.pm (unchanged)
> Skip blib/lib/RT/Extension/KANBAN/PodViewer.pm (unchanged)
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN.pm
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/PodViewer.pm
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Dispatcher.pm
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Middleware/Log.pm
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Middleware/Auth.pm
> Appending installation info to
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/perllocal.pod
> Installing /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Kanban
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Elements/Kanban
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/doT.min.js
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/kanbanConf.json
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/md5.min.js
> Installing
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/css/tasks.css
>
>
> note: i put it there 4 times in the hope it would just be a 'wrong
> directory' or similar.
>
> === starting the daemon ===
>
> plackup /tmp/rt4/opt/rt4/sbin/standalone_httpd --port 8080
>
> ...
>
> [17060] [Sat Feb 27 01:30:23 2016] [error]: could not find component for
> path 'Kanban'
>
> Stack:
> [/tmp/rt4/opt/rt4/share/html/Elements/MyRT:96]
> [/tmp/rt4/opt/rt4/share/html/index.html:78]
> [/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web.pm:681]
> [/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web.pm:369]
> [/tmp/rt4/opt/rt4/share/html/autohandler:53]
> (/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)
>
> === looking for Kanban in the installation dir ===
>
> du -a /tmp/rt4/opt/rt4/| grep Kanban
> 20
> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Elements/Kanban
> 20 /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Kanban
>
>
> === so? ===
>
> what am i doing wrong? do i also need callbacks or something? i've been
> looking into the RSSfeed extension and others but i don't see what i'm
> missing.
>
> please give me a hand if you know what to do.
>
> thanks!
> joachim
>
> ---------
> RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html)
> * Hamburg Germany - March 14 & 15, 2016
> * Washington DC - May 23 & 24, 2016

---------
RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html)
* Hamburg Germany - March 14 & 15, 2016
* Washington DC - May 23 & 24, 2016
Re: rt extension and mason templates [ In reply to ]
i'm not really sure what finally made it work but it might be some
browser-caching + mason template cache issue i had.

it is working now and the correct location for the Kanban mason template
was indeed:
~RT-Extension-Kanban/html/Elements/Kanban ->
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Elements/Kanban


is there a way to add this new element only by using:
Plugin('RT::Extension::KANBAN');

because right now we also need to set this:

Set(
$HomepageComponents,
[.
qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues
MyReminders RefreshHomepage Dashboards SavedSearches FindUser Kanban) #
loc_qw
]
);

or else we get:
Invalid portlet Kanban

where otherwise the Kanban html template would appear (if already added,
say as a dashboard element).


thanks for your help!

On 29.02.2016 15:05, Jim Brandt wrote:
> Did you add a line to RT_SiteConfig.pm to tell RT to pull it in? If not,
> that's the issue. You just need to add:
>
> Plugin("RT::Extension::KANBAN");
>
> And restart the server.
>
> On 2/27/16 6:05 AM, Joachim Schiele wrote:
>> hey,
>>
>> i want to package the extension now but it can't find the Kanban once it
>> is installed using 'make install' from the Kanban. here is the log:
>>
>>
>> === make install ====
>> cd rt-extension-kanban
>> make install
>> Skip blib/lib/RT/Extension/KANBAN/Dispatcher.pm (unchanged)
>> Skip blib/lib/RT/Extension/KANBAN/Middleware/Log.pm (unchanged)
>> Skip blib/lib/RT/Extension/KANBAN/Middleware/Auth.pm (unchanged)
>> Skip blib/lib/RT/Extension/KANBAN.pm (unchanged)
>> Skip blib/lib/RT/Extension/KANBAN/PodViewer.pm (unchanged)
>> Installing
>>
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN.pm
>>
>> Installing
>>
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/PodViewer.pm
>>
>> Installing
>>
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Dispatcher.pm
>>
>> Installing
>>
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Middleware/Log.pm
>>
>> Installing
>>
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/RT/Extension/KANBAN/Middleware/Auth.pm
>>
>> Appending installation info to
>> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/lib/perllocal.pod
>> Installing /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Kanban
>> Installing
>> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Elements/Kanban
>> Installing
>> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/doT.min.js
>> Installing
>>
/tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/kanbanConf.json
>>
>> Installing
>> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/js/md5.min.js
>> Installing
>> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/static/css/tasks.css
>>
>>
>> note: i put it there 4 times in the hope it would just be a 'wrong
>> directory' or similar.
>>
>> === starting the daemon ===
>>
>> plackup /tmp/rt4/opt/rt4/sbin/standalone_httpd --port 8080
>>
>> ...
>>
>> [17060] [Sat Feb 27 01:30:23 2016] [error]: could not find component for
>> path 'Kanban'
>>
>> Stack:
>> [/tmp/rt4/opt/rt4/share/html/Elements/MyRT:96]
>> [/tmp/rt4/opt/rt4/share/html/index.html:78]
>> [/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web.pm:681]
>> [/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web.pm:369]
>> [/tmp/rt4/opt/rt4/share/html/autohandler:53]
>> (/tmp/rt4/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)
>>
>> === looking for Kanban in the installation dir ===
>>
>> du -a /tmp/rt4/opt/rt4/| grep Kanban
>> 20
>> /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Elements/Kanban
>> 20 /tmp/rt4/opt/rt4/local/plugins/RT-Extension-KANBAN/html/Kanban
>>
>>
>> === so? ===
>>
>> what am i doing wrong? do i also need callbacks or something? i've been
>> looking into the RSSfeed extension and others but i don't see what i'm
>> missing.
>>
>> please give me a hand if you know what to do.
>>
>> thanks!
>> joachim
>>
>> ---------
>> RT 4.4 and RTIR Training Sessions
>> (http://bestpractical.com/services/training.html)
>> * Hamburg Germany - March 14 & 15, 2016
>> * Washington DC - May 23 & 24, 2016
>


--
Joachim Schiele

blog: http://blog.lastlog.de
wiki: http://lastlog.de
jabber: josh@jabber.ccc.de
GPG: C6AC8770



---------
RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html)
* Hamburg Germany - March 14 & 15, 2016
* Washington DC - May 23 & 24, 2016
Re: rt extension and mason templates [ In reply to ]
Hi,

you can use this in your lib/RT/Extension/KANBAN.pm:

my $components = RT->Config->Get('HomepageComponents');
RT->Config->Set('HomepageComponents', [@$components, 'Kanban']);

@RT developer
A method like AddHomepageComponent (like AddJavaScript) would really
help here.
Especially as $HomepageComponents is an array ref instead of an array,
like other list configs (Plusgins, JSFiles, CSSFiles), which drives me
crazy every time I have to touch this. ;-)

Chris

Am 02.03.2016 um 17:04 schrieb Joachim Schiele:
> is there a way to add this new element only by using:
> Plugin('RT::Extension::KANBAN');
>
> because right now we also need to set this:
>
> Set(
> $HomepageComponents,
> [.
> qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues
> MyReminders RefreshHomepage Dashboards SavedSearches FindUser Kanban) #
> loc_qw
> ]
> );
>
> or else we get:
> Invalid portlet Kanban

---------
RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html)
* Hamburg Germany - March 14 & 15, 2016
* Washington DC - May 23 & 24, 2016