Uploaded image for project: 'Repository'
  1. Repository
  2. REPOSITORY-480

Change the storage of empty repository data

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4.0
    • 4.4.0
    • None
    • None
    • 4.4 RC4, 4.4.0

      Empty data are stored in the repository with a specific value (_infinity+1 for long values for exemple)

      This way, we can make the differnce between empty or not present values. But the JCR requests, not using the data holder API but the Expression onesee these specific values as normal ones and a NotExpression will saay that a data is present even if it is empty. A MetadataExpression will return the specific value (when the data holder API returns null)

      We decided to change the storage, rather than migrate the Expression API.

      When a data is present but empty, set an ametys-internal metadata for this data to specify that it is present but empty. This solution is prefered as an only propoerty containing a list of empty data, because complex data (using nodes instead of properties) already use a system with a boolean metadata. The list then will contain some of the emtpy data but not the other ones

          [REPOSITORY-480] Change the storage of empty repository data

          Caroline Bayle made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Cédric Damioli made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Available for review [ 10005 ] New: Resolved [ 5 ]
          Caroline Bayle made changes -
          Assignee Original: Caroline Bayle [ cbayle ] New: Cédric Damioli [ cedric ]
          Caroline Bayle made changes -
          Status Original: Reopened [ 4 ] New: Available for review [ 10005 ]
          Caroline Bayle made changes -
          Assignee New: Caroline Bayle [ cbayle ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Caroline Bayle made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Functional review OK [ 10207 ] New: Resolved [ 5 ]
          Magali Franchet made changes -
          Status Original: Available for review [ 10005 ] New: Functional review OK [ 10207 ]
          Caroline Bayle made changes -
          Assignee Original: Caroline Bayle [ cbayle ]
          Caroline Bayle made changes -
          Status Original: In Progress [ 3 ] New: Available for review [ 10005 ]
          Caroline Bayle made changes -
          Status Original: Reopened [ 4 ] New: In Progress [ 3 ]

            cedric Cédric Damioli
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: