{"action":"created","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1494","repository_url":"https://api.github.com/repos/telefonicaid/fiware-orion","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1494/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1494/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1494","id":116382722,"number":1494,"title":"More granular subscriptions modes (create only, update only, delete only and combinations)","user":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/APIv2","name":"APIv2","color":"5319e7"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/backlog","name":"backlog","color":"009800"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/P5","name":"P5","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/33","html_url":"https://github.com/telefonicaid/fiware-orion/milestones/NGSIv2SpecPending","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/33/labels","id":1842664,"number":33,"title":"NGSIv2SpecPending","description":"This milestone holds issues for topics that need to be speciefied (or modified existing specifications) in the NGSIv2 WIP draft, i.e. the involve modifications the fiware-ngsiv2-reference.apib file.\r\n\r\nIt is expected that once a given issue in this milestone is finished in the fiware-ngsiv2-reference.apib file, the issue will move to a release milestone (such as \"1.3.0\", \"1.4.0\", etc.) in order to be implemented in Orion as reference implementation for NGSIv2.","creator":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":2,"state":"open","created_at":"2016-06-22T09:49:28Z","updated_at":"2016-08-26T10:28:20Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-11-11T17:28:44Z","updated_at":"2016-09-22T14:36:23Z","closed_at":null,"body":"NGSIv1 uses ONCHANGE notifications, which triggers each time a new context element (entrity + attribute) is created and/or updated. Thus, it is not granular enough to difference between create and update and it is not able to trigger notifications upon context element deletion.\r\n\r\nNGISIv2 should improve this and include the following modes:\r\n\r\n* Notify when the context element is created (only)\r\n* Notify when the context element is updated (only)\r\n* Notify when the context element is deleted (only)\r\n* Any combination of them (e.g. created+updated, created+deleted, created+updated+deleted, etc.)\r\n\r\nIn addition, notifications should include some way of specifying if the context element was created, updated or deleted.\r\n\r\nThe `condition` field in NGSIv2 subscriptions should be reviewed in order to see how it can be adapted to these behaviours.\r\n\r\n(Mabye there are duplicate issues about ONCREATE or ONDELETION semantics...)"},"comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/comments/248922254","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1494#issuecomment-248922254","issue_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1494","id":248922254,"user":{"login":"jmcanterafonseca","id":694782,"avatar_url":"https://avatars.githubusercontent.com/u/694782?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcanterafonseca","html_url":"https://github.com/jmcanterafonseca","followers_url":"https://api.github.com/users/jmcanterafonseca/followers","following_url":"https://api.github.com/users/jmcanterafonseca/following{/other_user}","gists_url":"https://api.github.com/users/jmcanterafonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcanterafonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcanterafonseca/subscriptions","organizations_url":"https://api.github.com/users/jmcanterafonseca/orgs","repos_url":"https://api.github.com/users/jmcanterafonseca/repos","events_url":"https://api.github.com/users/jmcanterafonseca/events{/privacy}","received_events_url":"https://api.github.com/users/jmcanterafonseca/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T14:36:23Z","updated_at":"2016-09-22T14:36:23Z","body":"We need to distinguish between actions referring to entities and actions referring to attributes.\r\n\r\nI guess that if attrs is not defined or empty we will be referring to the whole entity and if not we will be referring to a particular attribute or attributes. \r\n\r\n```\r\n{\r\n  \"subject\": {\r\n    \"actionType\": \"update\" (\"delete\", \"append\", \"create\"), \"change\"\r\n  }\r\n}\r\n```\r\n\r\nThe difference between update and change would be that change will imply a change in the attribute value whereas update will imply an update of the element which could result in a attribute value change or not.\r\n\r\nFor backwards compatibility, no actionType will mean \"change\". \r\n\r\nWhat do you think?"}}
{"actor":{"display_login":"jmcanterafonseca"}}