[Kmymoney-devel] Review Request: Add profiles to csvplugin to retain user's settings

Allan Anderson agander93 at gmail.com
Fri Jan 27 00:01:43 UTC 2012



> On Jan. 26, 2012, 6:16 p.m., Cristian Oneț wrote:
> > kmymoney/plugins/csvimport/convdate.cpp, line 47
> > <http://git.reviewboard.kde.org/r/103492/diff/2/?file=46695#file46695line47>
> >
> >     What happened with this file?
> >     All spaces between 'if' and '(' were removed.

This is down to astyle, I believe.  I've been suspecting that there is a problem, as sometimes it takes the spaces out, and sometimes it puts the space in.  In the past I have always included a space, but, because of astyle, I have in the last week or so started to omit the space.  I'm happy to leave them in.  When I run astyle, as you know, its output indicates files that have been changed.  If I then run it again, some of the same files are flagged again, although not as many.  Last time, I ran it a third time, and the output was the same as the second time.

There definitely is some inconsistency with it, in my experience at least.  I have to say, though, that I modified it to run only on the csvimport folder, to avoid reformatting the whole project, but that's all I've done.  However, it's possible that the 'official' KMM astyle has been modified subsequently and that I am missing something.  I'll look at that, too.


> On Jan. 26, 2012, 6:16 p.m., Cristian Oneț wrote:
> > kmymoney/plugins/csvimport/csvdialog.h, line 128
> > <http://git.reviewboard.kde.org/r/103492/diff/2/?file=46696#file46696line128>
> >
> >     Do you really need to keep this? It's just garbage if it's not used.

I had already,recently removed it.  I commented it out to confirm there were no ill effects, and I'm afraid it slipped through.  Apologies.


> On Jan. 26, 2012, 6:16 p.m., Cristian Oneț wrote:
> > kmymoney/plugins/csvimport/csvdialog.h, line 483
> > <http://git.reviewboard.kde.org/r/103492/diff/2/?file=46696#file46696line483>
> >
> >     Same as before, why keep commented code?

I need to find a better way to identify code that may need to be removed, especially in header files with lots of comment.


> On Jan. 26, 2012, 6:16 p.m., Cristian Oneț wrote:
> > kmymoney/plugins/csvimport/csvdialog.cpp, line 220
> > <http://git.reviewboard.kde.org/r/103492/diff/2/?file=46697#file46697line220>
> >
> >     White space was removed. Please bring it back.

Amen.


> On Jan. 26, 2012, 6:16 p.m., Cristian Oneț wrote:
> > kmymoney/plugins/csvimport/csvdialog.cpp, line 518
> > <http://git.reviewboard.kde.org/r/103492/diff/2/?file=46697#file46697line518>
> >
> >     Why do you need the 'KUrl(KUrl(' construction?

How I came to do that, I don't know, I'm afraid.  I managed not to do it also in investprocessing.cpp, I'm glad to say.


- Allan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103492/#review10098
-----------------------------------------------------------


On Jan. 15, 2012, 1:09 p.m., Allan Anderson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103492/
> -----------------------------------------------------------
> 
> (Updated Jan. 15, 2012, 1:09 p.m.)
> 
> 
> Review request for KMymoney.
> 
> 
> Description
> -------
> 
> The intro wizard is changed to have radio buttons to select either Banking or Investment.  Also, the selection combobox has an 'Add New Profile' item.  Once the user has named the profile, selected the file to be imported, selected the input parameters and completed the import, the new profile is saved.
> 
> Later, on selecting the appropriate profile and filename, the csv file is imported without needing to go through the wizard pages.
> 
> That's the theory, anyway, but unfortunately, it's not always as straight forward as that.  In general, though, banking files should be straight forward, but the 'last line' setting could cause a problem if there are trailer lines that need to be dropped.
> 
> With investment files, there appear to be two general formats involving the security.  The file could have a column for the ticker symbol, but often this may not be supplied on every line and the user will need to add this before import.  Or, if the file includes just one security with no symbol column, the security name needs to be input.  Also, it may be necessary to supply the name of a brokerage account.  So, with imports of investments, the import process is not so straight-forward.
> 
> Then, there is a potential problem if an error is detected during import.  The wizard then reverts to 'non-profile' mode, giving the user the chance to correct possible selection problems, like with the end line.
> 
> When a profile is used, on completion of the import process, the final wizard page has 'lost' its Back button (that is, it's disabled).  This, I'm pretty sure, is  because, with several pages being skipped, there is no 'history' available to the wizard.
> 
> An outstanding issue is that, should a profile be deleted, or renamed, the resource file will still contain its settings, and will need to be edited at some stage.
> 
> PS.
> I probably should mention that when the plugin is installed, the default resource file gets installed in ${CONFIG_INSTALL_DIR}), then is saved locally.  The reason is that I've left settings in for two investment profiles, to give the user some clues.
> 
> 
> Diffs
> -----
> 
>   kmymoney/plugins/csvimport/CMakeLists.txt 9837a08 
>   kmymoney/plugins/csvimport/completionwizardpage.ui 5adf2c2 
>   kmymoney/plugins/csvimport/convdate.cpp 56bd235 
>   kmymoney/plugins/csvimport/csvdialog.h 6885072 
>   kmymoney/plugins/csvimport/csvdialog.cpp 754ee92 
>   kmymoney/plugins/csvimport/csvdialog.ui 282c7a9 
>   kmymoney/plugins/csvimport/csvimporterplugin.h f525463 
>   kmymoney/plugins/csvimport/csvimporterplugin.cpp 48fa8de 
>   kmymoney/plugins/csvimport/csvimporterrc 3ba3f55 
>   kmymoney/plugins/csvimport/csvutil.cpp b566b66 
>   kmymoney/plugins/csvimport/introwizardpage.ui 2dee1ce 
>   kmymoney/plugins/csvimport/investmentdlg.cpp 33ee8bd 
>   kmymoney/plugins/csvimport/investmentwizardpage.ui c37f0d5 
>   kmymoney/plugins/csvimport/investprocessing.h cf56056 
>   kmymoney/plugins/csvimport/investprocessing.cpp 9c33531 
>   kmymoney/plugins/csvimport/kmm_csvimport.desktop 55491d9 
>   kmymoney/plugins/csvimport/lines-datewizardpage.ui 9a4bbb6 
>   kmymoney/plugins/csvimport/parsedatatest.cpp fa8bdc0 
>   kmymoney/plugins/csvimport/redefinedlg.h 8b11b28 
>   kmymoney/plugins/csvimport/redefinedlg.cpp 44294ae 
>   kmymoney/plugins/csvimport/redefinedlgdecl.ui 35d8f43 
>   kmymoney/plugins/csvimport/separatorwizardpage.ui f9d07d3 
>   kmymoney/plugins/csvimport/symboltabledlg.cpp b38a6c5 
> 
> Diff: http://git.reviewboard.kde.org/r/103492/diff/diff
> 
> 
> Testing
> -------
> 
> Tested with several different file layouts, including live work.  astyle run, and unit test.
> 
> 
> Thanks,
> 
> Allan Anderson
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20120127/1657558d/attachment-0001.html>


More information about the KMyMoney-devel mailing list