Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

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

Open
b1conrad opened this issue Mar 11, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@b1conrad
Copy link
Member

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 b1conrad added the enhancement New feature or request label Mar 11, 2022
@b1conrad b1conrad self-assigned this Mar 11, 2022
@b1conrad
Copy link
Member Author

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

@b1conrad
Copy link
Member Author

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

  • aca:new_connection
  • aca:deleted_connection
  • aca:connections_changed

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
Copy link
Member Author

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
Copy link
Member Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant