Sort out subscription management
At the moment if you change a subscription and restart the soar_bus
the client ends up with both the old and new subscription.
- make a script to manually unsubscribe a queue from a topic so we can fix it where it's wrong
- update the POST /client endpoint to accept multiple subscriptions
- update the client_create.py script to accept multiple subscriptions
-
turn the client subscription into a list of subscriptions in the config file
-
accept
subscription
string singular -
accept
subscriptions
list of strings
-
accept
- make an authed api call that lets a client update their subscription list
-
on api call (or
soar_bus
start up)- iterate over current bindings and add if not present
- iterate over existing bindings and remove if not current
- doing it like this is slower and less efficient but avoids missing messages during the change
-
make changes in the adapter implementations to make the api call on connect
(enables users to change their subscriptions by editing their config file)
- backbone-adapter-python
- backbone-adapter-javascript