Note sure if you would consider this a bug, but I thought I would flag it because the behavior is not expected to me.
Actual Behaviour
When an operation has dependencies, it's done status is set to true before the dependencies are done. For example, when an AID with witnesses is creating a registry, you get:
Note sure if you would consider this a bug, but I thought I would flag it because the behavior is not expected to me.
Actual Behaviour
When an operation has dependencies, it's
done
status is set totrue
before the dependencies are done. For example, when an AID with witnesses is creating a registry, you get:Notice how the top-level operation is
done
, but it's dependencies are not. The same happens when issuing credentials:Expected behaviour
Top level operation
done
should also depend on its child operations. So something like thisdone = depends.done === true ? self.done : false
Notes
This could be implemented at client level of course. But i suspect others will run into the same issue unless this is well documented.