{"action":"opened","issue":{"url":"https://api.github.com/repos/cchdo/cchdo.ucsd.edu/issues/24","labels_url":"https://api.github.com/repos/cchdo/cchdo.ucsd.edu/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/cchdo/cchdo.ucsd.edu/issues/24/comments","events_url":"https://api.github.com/repos/cchdo/cchdo.ucsd.edu/issues/24/events","html_url":"https://github.com/cchdo/cchdo.ucsd.edu/issues/24","id":87020117,"number":24,"title":"Add file \"events\" root level key to file.json","user":{"login":"DocOtak","id":868027,"avatar_url":"https://avatars.githubusercontent.com/u/868027?v=3","gravatar_id":"","url":"https://api.github.com/users/DocOtak","html_url":"https://github.com/DocOtak","followers_url":"https://api.github.com/users/DocOtak/followers","following_url":"https://api.github.com/users/DocOtak/following{/other_user}","gists_url":"https://api.github.com/users/DocOtak/gists{/gist_id}","starred_url":"https://api.github.com/users/DocOtak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DocOtak/subscriptions","organizations_url":"https://api.github.com/users/DocOtak/orgs","repos_url":"https://api.github.com/users/DocOtak/repos","events_url":"https://api.github.com/users/DocOtak/events{/privacy}","received_events_url":"https://api.github.com/users/DocOtak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T16:06:05Z","updated_at":"2015-06-10T16:06:05Z","closed_at":null,"body":"File events are very important and include things such as \"submitted\", \"merged\", \"online\", etc...\r\nIt a way is needed to include these specific events.\r\n\r\nThere are two forms this might take:\r\n\r\nAn object with date keys:\r\n```javascript\r\n{\r\n  \"events\": {\r\n    \"2015-06-09T12:00:00-00:00\": {\r\n      \"event\": \"merged\",\r\n      \"note\": \"some string\",\r\n      \"name\": \"some initials or persons name\"\r\n    }\r\n  }\r\n // all the other keys needed for valid file.json\r\n}\r\n```\r\n\r\nOr a list with with event objects:\r\n```javascript\r\n{\r\n  \"events\": [\r\n      {\r\n        \"date\": \"2015-06-09T12:00:00-00:00\",\r\n        \"event\": \"merged\",\r\n        \"note\": \"some string\",\r\n        \"name\": \"some initials or persons name\"\r\n      }\r\n    ]\r\n  }\r\n // all the other keys needed for valid file.json\r\n}\r\n```\r\n\r\nThe choice should probably be governed by how postgresql unpacks the objects or array as we will want the \"event\" timeline to be generated by the database (for speed)."}}