)]}'
{"zaqar_ui/api/zaqar.py":[{"author":{"_account_id":19450,"name":"David Cusatis","email":"dcusati@us.ibm.com","username":"davidcusatis1"},"change_message_id":"919538f73e8ba12caede960bfa3cd78c6f0d6310","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    return sub.subscribe(request[\u0027queue\u0027], subscriber, ttl, options)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"def subscription_list(request, subscriber):"},{"line_number":95,"context_line":"    return subscriber.channels"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a5ae5dd_f57f9bdd","line":95,"updated":"2016-02-08 03:18:27.000000000","message":"According to the API docs I\u0027ve been reading (https://wiki.openstack.org/wiki/Python_Client_Library_(Marconi)) it seems we\u0027d need to pass a subscriber zaqar client object to subscription_list in order to get what queues a subscriber is subscribed to. I don\u0027t know if this is the best way to do this. Is there some other way to view a queue/subscriber relationship?","commit_id":"0b29fe270c8ca3e3de253bbd3087d7a8948b2dc6"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"2851d3f5d5a7c5d66db5781b51fed45d6180374f","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    return sub.subscribe(request[\u0027queue\u0027], subscriber, ttl, options)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"def subscription_list(request, subscriber):"},{"line_number":95,"context_line":"    return subscriber.channels"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a5ae5dd_6202cf0d","line":95,"in_reply_to":"5a5ae5dd_f57f9bdd","updated":"2016-02-09 02:50:28.000000000","message":"The relationship between queue and subscription is a little bit like tenants-\u003eusers, it\u0027s a N:N mapping. As a user, I can create a subscription(e.g. http://trigger.me) to queue A, and more subscriptions for an URL or email the the queue. Meanwhile, I can create a subscription with same URL/email to queue B as well.\n\nAs for subscriptions list, that\u0027s one of the topics I discussed with tqtran. The hard thing is without queue name, you can\u0027t list subscriptions.\n\nHope this make things a little bit clear.","commit_id":"0b29fe270c8ca3e3de253bbd3087d7a8948b2dc6"}],"zaqar_ui/static/dashboard/project/subscriptions/table/table.controller.js":[{"author":{"_account_id":19450,"name":"David Cusatis","email":"dcusati@us.ibm.com","username":"davidcusatis1"},"change_message_id":"919538f73e8ba12caede960bfa3cd78c6f0d6310","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        zaqar.getSubscriptions().then(getSubscriptionSuccess, getSubscriptionFailure);"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        function getSubscriptionFailure(response){"},{"line_number":51,"context_line":"            ctrl.subscriptions \u003d response"},{"line_number":52,"context_line":"        }"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        function getSubscriptionSuccess(response) {"}],"source_content_type":"text/javascript","patch_set":1,"id":"5a5ae5dd_95d0a7ca","line":51,"updated":"2016-02-08 03:18:27.000000000","message":"personally, in angular, I like having a promise failure method, and a promise success failure. not sure if it\u0027s necessary consider we send the error message to toast in the service. was wondering opinions on here vs in the service printing the error?","commit_id":"0b29fe270c8ca3e3de253bbd3087d7a8948b2dc6"}]}
