Picolab / aries-cloudagent-pico

Aries Cloud Agent - Pico
MIT License
4 stars 1 forks source link

The byname connections app needs to be able to sync its list of connections with ACA ruleset #19

Open b1conrad opened 2 years ago

b1conrad commented 2 years ago

Its main page should show connections already made in both categories. To do this, it'll have to stay in sync with io.picolabs.aca and its list of connections.

b1conrad commented 2 years ago

While you're at it, future self, please write code so that the "make connection" buttons work!

b1conrad commented 2 years ago

The following events raised by the io.picolabs.aca ruleset may be of use:

Hm. The first two contain full information, but it is not actionable until the last one is raised.

I wonder if

    select when aca new_connection
       label re#(.+)# my_did re#(.+)# their_vk re#(.+)# their_did re#(.+)# their_endpoint re#(.+)#
       setting(label,my_did,their_vk,their_did,their_endpoint)
       then aca connections_changed

and

    select when aca deleted_connection
       their_vk re#(.+)#
       setting(their_vk)
       then aca connections_changed

would keep the attributes of the first event around long enough for them to be of use when the second event arrives?

A documentation page implies that it ought to... (as does this one)

b1conrad commented 2 years ago

In any case, we should have a way to synchronize the two rulesets. But, they are installed in the same pico and we can't query from one ruleset to another in the same pico.

b1conrad commented 2 years ago

The two commits ending in this one demonstrate that the eventex's listed above work as specified!