gnucash maint: Multiple changes pushed

Geert Janssens gjanssens at code.gnucash.org
Fri Oct 1 08:49:29 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/9a465fc3 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/64576f7d (commit)
	from  https://github.com/Gnucash/gnucash/commit/71722c46 (commit)



commit 9a465fc359d96ac267aa129cf96126def59ff45e
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Thu Sep 30 21:57:48 2021 +0200

    GSettings - add 'deprecate' and 'obsolete' conversions for user preferences
    
    'deprecate' is technically a noop. It serves to remind maintainers
    the 'deprecated' preference is to be obsoleted in the next major
    release.
    'obsolete' goes one step further in that it will cause gnucash to reset
    the preference, effectively clearing the value stored in the preferences
    backend. This is the final phase of a preference. Following this it
    will be completely removed from the GSettings schema in the next
    major release.
    
    Notes
    * 'deprecate' and 'migrate' are related. Both are a reminder the
    preference is to be obsoleted in the next major release. 'deprecate'
    does only that though while 'migrate' will also trigger a copy of
    the old value to a new location in the databse.
    
    * This commit readds a couple of preferences that had been removed
    in the past to be able to properly obsolete them (and to test
    the obsoleting code)

commit 64576f7d27fdc3636a5fff621db22a64f8d3b7cf
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Thu Sep 30 18:26:01 2021 +0200

    GSettings - widen scope from 'migration' to 'transformation'
    
    This commit mostly changes descriptions and variable names to
    use the more generic terms 'transformations' or 'conversions'.
    'migration' is only one possible transform, future commits will
    add others.
    There are no functional changes in this commit other than
    a logic inversion in parse_one_release_node. It now checks
    for nodes named 'migrate' rather than for nodes not named
    'migrate' (the code is adapted accordingly to match this
    logic change).



Summary of changes:
 gnucash/CMakeLists.txt                             |   2 +-
 gnucash/gschemas/CMakeLists.txt                    |  21 ++--
 .../org.gnucash.GnuCash.deprecated.gschema.xml.in  |  26 ++++
 .../gschemas/org.gnucash.GnuCash.gschema.xml.in    |   1 +
 ...gratable-prefs.xml => pref_transformations.xml} |  88 ++++++++++++++
 gnucash/import-export/aqb/gschemas/CMakeLists.txt  |   8 +-
 ...gratable-prefs.xml => pref_transformations.xml} |   0
 gnucash/import-export/ofx/gschemas/CMakeLists.txt  |   8 +-
 ...gratable-prefs.xml => pref_transformations.xml} |   0
 libgnucash/app-utils/gnc-gsettings.cpp             | 131 ++++++++++++++-------
 10 files changed, 223 insertions(+), 62 deletions(-)
 rename gnucash/gschemas/{migratable-prefs.xml => pref_transformations.xml} (92%)
 rename gnucash/import-export/aqb/gschemas/{migratable-prefs.xml => pref_transformations.xml} (100%)
 rename gnucash/import-export/ofx/gschemas/{migratable-prefs.xml => pref_transformations.xml} (100%)



More information about the gnucash-patches mailing list