Project

General

Profile

feature request #7902

Allow default values for PreferencePredicates

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

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
11/12/2018
Due date:
% Done:

100%

Severity:
normal

Related issues

Related to Edit - feature request #8062: Make default preferences deletable serverside In Progress 02/04/2019
Related to Edit - task #8001: Update CDM preference paths for v5.5 New 01/18/2019
Blocks Edit - bug #7849: Improve DB Preferences handling and saving in TaxEditor Closed 10/23/2018
Copied to Edit - feature request #9439: Split PreferencePredicates depending on their type New 02/01/2021

Associated revisions

Revision c47fd6c0 (diff)
Added by Andreas Müller over 2 years ago

ref #7901, ref #7902 Create IPreferencePredicate and include getDefaultValue

Revision 1b996cca (diff)
Added by Andreas Müller over 2 years ago

ref #7902, ref #7901 add generic to allow return types for defaultValue and to allow toString and fromString methods

History

#1 Updated by Andreas Müller over 2 years ago

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

#2 Updated by Andreas Müller over 2 years ago

  • Status changed from New to In Progress
  • Assignee changed from Andreas Müller to Katja Luther
  • Priority changed from New to Highest

Generally implemented but for existing predicates we still need to define default values.

For boolean and/or UUIDs /UUID Lists and maybe others we may think about separate enums to explicitly handle getters/setters for the type (to convert from String to Type and back). But not sure if this really works as expected. I have added a generic to IPreferencePredicate to allow the return value to be more specific then Object for a certain enum.

#3 Updated by Andreas Müller about 2 years ago

#4 Updated by Andreas Müller about 2 years ago

  • Assignee changed from Katja Luther to Andreas Müller

As this is implemented on TaxEditor side I take it back to me for remaining issues.

#5 Updated by Andreas Müller about 2 years ago

  • Target version changed from Release 5.5 to Release 5.6

#6 Updated by Andreas Müller about 2 years ago

  • Target version changed from Release 5.6 to Release 5.7

#7 Updated by Andreas Müller almost 2 years ago

  • Target version changed from Release 5.7 to Release 5.8

#8 Updated by Andreas Müller 3 months ago

#9 Updated by Andreas Müller 3 months ago

  • Related to task #8001: Update CDM preference paths for v5.5 added

#10 Updated by Andreas Müller 3 months ago

Andreas Müller wrote:

Generally implemented but for existing predicates we still need to define default values.

Moved this to preferences update ticket #8001

#11 Updated by Andreas Müller 3 months ago

Andreas Müller wrote:

For boolean and/or UUIDs /UUID Lists and maybe others we may think about separate enums to explicitly handle getters/setters for the type (to convert from String to Type and back). But not sure if this really works as expected. I have added a generic to IPreferencePredicate to allow the return value to be more specific then Object for a certain enum.

Moved this to new ticket #9439

#12 Updated by Andreas Müller 3 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

As open issues are handled in separate tickets now, we can close this one.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)