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

PSPChannel read API cannot read UIO+ setting

    XMLWordPrintable

    Details

      Description

      PSPChannel read API uses settings handler get() method to read setting values.

      The read of uioPlus settings fails because the communication between Local Flow Manager and UIO+("net.gpii.uioPlus") is one way from LFM to UIO+ but not vice versas: UIO+ applies setting changes sent from LFM but doesn't return settings set via UIO+ back to LFM.

      Steps to test the read of UIO+ settings using VM provided in the GPII/windows repo:

      1. Start the VM;

      2. In the VM, open a powershell terminal and run:

      cd V:
      npm install
      

      3. Once "npm install" completes, go to the directory where GPII/windows is pulled on the local computer, edit the file @ node_modules/gpii-universal/examples/pspChannelClient/pspChannelClientReadPrefs.js, change line 54-56 to:

      "http://registry\\.gpii\\.net/common/selfVoicing/enabled": {
          value: false
      }
      

      4. Go back to the previous powershell terminal in the VM, run:

      npm start
      

      5. Open another powershell terminal in the VM, run:

      cd V:\node_modules\gpii-universal\examples\pspChannelClient
      node .\pspChannelClientReadPrefs.js
      

      The following error message is returned:

      ## Received the following message: {
          "type": "preferenceReadFail"
      }
      Preference cannot be read
      

      If the read succeeds, the preference value should be returned.

      A side note: An example of reading a preference value successfully is to repeat the step 3 and edit the same chunk of code to:

      "http://registry\\.gpii\\.net/common/DPIScale": {
          value: 0
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jobara Justin Obara
              Reporter:
              cli@ocad.ca Cindy Qi Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: