LockInfo results missing a layer of hierarchy

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Dev Tools 2020-03-09, Dev Tools 2020-03-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      It's obvious we're missing a layer of hierarchy in the structure.

      The group of repeating keys (resourceId,granted,pending) should instead be the keys of a subobject created for each lock in the bucket.

      existing (bad) format:

           // add an element to result object:
            //     "lockInfo": [
            //         // for each nonempty bucket in LockManager, add a suboject.
            //         {
            //             "resourceId": <string>,
            //             "granted": [ {}, ... ],  // array of lock requests
            //             "pending": [ {}, ... ],  // array of lock requests
            //
            //             // this triple of repeated keys are used to represent each lock in a bucket
            //             "resourceId": <string>,
            //             "granted": [ {}, ... ],  // array of lock requests
            //             "pending": [ {}, ... ],  // array of lock requests
            //
            //             ...
            //         },
            //         ...
            //     ]
      
      

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: