[libalkimia] [Bug 403029] New: Import online quote sources from kmymoney

Ralf Habacker bugzilla_noreply at kde.org
Wed Jan 9 11:36:25 GMT 2019


https://bugs.kde.org/show_bug.cgi?id=403029

            Bug ID: 403029
           Summary: Import online quote sources from kmymoney
           Product: libalkimia
           Version: master
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: kmymoney-devel at kde.org
          Reporter: ralf.habacker at freenet.de
  Target Milestone: ---

As part of the migration of the online quote support from KMyMoney to alkimia,
the standard online sources available from kmymoney (and skrooge) must be
imported into alkimia and then installed with alkimia.

It is planned to store the online sources, which are currently contained in the
KMymoney configuration file, in individual files so that they can be installed
more easily (suggested by Thomas). These files can then be adapted using the
"Online Quotes Editor".
To make the online quotes independent from the provision of a new alkimia
version, the imported sources can then be uploaded to store.kde.org and used
instead of the installed alkimia sources.

Required activities:
1. extract the corresponding attributes from the categories (Online Quote
Source <name>) of the kmymoneyrc file
2. create the corresponding files in the alkimia source directory (e.g.:
data/quotes)
3. extending the build system to install the sources
4. extension of AlkOnlineQuotesProfile and AlkOnlineQuoteSource to find and
load these files
5. specify locations for read only and modified online quote source files
6. Add support to detect and updated new files

Open points:
1. definition of the file format used
    The following variants are available:
    1. use the format used by kmymoney4 [1]
      (https://cgit.kde.org/alkimia.git/tree/src/alkonlinequotesource.cpp#n62)
    2. use the old Skrooge .txt file format 
      (https://cgit.kde.org/alkimia.git/tree/src/alkonlinequotesource.cpp#n119)
    3. use the Skrooge desktop file format 
      
(https://cgit.kde.org/skrooge.git/tree/skgbankmodeler/sources/org.kde.skrooge-source-skrooge.desktop)
       (suggested by Stephane Mankowski, skrooge developer)
    At least the choosed format need to have a kind of "parser type" or 
    "data format type" attribute to be able to specify which parser to use. [2]
[3]
2. procedure for performing the import (by hand, command line tool, online
quote editor)

Notes:
[1] KMymoney5 uses a different approach by specifying different URLs for html
and csv. Following this style would require adding URLs for each type, which
does not make sense.  

[2] Currently only HTML is supported, CSV support would have to be imported
from kmymoney5, json and xml require a new parser implementation.

[3] In the first step it makes most sense to use the already available file
formats and later, when the Online Quote support of alkimia is established, to
specify your own format, if required.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list