Bug 286538

Summary: renaming categories doesn't rename relevant search/process rules
Product: [Applications] skrooge Reporter: Thomas Vander Stichele <thomas>
Component: generalAssignee: Stephane MANKOWSKI <stephane>
Status: RESOLVED FIXED    
Severity: normal CC: stephane
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Vander Stichele 2011-11-13 23:00:33 UTC
Version:           unspecified
OS:                Linux

I renamed a category from Travel to Transport.

I expected the processing rules to be changed as well to match.  They aren't, and now they generate an error when executed.

Reproducible: Didn't try

Steps to Reproduce:
create a category
create a process rule to assign an operation to it
rename the category
try and execute the rule


Expected Results:  
rules should be updated to reflect the new category name

OS: Linux (x86_64) release 3.1.0-7.fc16.x86_64
Compiler: gcc
Comment 1 Stephane MANKOWSKI 2011-11-19 09:39:55 UTC
Hi,

The expected result is:
1-Hard to develop
2-Confusing in some cases:
    Example: if the rule is << category contains "abc" >> and if you rename the category "123abc789" into "123456789". Do we have to change the rule / to create a new one?

So, because it's too complex!
We won't change the rules when a category is renamed but I will do a correction to avoid errors in your scenario.

I hope this will help you.

Regards.
Comment 2 Stephane MANKOWSKI 2011-11-19 09:43:34 UTC
Git commit b72ecf32166148f0e85cc62bdb56c1a30e3d92b2 by Stephane Mankowski.
Committed on 19/11/2011 at 10:43.
Pushed by smankowski into branch 'Feature'.

BUG: 286538: Renaming categories doesn't rename relevant search/process rules (not fixed but better error management)

M  +1    -0    CHANGELOG
M  +5    -5    skgbankmodeler/skgruleobject.cpp

http://commits.kde.org/skrooge/b72ecf32166148f0e85cc62bdb56c1a30e3d92b2