{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/frappe/issues/1963","repository_url":"https://api.github.com/repos/frappe/frappe","labels_url":"https://api.github.com/repos/frappe/frappe/issues/1963/labels{/name}","comments_url":"https://api.github.com/repos/frappe/frappe/issues/1963/comments","events_url":"https://api.github.com/repos/frappe/frappe/issues/1963/events","html_url":"https://github.com/frappe/frappe/issues/1963","id":170582015,"number":1963,"title":"frappe.async.realtime_publish not working","user":{"login":"gaurav-naik","id":17795124,"avatar_url":"https://avatars.githubusercontent.com/u/17795124?v=3","gravatar_id":"","url":"https://api.github.com/users/gaurav-naik","html_url":"https://github.com/gaurav-naik","followers_url":"https://api.github.com/users/gaurav-naik/followers","following_url":"https://api.github.com/users/gaurav-naik/following{/other_user}","gists_url":"https://api.github.com/users/gaurav-naik/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurav-naik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurav-naik/subscriptions","organizations_url":"https://api.github.com/users/gaurav-naik/orgs","repos_url":"https://api.github.com/users/gaurav-naik/repos","events_url":"https://api.github.com/users/gaurav-naik/events{/privacy}","received_events_url":"https://api.github.com/users/gaurav-naik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-11T07:01:12Z","updated_at":"2016-08-11T10:18:50Z","closed_at":"2016-08-11T10:18:50Z","body":"Use case : To display a popup in ERPNext desk on REST API call.\r\n\r\nhttps://github.com/gaurav-naik/awfis_erpnext/blob/master/awfis_erpnext/awfis_erpnext/awf.py#L215\r\n\r\nThis is working successfully on a server running Frappe v7.0.16\r\n\r\n![awf_popup_working](https://cloud.githubusercontent.com/assets/17795124/17580578/48aac0e2-5fbd-11e6-99bb-4407c3454550.png)\r\n\r\nFeature stopped working after updating bench. Bench is currently on v7.0.19  \r\n\r\nTried the following code as well. No exception raised, no popup either.\r\n```\r\n@frappe.whitelist(allow_guest=True)\r\ndef popuptest():\r\n\tusers = []\r\n\ttry:\r\n\t\tfor u in frappe.get_all(\"User\", fields=['name'], filters={\"role\": \"Sales User\"}):\r\n\t\t\t frappe.publish_realtime(\"msgprint\", \"Hello!\", user=u.name)\r\n\t\t\t users.append(u.name)\r\n\texcept Exception, e:\r\n\t\tfrappe.msgprint(e)\r\n\telse:\r\n\t\tfrappe.msgprint(\"Published to: {u}\".format(u=users))\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/frappe/frappe/issues/comments/239123208","html_url":"https://github.com/frappe/frappe/issues/1963#issuecomment-239123208","issue_url":"https://api.github.com/repos/frappe/frappe/issues/1963","id":239123208,"user":{"login":"rmehta","id":140076,"avatar_url":"https://avatars.githubusercontent.com/u/140076?v=3","gravatar_id":"","url":"https://api.github.com/users/rmehta","html_url":"https://github.com/rmehta","followers_url":"https://api.github.com/users/rmehta/followers","following_url":"https://api.github.com/users/rmehta/following{/other_user}","gists_url":"https://api.github.com/users/rmehta/gists{/gist_id}","starred_url":"https://api.github.com/users/rmehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmehta/subscriptions","organizations_url":"https://api.github.com/users/rmehta/orgs","repos_url":"https://api.github.com/users/rmehta/repos","events_url":"https://api.github.com/users/rmehta/events{/privacy}","received_events_url":"https://api.github.com/users/rmehta/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T10:18:50Z","updated_at":"2016-08-11T10:18:50Z","body":"Also close the issue!"}}
{"actor":{"display_login":"rmehta"}}