Roundup Tracker - Issues

Message5840

Author schlatterbeck
Recipients ThomasAH, ber, cslotty, ezio.melotti, pefu, rouilj, schlatterbeck, slteichmann, stefan
Date 2016-07-12.08:43:20
Message-id <20160711082133.GG24085@runtux.com>
In-reply-to <20160709151212.672789776.thomas@intevation.de>
On Sat, Jul 09, 2016 at 01:15:30PM +0000, Thomas Arendsen Hein wrote:
> 
> * John Rouillard <issues@roundup-tracker.org> [20160709 01:39]:
> >    Supposed a keyword is retired and I want to search for an issue
> >    with that retired keyword?
> > 
> > Do we have a best policy document that says to remove retired keywords
> > from all places it could possibly be used? It could be argued that the
> > simple search dropdown is wrong and should allow selecting retired values.
> > 
> > There are no comments in hg or the code to tell me how the developer
> > interpreted the meaning of "Retired" and if the decision to leave
> > retired values in the popup was intentional.
> 
> I understand "retired" as:
> It is deleted, but since we do not want to really delete anything in
> the database, it is just marked as deleted and can be undeleted
> (unretired) later.
> 
> So retired keywords/users/messages/issues should not appear
> anywhere. They currently do, which sometimes causes problems, e.g.
> when editing an issue.

We're leaving retired keywords etc. in old issues. It's usually not a
good idea to modify history and it avoids practical issues with
referential integrity. So retired items in the database may be linked
from other items.

Concerning the search: When searching for no-longer-valid items is
required, I've implemented an 'is_valid' flag in some of my trackers
(not for keyword but for other customized properties). If an item is not
marked as valid, it can still be searched for but will not be available
in the menus for issue-editing. (So it will be in seen in index
templates but not in item templates).

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: office@runtux.com
History
Date User Action Args
2016-07-12 08:43:21schlatterbecksetrecipients: + schlatterbeck, stefan, ber, rouilj, pefu, ThomasAH, ezio.melotti, slteichmann, cslotty
2016-07-12 08:43:21schlatterbecklinkissue2550648 messages
2016-07-12 08:43:20schlatterbeckcreate