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

Support for encoding "settings with memory" in preferences sets

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Cloud 1
    • Fix Version/s: None
    • Component/s: Quick Strip Set
    • Labels:
      None

      Description

      The recently implemented "auto save" handler automatically saves all preferences changes to the cloud. This behavior needs to be changed to:

      1. Only auto-save the settings which have metadata of "autosave".

      • The "metadata" sits at the top level in a preference set, immediately next to "preferences":
      "metadata": [
          {
              "type": "autosave",
              "scope": ["http://registry.gpii.net/common/fontSize"],
          }
      ...
      ]
      

      2. Implement a new operation in the core to save EVERYTHING explicitly, such as when the save button is clicked.

      • One option for implementing this without a new API is to simply add a new modelised field in the PSPChannel's shared model which is "saveButtonClickCount" which increments by 1 every time the button is clicked.

      The implementation plan can be found in this meeting notes.

        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:
                Resolved: