{"action":"created","issue":{"url":"https://api.github.com/repos/e-mission/e-mission-server/issues/265","repository_url":"https://api.github.com/repos/e-mission/e-mission-server","labels_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/265/comments","events_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/265/events","html_url":"https://github.com/e-mission/e-mission-server/pull/265","id":149698864,"number":265,"title":"Move the segmentation results - trip, place, section and stop - to en…","user":{"login":"shankari","id":2423263,"avatar_url":"https://avatars.githubusercontent.com/u/2423263?v=3","gravatar_id":"","url":"https://api.github.com/users/shankari","html_url":"https://github.com/shankari","followers_url":"https://api.github.com/users/shankari/followers","following_url":"https://api.github.com/users/shankari/following{/other_user}","gists_url":"https://api.github.com/users/shankari/gists{/gist_id}","starred_url":"https://api.github.com/users/shankari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shankari/subscriptions","organizations_url":"https://api.github.com/users/shankari/orgs","repos_url":"https://api.github.com/users/shankari/repos","events_url":"https://api.github.com/users/shankari/events{/privacy}","received_events_url":"https://api.github.com/users/shankari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-20T08:34:10Z","updated_at":"2016-04-20T18:01:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/265","html_url":"https://github.com/e-mission/e-mission-server/pull/265","diff_url":"https://github.com/e-mission/e-mission-server/pull/265.diff","patch_url":"https://github.com/e-mission/e-mission-server/pull/265.patch"},"body":"…tries in a timeseries\r\n\r\nBefore this, we had separate collections for each of the segmentation results - \r\ntrip, place, section and stop. But that lead to a lot of repeated code for\r\n  creation, querying and updating (CRUD methods). We now want to store cached\r\nvalues for cleaned versions of these objects, in particular, for cleaned\r\ntrips and cleaned stops. Storing them in a different collection would just\r\nlead to more duplicate code. Storing them in the same collection with a\r\nseparate key would lead to multiple special code copies that distinguish\r\nbetween objects with different keys.\r\n\r\nBut we already have code that distinguishes between objects with different\r\nkeys and that it in the timeseries. By moving the segmentation results to the\r\ntimeseries as well, we have a consistent way to add new kinds of analysis\r\nresults (cleaned trips, cleaned sections, reconsituted points...), which\r\nshould make the future much easier..."},"comment":{"url":"https://api.github.com/repos/e-mission/e-mission-server/issues/comments/212537417","html_url":"https://github.com/e-mission/e-mission-server/pull/265#issuecomment-212537417","issue_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/265","id":212537417,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T18:01:36Z","updated_at":"2016-04-20T18:01:36Z","body":"Build finished. Test FAILed."}}