Project

General

Profile

feature request #8062

Make default preferences deletable serverside

Added by Andreas Müller 8 months ago. Updated 5 months ago.

Status:
In Progress
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
02/04/2019
Due date:
% Done:

0%

Severity:
normal

Description

Currently when storing a CdmPreference it can not be checked if it holds the default value and therefore can be deleted. This is because CdmPreference holds the predicate as string only and therefore does not hold the default value. Only for those predicates defined server side it is possible to retrieve default value.

There are various possibilities to pass the default value.

  1. Use IPreferencePredicate in CdmPreference.prefKey instead of String
  2. Override set(CdmPreference) in PreferenceService to allow to pass an extra attribute "default value"
  3. Leave it to the client to delete default values (this requires a delete method)
  4. TBC

Related issues

Related to Edit - bug #7849: Improve DB Preferences handling and saving in TaxEditor Feedback 10/23/2018
Related to Edit - feature request #7902: Allow default values for PreferencePredicates In Progress 11/12/2018

Associated revisions

Revision 3eecdd85 (diff)
Added by Andreas Müller 8 months ago

ref #8062 first implementation to delete default preferences (only for cdmlib predicates)

Revision 0504b50c (diff)
Added by Andreas Müller 8 months ago

ref #8062 fix NPE in TaxonGraphTest

Revision 3c2c16c0 (diff)
Added by Katja Luther 8 months ago

ref #8062: add editorPreferencePredicates to PreferencePredicates and create enums

History

#1 Updated by Andreas Müller 8 months ago

  • Related to bug #7849: Improve DB Preferences handling and saving in TaxEditor added

#2 Updated by Andreas Müller 8 months ago

#3 Updated by Andreas Müller 8 months ago

The first implementation seems to work for all server side preferences using PreferencePredicates. This is only a first step.

#4 Updated by Andreas Müller 8 months ago

  • Status changed from New to In Progress
  • Target version changed from Release 5.5 to Release 5.6

#5 Updated by Andreas Müller 7 months ago

  • Priority changed from New to Highest

#6 Updated by Andreas Müller 5 months ago

  • Target version changed from Release 5.6 to Release 5.7

#7 Updated by Andreas Müller 5 months ago

  • Target version changed from Release 5.7 to Release 5.8

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)