{"action":"opened","issue":{"url":"https://api.github.com/repos/magda-io/magda/issues/2222","repository_url":"https://api.github.com/repos/magda-io/magda","labels_url":"https://api.github.com/repos/magda-io/magda/issues/2222/labels{/name}","comments_url":"https://api.github.com/repos/magda-io/magda/issues/2222/comments","events_url":"https://api.github.com/repos/magda-io/magda/issues/2222/events","html_url":"https://github.com/magda-io/magda/issues/2222","id":448696657,"node_id":"MDU6SXNzdWU0NDg2OTY2NTc=","number":2222,"title":"Registry API fails to send out live notifications for aspect patch events","user":{"login":"t83714","id":674387,"node_id":"MDQ6VXNlcjY3NDM4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/674387?v=4","gravatar_id":"","url":"https://api.github.com/users/t83714","html_url":"https://github.com/t83714","followers_url":"https://api.github.com/users/t83714/followers","following_url":"https://api.github.com/users/t83714/following{/other_user}","gists_url":"https://api.github.com/users/t83714/gists{/gist_id}","starred_url":"https://api.github.com/users/t83714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t83714/subscriptions","organizations_url":"https://api.github.com/users/t83714/orgs","repos_url":"https://api.github.com/users/t83714/repos","events_url":"https://api.github.com/users/t83714/events{/privacy}","received_events_url":"https://api.github.com/users/t83714/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-05-27T07:00:01Z","updated_at":"2019-05-27T07:00:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Problem description\r\n\r\nRegistry API fails to send out live notifications for aspect patch events.\r\n\r\nYou will have to trigger the event by either restart indexer or registry.\r\n\r\n### Problem reproduction steps\r\n- Wait until indexer webhook up to date\r\n- Patch an aspect e.g. through front end fetch api (with admin account):\r\n```js\r\nfetch(\"http://192.168.99.100:30100/api/v0/registry/records/magda-ds-a4298a60-8022-11e9-a1e4-a98a09e06f97--6767da09-53d5-48dd-82a9-78e2365ef708/aspects/dataset-access-control\", {\r\n  \"method\": \"PATCH\",\r\n  \"headers\": {\r\n    \"Content-type\": \"application/json\"\r\n  },\r\n  \"body\": JSON.stringify([\r\n\t{\r\n\t  \"op\": \"add\",\r\n\t  \"path\": \"/preAuthorisedPermissionIds\",\r\n\t  \"value\": [\r\n\t\t\"54466898-5039-4c61-b051-8592888ec022\"\r\n\t  ]\r\n\t}\r\n  ])\r\n})\r\n```\r\n- The lastest event (type 5) won't trigger a webhook call to indexer\r\n- If you restart indexer, the last event will be picked up by indexer.\r\n\r\n### Screenshot / Design / File reference\r\n"}}
{"actor":{"display_login":"t83714"}}