Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1065

osapi (oslite) should support user mediated requests.

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1-BETA1
    • Component/s: Javascript
    • Labels:
      None

      Description

      According to osapi spec any request can be user mediated. (there is no more osapi.ui.*). Shindig to support mechanism for user mediated requests.

      Changes:

      • Containers can via configuration let shindig JS know which requests it want to be user mediated.
      • Predefined hooks are used to pass the request to the container and get the response back.
      • A new type of request, osapi.newUiRequest is defined to handle user mediated case. Even though this is in global space, it need not be visible to the developer directly. Developer uses the osapi as today.
      • batch.js is modified to allow handling of user mediated requests.
      • So that developer can know which request may get user mediated, every request exposes a boolean field userMediated (this is not part of standard but could be good to have something like this for future version). This would allow developers to write code like below,

      var r = osapi.activites.create();
      if (r.userMediated) {
      // skip creating activity, as I don't want to bug the user.
      } else {
      r.execute();
      }

        Attachments

        1. ui.patch
          24 kB
          Sachin Shenoy
        2. ui-introspected.patch
          31 kB
          Sachin Shenoy

          Activity

            People

            • Assignee:
              lryan Louis Ryan
              Reporter:
              therealsachin Sachin Shenoy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 72h
                72h
                Logged:
                Time Spent - Not Specified
                Not Specified