Uploaded image for project: 'GPII - Global Public Inclusive Infrastructure'
  1. GPII - Global Public Inclusive Infrastructure
  2. GPII-3298

Unsynced PSP display and modified preference whose value is presented via array

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FlowManager
    • Labels:
      None

      Description

      The current merge logic to merge and save received preferences into the preferences safe doesn't expect received preferences have preference paths to be removed. This causes a problem when the dictionary option is removed from the supporting tool. Problem in detail:

      If the preferences saved in the preferences safe before the save looks like:

      "flat": {
          "name": "Default context",
          "contexts": {
              "gpii-default": {
                  "name": "Default preferences",
                  "preferences": {
                      "http://registry.gpii.net/common/supportTool": ["dictionary"],
                      "http://registry.gpii.net/common/fontSize": 20
                  }
              }
          }
      }
      

      When dictionary is removed from the supporting tool via PSP, the cloud receives:

      "flat": {
          "name": "Default context",
          "contexts": {
              "gpii-default": {
                  "name": "Default preferences",
                  "preferences": {
                      "http://registry.gpii.net/common/supportTool": [],
                      "http://registry.gpii.net/common/fontSize": 20
                  }
              }
          }
      }
      

      Note "dictionary" is removed from the "supportingTool" array.

      With the current merge logic, after the merge, "preferences" looks like:

      ...
      "preferences": {
          "http://registry.gpii.net/common/supportTool": ["dictionary"],
          "http://registry.gpii.net/common/fontSize": 20
      }
      ...
      

      The removal of "dictionary" is not saved properly.

      Assuming the removal is save successfully, ASTEA team reports that PSP expects to receive a notification that "dictionary" option is turned off instead of being removed completely. This indicates that the structure for saving supporting tools probably should be moved away from using an array to:

      ...
      "preferences": {
          "http://registry.gpii.net/common/supportTool": {
              "dictionary": false
          }
      }
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              cli@ocad.ca Cindy Qi Li
              Reporter:
              cli@ocad.ca Cindy Qi Li
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: