Roundup Tracker - Issues

Issue 2550737

classification
config option for revision linking
Type: Severity: normal
Components: Web interface Versions: 1.4
process
Status: closed abandoned
:
: : ber, changeablecore8, rouilj, techtonik
Priority: :

Created on 2011-11-30 12:22 by techtonik, last changed 2016-07-31 20:35 by rouilj.

Messages
msg4463 Author: [hidden] (techtonik) Date: 2011-11-30 12:22
I'd like to get an ability in Roundup to specify URL in config so that 
Roundup could link revisions references in messages, such as r3450, into 
actual links to specified URL using number as a parameter to this config 
string. Is it hard to implement? Where should one start from?

For the example, look at bugs.python.org web-site.
msg5024 Author: [hidden] (ber) Date: 2014-03-13 10:03
Hi Anatoly,
are you looking for
./share/roundup/templates/devel/extensions/local_replace.py
./share/roundup/templates/responsive/extensions/local_replace.py
./website/issues/extensions/local_replace.py

E.g. see rev7625dcb7e946
msg5025 Author: [hidden] (techtonik) Date: 2014-03-13 11:40
Yes, I've discovered the mechanism after some years.
Here the rules are hardcoded and I needed something of user level.

On Thu, Mar 13, 2014 at 1:03 PM, Bernhard Reiter
<issues@roundup-tracker.org> wrote:
>
> Bernhard Reiter added the comment:
>
> Hi Anatoly,
> are you looking for
> ./share/roundup/templates/devel/extensions/local_replace.py
> ./share/roundup/templates/responsive/extensions/local_replace.py
> ./website/issues/extensions/local_replace.py
>
> E.g. see rev7625dcb7e946
>
> ----------
> nosy: +ber
>
> ________________________________________________
> Roundup tracker <issues@roundup-tracker.org>
> <http://issues.roundup-tracker.org/issue2550737>
> ________________________________________________
msg5027 Author: [hidden] (ber) Date: 2014-03-13 12:16
Ah, okay, you are talking about a user level config?
Where do you want to expose the configuration?

host level?
webinterface user level?
webinterface admin level?
msg5032 Author: [hidden] (techtonik) Date: 2014-03-14 12:59
On Thu, Mar 13, 2014 at 3:16 PM, Bernhard Reiter
<issues@roundup-tracker.org> wrote:
>
> Ah, okay, you are talking about a user level config?
> Where do you want to expose the configuration?
>
> host level?
> webinterface user level?
> webinterface admin level?

As a user I need it per tracker. Not sure where it should be stored.
msg5036 Author: [hidden] (ber) Date: 2014-03-14 14:28
On Friday 14 March 2014 at 13:59:22, anatoly techtonik wrote:
> As a user I need it per tracker. Not sure where it should be stored.

The "extensions" directory is already per tracker, so I assume you do not want
it on a config file on the roundup server machine.

You could add an new object with a string property
and access permissions for the admin. That would make it read/write
in the webinterface via the class administration.
Then you only need to read that value in the local_replace.py extension.
msg5752 Author: [hidden] (rouilj) Date: 2016-07-04 22:33
Hi Anatoly can you further specify how you want this to work
if the options offered by Bern are not enough?

This seems like a tracker config issue and not something that needs
to be supported by the roundup core.

You could create a "userconfig" class with name and value
string types.

Then:

name = revisionid
value = http://example.site.org/hgview/%s

then in the local replace, open the db, lookup the "revisionid"
object and value. If you see \br[0-9a-f]{6,64}\b in the text,
grab the stuff after the r and format it into the value (url string).

- rouilj
msg5761 Author: [hidden] (rouilj) Date: 2016-07-05 23:59
Source: http://psf.upfronthosting.co.za/roundup/meta/issue431
History
Date User Action Args
2016-07-31 20:35:03rouiljsetstatus: new -> closed
resolution: remind -> abandoned
2016-07-05 23:59:31rouiljsetmessages: + msg5761
2016-07-04 22:33:04rouiljsetresolution: remind
messages: + msg5752
nosy: + rouilj
2014-03-14 14:28:18bersetmessages: + msg5036
2014-03-14 12:59:22techtoniksetmessages: + msg5032
2014-03-13 12:16:57bersetmessages: + msg5027
2014-03-13 11:40:28techtoniksetmessages: + msg5025
2014-03-13 10:03:34bersetnosy: + ber
messages: + msg5024
2013-10-09 02:46:55rouiljsetmessages: - msg4923
2013-10-09 02:46:47rouiljsettitle: New Interface -> config option for revision linking
2013-08-26 16:18:46changeablecore8setnosy: + changeablecore8
messages: + msg4923
title: config option for revision linking -> New Interface
2011-11-30 12:22:37techtonikcreate