{"action":"created","issue":{"url":"https://api.github.com/repos/ets-berkeley-edu/collabosphere/issues/146","repository_url":"https://api.github.com/repos/ets-berkeley-edu/collabosphere","labels_url":"https://api.github.com/repos/ets-berkeley-edu/collabosphere/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/ets-berkeley-edu/collabosphere/issues/146/comments","events_url":"https://api.github.com/repos/ets-berkeley-edu/collabosphere/issues/146/events","html_url":"https://github.com/ets-berkeley-edu/collabosphere/pull/146","id":166900727,"number":146,"title":"COL-413 Script for Node REPL with preloaded Collabosphere environment","user":{"login":"paulkerschen","id":2413467,"avatar_url":"https://avatars.githubusercontent.com/u/2413467?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkerschen","html_url":"https://github.com/paulkerschen","followers_url":"https://api.github.com/users/paulkerschen/followers","following_url":"https://api.github.com/users/paulkerschen/following{/other_user}","gists_url":"https://api.github.com/users/paulkerschen/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkerschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkerschen/subscriptions","organizations_url":"https://api.github.com/users/paulkerschen/orgs","repos_url":"https://api.github.com/users/paulkerschen/repos","events_url":"https://api.github.com/users/paulkerschen/events{/privacy}","received_events_url":"https://api.github.com/users/paulkerschen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"paulkerschen","id":2413467,"avatar_url":"https://avatars.githubusercontent.com/u/2413467?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkerschen","html_url":"https://github.com/paulkerschen","followers_url":"https://api.github.com/users/paulkerschen/followers","following_url":"https://api.github.com/users/paulkerschen/following{/other_user}","gists_url":"https://api.github.com/users/paulkerschen/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkerschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkerschen/subscriptions","organizations_url":"https://api.github.com/users/paulkerschen/orgs","repos_url":"https://api.github.com/users/paulkerschen/repos","events_url":"https://api.github.com/users/paulkerschen/events{/privacy}","received_events_url":"https://api.github.com/users/paulkerschen/received_events","type":"User","site_admin":false},"assignees":[{"login":"paulkerschen","id":2413467,"avatar_url":"https://avatars.githubusercontent.com/u/2413467?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkerschen","html_url":"https://github.com/paulkerschen","followers_url":"https://api.github.com/users/paulkerschen/followers","following_url":"https://api.github.com/users/paulkerschen/following{/other_user}","gists_url":"https://api.github.com/users/paulkerschen/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkerschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkerschen/subscriptions","organizations_url":"https://api.github.com/users/paulkerschen/orgs","repos_url":"https://api.github.com/users/paulkerschen/repos","events_url":"https://api.github.com/users/paulkerschen/events{/privacy}","received_events_url":"https://api.github.com/users/paulkerschen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-07-21T19:39:43Z","updated_at":"2016-07-25T17:45:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ets-berkeley-edu/collabosphere/pulls/146","html_url":"https://github.com/ets-berkeley-edu/collabosphere/pull/146","diff_url":"https://github.com/ets-berkeley-edu/collabosphere/pull/146.diff","patch_url":"https://github.com/ets-berkeley-edu/collabosphere/pull/146.patch"},"body":"https://jira.ets.berkeley.edu/jira/browse/COL-413\r\n\r\nI've found this handy enough during local development that I decided to submit it. Rails devs will recognize it as a sketchy gesture toward a Rails console-like environment.\r\n\r\nExample usage:\r\n\r\n```\r\n % node scripts/col-repl\r\nLoading Collabosphere environment...\r\n[2016-07-21T19:29:48.883Z]  INFO: col-core/email/43411 on MacBook-Pro-2.local: No image manifest found in the document root. Using development assets (documentRoot=/var/www/html)\r\n[2016-07-21T19:29:48.900Z]  INFO: col-activities/43411 on MacBook-Pro-2.local: Scheduling daily notifications for 2016-07-22T08:00:00-07:00 (in 70211998 ms)\r\nCollabosphere environment loaded. Enjoy!\r\ncol-repl> CourseAPI.getCourses(function(err, courses) { log.info(courses[0].dataValues); });\r\nundefined\r\n[2016-07-21T19:29:59.723Z]  INFO: Intermediate Hittite/43411 on MacBook-Pro-2.local:  (id=285, canvas_course_id=1, enable_upload=true, assetlibrary_url=http://localhost:3100/courses/1/external_tools/4, whiteboards_url=http://localhost:3100/courses/1/external_tools/5, active=true, created_at=2016-05-23T20:25:34.170Z, updated_at=2016-05-23T20:26:37.183Z, canvas_api_domain=localhost:3100)\r\n    \r\n    --\r\n    canvas: {\r\n      \"canvas_api_domain\": \"localhost:3100\",\r\n      \"use_https\": false,\r\n      \"name\": \"Localhost\",\r\n      \"logo\": \"none\",\r\n      \"created_at\": \"2016-05-16T23:17:55.076Z\",\r\n      \"updated_at\": \"2016-05-16T23:17:55.076Z\"\r\n    }\r\n\r\ncol-repl> ActivitiesAPI.getActivities({course: {id: 285}}, null, null, null, function(err, activities) { log.info(activities.length + ' activities found'); });\r\nundefined\r\n[2016-07-21T19:30:16.058Z]  INFO: col-repl/43411 on MacBook-Pro-2.local: 33 activities found\r\ncol-repl> \r\n```"},"comment":{"url":"https://api.github.com/repos/ets-berkeley-edu/collabosphere/issues/comments/235027652","html_url":"https://github.com/ets-berkeley-edu/collabosphere/pull/146#issuecomment-235027652","issue_url":"https://api.github.com/repos/ets-berkeley-edu/collabosphere/issues/146","id":235027652,"user":{"login":"paulkerschen","id":2413467,"avatar_url":"https://avatars.githubusercontent.com/u/2413467?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkerschen","html_url":"https://github.com/paulkerschen","followers_url":"https://api.github.com/users/paulkerschen/followers","following_url":"https://api.github.com/users/paulkerschen/following{/other_user}","gists_url":"https://api.github.com/users/paulkerschen/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkerschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkerschen/subscriptions","organizations_url":"https://api.github.com/users/paulkerschen/orgs","repos_url":"https://api.github.com/users/paulkerschen/repos","events_url":"https://api.github.com/users/paulkerschen/events{/privacy}","received_events_url":"https://api.github.com/users/paulkerschen/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T17:45:04Z","updated_at":"2016-07-25T17:45:04Z","body":"Review addressed; back to @nicolaasmatthijs."}}
{"actor":{"display_login":"paulkerschen"}}