[Kmymoney-devel] Review Request: Make sure transactions have a unique ID after loading from file

Thomas Baumgart thb at net-bembel.de
Wed Sep 8 10:46:21 CEST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/5287/
-----------------------------------------------------------

Review request for kmymoney.


Summary
-------

The patch provided with r1156689 does not completely solve the problem. Rather than detecting any duplicates, it is easier to assign a new transaction ID during the loading of an XML file. Since there is no relation of the transaction ID to or from other objects, this can be performed without further changes/checks.

Once approved, the patch needs to be backported to the 4.5 branch.


This addresses bug 246108.
    https://bugs.kde.org/show_bug.cgi?id=246108


Diffs
-----

  trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgr.cpp 1172072 
  trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.h 1172072 
  trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp 1172072 
  trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneystoragexml.cpp 1172072 

Diff: http://svn.reviewboard.kde.org/r/5287/diff


Testing
-------

Created special file with duplicate transaction IDs.
Loaded file, saved it and verified that the duplicate transaction IDs have been resolved.

Loaded my 2 real data files, made changes and saved them. Verified, that all global values remain the same.

Ran unit tests w/o problems.


Thanks,

Thomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100908/a9557ca7/attachment.htm 


More information about the KMyMoney-devel mailing list