Register callbacks for edit component via AC JS

XMLWordPrintable

      The JS API should provide ways to register callbacks for submit and cancel

      Testing notes:

      • It has data input
        • Handle situation when mandatory information was not provided
          • 10s timeout if add-on didn't return data.
        • Consider empty input
          • Add-on can return empty string but empty object would trigger error on save. A submitError event will be returned
        • Will it handle invalid input?
          • A submitError event will be returned
        • Is it forgiving of user input mistakes?
          • Add-on should validate input before send back
        • What if it failed to process input?
          • A submitError event will be returned
        • What if data is incomplete?
          • Guarded by Content API
        • What if it takes time to return/display result?
          • Callback is asynchronous
        • Who can access data? Can anonymous see it?
          • Content view would check the permission.
        • What if there's malicious output?
          • Guarded by Content API

              Assignee:
              Ran
              Reporter:
              Ran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: