{"action":"created","comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/comments/192982266","pull_request_review_id":125860467,"id":192982266,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Mjk4MjI2Ng==","diff_hunk":"@@ -2856,6 +2876,15 @@ static bool createEntity\n     return false;\n   }\n \n+  /* Search for a potential date expiration attribute */\n+  mongo::Date_t dateExpiration;\n+\n+  if (!processDateExpirationAtEntityCreation(attrsV, &dateExpiration, errDetail, oe))","path":"src/lib/mongoBackend/MongoCommonUpdate.cpp","position":144,"original_position":144,"commit_id":"ba2fa34bfb61822dfac9c1ac9f295c52b346e073","original_commit_id":"ba2fa34bfb61822dfac9c1ac9f295c52b346e073","user":{"login":"fgalan","id":1534240,"node_id":"MDQ6VXNlcjE1MzQyNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1534240?v=4","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},"body":"`oe` is a pointer to `OrionError` (line 2848) so I  think is ok.","created_at":"2018-06-05T08:09:59Z","updated_at":"2018-06-05T08:09:59Z","html_url":"https://github.com/telefonicaid/fiware-orion/pull/3173#discussion_r192982266","pull_request_url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/3173","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/comments/192982266"},"html":{"href":"https://github.com/telefonicaid/fiware-orion/pull/3173#discussion_r192982266"},"pull_request":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/3173"}},"in_reply_to_id":192833781},"pull_request":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/3173","id":186974653,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg2OTc0NjUz","html_url":"https://github.com/telefonicaid/fiware-orion/pull/3173","diff_url":"https://github.com/telefonicaid/fiware-orion/pull/3173.diff","patch_url":"https://github.com/telefonicaid/fiware-orion/pull/3173.patch","issue_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/3173","number":3173,"state":"open","locked":false,"title":"#3000 issue - allow creation transient entities","user":{"login":"arigliano","id":11073619,"node_id":"MDQ6VXNlcjExMDczNjE5","avatar_url":"https://avatars3.githubusercontent.com/u/11073619?v=4","gravatar_id":"","url":"https://api.github.com/users/arigliano","html_url":"https://github.com/arigliano","followers_url":"https://api.github.com/users/arigliano/followers","following_url":"https://api.github.com/users/arigliano/following{/other_user}","gists_url":"https://api.github.com/users/arigliano/gists{/gist_id}","starred_url":"https://api.github.com/users/arigliano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arigliano/subscriptions","organizations_url":"https://api.github.com/users/arigliano/orgs","repos_url":"https://api.github.com/users/arigliano/repos","events_url":"https://api.github.com/users/arigliano/events{/privacy}","received_events_url":"https://api.github.com/users/arigliano/received_events","type":"User","site_admin":false},"body":"This PR fixes #3000 issue.\r\nIt was implemented the functionality that enables to define transient entities, by specifiyng the reserved attribute \"dateExpiration\".\r\nIn detail, has been implemented a set of dedicated methods (in dateExpiration file), for each event of the entity lifecicle (create, update and attribute deletion), which manage the specific expiration attribute, for which a TTL index is created at mongo layer (similar way as location attribute),\r\nThe attribute in the entity must be a string containing an ISO8601 date, with explictly defined type (DateTime).\r\n\r\nAttribute example:\r\n\r\n\"dateExpiration\":{\r\n      \t    \"type\": \"DateTime\",\r\n      \t    \"value\": \"2018-05-05T14:25:05+00:00\"\r\n      }\r\n\t  \r\nIf the value represents a past date, the entity is considered expired and it will be removed in the next iteration of the Mongo TTL monitor (default 60 secs) \r\nThe dateExpiration attribute will appear both in attrs array and at root entity level, as like as location attribute.\r\n\t  \r\nTests are being written...functionalTest (sh scripts way) or unittest (cpp way)??","created_at":"2018-05-09T16:28:52Z","updated_at":"2018-06-05T08:09:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d3138b2be0c8f9ada58c404acbdf400e55c212e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/3173/commits","review_comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/3173/comments","review_comment_url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/3173/comments","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-orion/statuses/ba2fa34bfb61822dfac9c1ac9f295c52b346e073","head":{"label":"arigliano:3000_allow_creation_transient_entities","ref":"3000_allow_creation_transient_entities","sha":"ba2fa34bfb61822dfac9c1ac9f295c52b346e073","user":{"login":"arigliano","id":11073619,"node_id":"MDQ6VXNlcjExMDczNjE5","avatar_url":"https://avatars3.githubusercontent.com/u/11073619?v=4","gravatar_id":"","url":"https://api.github.com/users/arigliano","html_url":"https://github.com/arigliano","followers_url":"https://api.github.com/users/arigliano/followers","following_url":"https://api.github.com/users/arigliano/following{/other_user}","gists_url":"https://api.github.com/users/arigliano/gists{/gist_id}","starred_url":"https://api.github.com/users/arigliano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arigliano/subscriptions","organizations_url":"https://api.github.com/users/arigliano/orgs","repos_url":"https://api.github.com/users/arigliano/repos","events_url":"https://api.github.com/users/arigliano/events{/privacy}","received_events_url":"https://api.github.com/users/arigliano/received_events","type":"User","site_admin":false},"repo":{"id":103119845,"node_id":"MDEwOlJlcG9zaXRvcnkxMDMxMTk4NDU=","name":"fiware-orion","full_name":"arigliano/fiware-orion","owner":{"login":"arigliano","id":11073619,"node_id":"MDQ6VXNlcjExMDczNjE5","avatar_url":"https://avatars3.githubusercontent.com/u/11073619?v=4","gravatar_id":"","url":"https://api.github.com/users/arigliano","html_url":"https://github.com/arigliano","followers_url":"https://api.github.com/users/arigliano/followers","following_url":"https://api.github.com/users/arigliano/following{/other_user}","gists_url":"https://api.github.com/users/arigliano/gists{/gist_id}","starred_url":"https://api.github.com/users/arigliano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arigliano/subscriptions","organizations_url":"https://api.github.com/users/arigliano/orgs","repos_url":"https://api.github.com/users/arigliano/repos","events_url":"https://api.github.com/users/arigliano/events{/privacy}","received_events_url":"https://api.github.com/users/arigliano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arigliano/fiware-orion","description":"FIWARE Orion Context Broker","fork":true,"url":"https://api.github.com/repos/arigliano/fiware-orion","forks_url":"https://api.github.com/repos/arigliano/fiware-orion/forks","keys_url":"https://api.github.com/repos/arigliano/fiware-orion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arigliano/fiware-orion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arigliano/fiware-orion/teams","hooks_url":"https://api.github.com/repos/arigliano/fiware-orion/hooks","issue_events_url":"https://api.github.com/repos/arigliano/fiware-orion/issues/events{/number}","events_url":"https://api.github.com/repos/arigliano/fiware-orion/events","assignees_url":"https://api.github.com/repos/arigliano/fiware-orion/assignees{/user}","branches_url":"https://api.github.com/repos/arigliano/fiware-orion/branches{/branch}","tags_url":"https://api.github.com/repos/arigliano/fiware-orion/tags","blobs_url":"https://api.github.com/repos/arigliano/fiware-orion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arigliano/fiware-orion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arigliano/fiware-orion/git/refs{/sha}","trees_url":"https://api.github.com/repos/arigliano/fiware-orion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arigliano/fiware-orion/statuses/{sha}","languages_url":"https://api.github.com/repos/arigliano/fiware-orion/languages","stargazers_url":"https://api.github.com/repos/arigliano/fiware-orion/stargazers","contributors_url":"https://api.github.com/repos/arigliano/fiware-orion/contributors","subscribers_url":"https://api.github.com/repos/arigliano/fiware-orion/subscribers","subscription_url":"https://api.github.com/repos/arigliano/fiware-orion/subscription","commits_url":"https://api.github.com/repos/arigliano/fiware-orion/commits{/sha}","git_commits_url":"https://api.github.com/repos/arigliano/fiware-orion/git/commits{/sha}","comments_url":"https://api.github.com/repos/arigliano/fiware-orion/comments{/number}","issue_comment_url":"https://api.github.com/repos/arigliano/fiware-orion/issues/comments{/number}","contents_url":"https://api.github.com/repos/arigliano/fiware-orion/contents/{+path}","compare_url":"https://api.github.com/repos/arigliano/fiware-orion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arigliano/fiware-orion/merges","archive_url":"https://api.github.com/repos/arigliano/fiware-orion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arigliano/fiware-orion/downloads","issues_url":"https://api.github.com/repos/arigliano/fiware-orion/issues{/number}","pulls_url":"https://api.github.com/repos/arigliano/fiware-orion/pulls{/number}","milestones_url":"https://api.github.com/repos/arigliano/fiware-orion/milestones{/number}","notifications_url":"https://api.github.com/repos/arigliano/fiware-orion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arigliano/fiware-orion/labels{/name}","releases_url":"https://api.github.com/repos/arigliano/fiware-orion/releases{/id}","deployments_url":"https://api.github.com/repos/arigliano/fiware-orion/deployments","created_at":"2017-09-11T10:00:40Z","updated_at":"2018-05-30T14:44:03Z","pushed_at":"2018-05-30T14:44:01Z","git_url":"git://github.com/arigliano/fiware-orion.git","ssh_url":"git@github.com:arigliano/fiware-orion.git","clone_url":"https://github.com/arigliano/fiware-orion.git","svn_url":"https://github.com/arigliano/fiware-orion","homepage":"http://catalogue.fiware.org/enablers/publishsubscribe-context-broker-orion-context-broker","size":34468,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"telefonicaid:master","ref":"master","sha":"ae72acf9e8eeaacaf4eb138f7de37bfee4514c6b","user":{"login":"telefonicaid","id":968363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2ODM2Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/968363?v=4","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":12808420,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgwODQyMA==","name":"fiware-orion","full_name":"telefonicaid/fiware-orion","owner":{"login":"telefonicaid","id":968363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2ODM2Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/968363?v=4","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/fiware-orion","description":"FIWARE Orion Context Broker","fork":false,"url":"https://api.github.com/repos/telefonicaid/fiware-orion","forks_url":"https://api.github.com/repos/telefonicaid/fiware-orion/forks","keys_url":"https://api.github.com/repos/telefonicaid/fiware-orion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/fiware-orion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/fiware-orion/teams","hooks_url":"https://api.github.com/repos/telefonicaid/fiware-orion/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/events","assignees_url":"https://api.github.com/repos/telefonicaid/fiware-orion/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/fiware-orion/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/fiware-orion/tags","blobs_url":"https://api.github.com/repos/telefonicaid/fiware-orion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/fiware-orion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/fiware-orion/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/fiware-orion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-orion/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/fiware-orion/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/fiware-orion/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/fiware-orion/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/fiware-orion/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/fiware-orion/subscription","commits_url":"https://api.github.com/repos/telefonicaid/fiware-orion/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/fiware-orion/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/fiware-orion/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/fiware-orion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/fiware-orion/merges","archive_url":"https://api.github.com/repos/telefonicaid/fiware-orion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/fiware-orion/downloads","issues_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/fiware-orion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/fiware-orion/releases{/id}","deployments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/deployments","created_at":"2013-09-13T11:55:25Z","updated_at":"2018-06-04T13:42:25Z","pushed_at":"2018-06-04T15:03:44Z","git_url":"git://github.com/telefonicaid/fiware-orion.git","ssh_url":"git@github.com:telefonicaid/fiware-orion.git","clone_url":"https://github.com/telefonicaid/fiware-orion.git","svn_url":"https://github.com/telefonicaid/fiware-orion","homepage":"http://catalogue.fiware.org/enablers/publishsubscribe-context-broker-orion-context-broker","size":34403,"stargazers_count":68,"watchers_count":68,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":114,"mirror_url":null,"archived":false,"open_issues_count":349,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":114,"open_issues":349,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/3173"},"html":{"href":"https://github.com/telefonicaid/fiware-orion/pull/3173"},"issue":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/3173"},"comments":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/3173/comments"},"review_comments":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/3173/comments"},"review_comment":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/3173/commits"},"statuses":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/statuses/ba2fa34bfb61822dfac9c1ac9f295c52b346e073"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"fgalan"}}