Project

General

Profile

Actions

bug #7849

closed

Improve DB Preferences handling and saving in TaxEditor

Added by Andreas Müller over 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
New
Assignee:
Category:
taxeditor
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
critical
Found in Version:

Description

Currently it often happens that DB preferences are not (correctly) saved if pressing OK or Apply in DB preferences dialog.

We need a framework that makes it easy to always handle save of preferences correctly.

The framework may include:

  • a registry which returns a list of all available pref.predicates, including the expected default values (for all predicates allow override = true must be part of the default value)
  • when opening TaxEditor and when opening the DB preferences view all registered values are freshly read from DB
    • when opening pref view all values are written to the UI including values for allow override
    • when saving cache is emptied and reloaded for registered list of predicates, all values are read from the UI (if available there), only those values NOT yet handled via UI must NOT be deleted from cache (theses might be experimental feature with no configuration UI available yet)
    • when saving all predicates of the registration are saved to database
      • if value+allowOverride = default value => delete
      • otherwise: save value (API will decide if create or update is needed

====

This ticket should also include a check for all existing UI pages if they work and throw no exceptions (especially with a DB with empty CdmPreference table), see also #7848

====

Further improvements:

  • buttons "Apply" and "OK" should be disabled if no changes are available since last save, this also holds for the local prefs dialog => #8385

Related issues

Related to EDIT - feature request #7810: DB preference to make Specimen editors visibleClosedKatja Luther

Actions
Related to EDIT - bug #7848: Exceptions for some cdm preference pagesClosedPatrick Plitzner

Actions
Related to EDIT - feature request #7901: Make PreferencePredicates an interface to allow multiple implementations (e.g. for client apps, for grouping, for data type specific instances, etc.) ClosedAndreas Müller

Actions
Related to EDIT - bug #7236: Make available distribution status a database preference for TaxEditor distribution editorClosedKatja Luther

Actions
Related to EDIT - bug #7880: Implement centralized preference default loading strategyClosedAndreas Müller

Actions
Related to EDIT - bug #7856: Allow local override for distribution vocabulariesClosedKatja Luther

Actions
Related to EDIT - feature request #8062: Make default preferences deletable serversideClosedAndreas Müller

Actions
Related to EDIT - feature request #8045: Improve handling of default values and override in local preferencesFeedbackKatja Luther

Actions
Related to EDIT - bug #8385: Open issues in DB preferencesClosedKatja Luther

Actions
Blocked by EDIT - feature request #7902: Allow default values for PreferencePredicatesClosedAndreas Müller

Actions
Copied to EDIT - feature request #8092: set default for term and vocabulary selection preferences in selection wizardClosedKatja Luther

Actions
Copied to EDIT - feature request #8089: improve abcd preference pageNewKatja Luther

Actions
Actions

Also available in: Atom PDF