{"action":"created","comment":{"url":"https://api.github.com/repos/ilios/frontend/pulls/comments/70870582","id":70870582,"diff_hunk":"@@ -1,13 +1,34 @@\n import DS from 'ember-data';\n+import Ember from 'ember';\n+\n+const { computed, RSVP } = Ember;\n+const { Promise } = RSVP;\n+\n export default DS.Model.extend({\n   name: DS.attr('string'),\n   description: DS.attr('string'),\n   year: DS.attr('string'),\n   startDate: DS.attr('date'),\n   endDate: DS.attr('date'),\n+  absoluteFileUri: DS.attr('string'),\n   export: DS.belongsTo('curriculum-inventory-export', {async: true}),\n   sequence: DS.belongsTo('curriculum-inventory-sequence', {async: true}),\n   sequenceBlocks: DS.hasMany('curriculum-inventory-sequence-block', {async: true}),\n   program: DS.belongsTo('program', {async: true}),\n   academicLevels: DS.hasMany('curriculum-inventory-academic-level', {async: true}),\n+\n+  topLevelSequenceBlocks: computed('sequenceBlocks.[]', function(){\n+    return new Promise(resolve => {\n+      this.get('sequenceBlocks').then(sequenceBlocks => {\n+        let topLevelBlocks = sequenceBlocks.filter(function (block) {\n+          return !block.belongsTo('parent').id();\n+        });\n+        resolve(topLevelBlocks);\n+      });\n+    });\n+  }),\n+\n+  isFinalized: computed('report.export', function(){","path":"app/models/curriculum-inventory-report.js","position":31,"original_position":31,"commit_id":"fb89bb5ce49cf1f09896b1eacc8d504fe974cb5b","original_commit_id":"fb89bb5ce49cf1f09896b1eacc8d504fe974cb5b","user":{"login":"jrjohnson","id":349624,"avatar_url":"https://avatars.githubusercontent.com/u/349624?v=3","gravatar_id":"","url":"https://api.github.com/users/jrjohnson","html_url":"https://github.com/jrjohnson","followers_url":"https://api.github.com/users/jrjohnson/followers","following_url":"https://api.github.com/users/jrjohnson/following{/other_user}","gists_url":"https://api.github.com/users/jrjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/jrjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrjohnson/subscriptions","organizations_url":"https://api.github.com/users/jrjohnson/orgs","repos_url":"https://api.github.com/users/jrjohnson/repos","events_url":"https://api.github.com/users/jrjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/jrjohnson/received_events","type":"User","site_admin":false},"body":"should just be `computed('export', function(){`","created_at":"2016-07-14T19:45:51Z","updated_at":"2016-07-14T19:45:51Z","html_url":"https://github.com/ilios/frontend/pull/1852#discussion_r70870582","pull_request_url":"https://api.github.com/repos/ilios/frontend/pulls/1852","_links":{"self":{"href":"https://api.github.com/repos/ilios/frontend/pulls/comments/70870582"},"html":{"href":"https://github.com/ilios/frontend/pull/1852#discussion_r70870582"},"pull_request":{"href":"https://api.github.com/repos/ilios/frontend/pulls/1852"}}},"pull_request":{"url":"https://api.github.com/repos/ilios/frontend/pulls/1852","id":76645714,"html_url":"https://github.com/ilios/frontend/pull/1852","diff_url":"https://github.com/ilios/frontend/pull/1852.diff","patch_url":"https://github.com/ilios/frontend/pull/1852.patch","issue_url":"https://api.github.com/repos/ilios/frontend/issues/1852","number":1852,"state":"open","locked":false,"title":"Curriculum Inventory Reporting UI - iteration 1","user":{"login":"stopfstedt","id":1410427,"avatar_url":"https://avatars.githubusercontent.com/u/1410427?v=3","gravatar_id":"","url":"https://api.github.com/users/stopfstedt","html_url":"https://github.com/stopfstedt","followers_url":"https://api.github.com/users/stopfstedt/followers","following_url":"https://api.github.com/users/stopfstedt/following{/other_user}","gists_url":"https://api.github.com/users/stopfstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/stopfstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stopfstedt/subscriptions","organizations_url":"https://api.github.com/users/stopfstedt/orgs","repos_url":"https://api.github.com/users/stopfstedt/repos","events_url":"https://api.github.com/users/stopfstedt/events{/privacy}","received_events_url":"https://api.github.com/users/stopfstedt/received_events","type":"User","site_admin":false},"body":"currently hidden behind a feature flag.\r\n\r\nthis PR contains UI and functionality for the following aspects of CI management.\r\n\r\n- access control\r\n- report list\r\n- report CRUD\r\n- report finalization\r\n- report download\r\n- sequence block list\r\n- sequence block details (w/o session/offering hours override)\r\n- sequence block hierarchy traversal","created_at":"2016-07-07T18:47:27Z","updated_at":"2016-07-14T19:45:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3f1b8b866404dbf50f8c6867797f7560ec8e74e","assignee":{"login":"jrjohnson","id":349624,"avatar_url":"https://avatars.githubusercontent.com/u/349624?v=3","gravatar_id":"","url":"https://api.github.com/users/jrjohnson","html_url":"https://github.com/jrjohnson","followers_url":"https://api.github.com/users/jrjohnson/followers","following_url":"https://api.github.com/users/jrjohnson/following{/other_user}","gists_url":"https://api.github.com/users/jrjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/jrjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrjohnson/subscriptions","organizations_url":"https://api.github.com/users/jrjohnson/orgs","repos_url":"https://api.github.com/users/jrjohnson/repos","events_url":"https://api.github.com/users/jrjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/jrjohnson/received_events","type":"User","site_admin":false},"assignees":[{"login":"jrjohnson","id":349624,"avatar_url":"https://avatars.githubusercontent.com/u/349624?v=3","gravatar_id":"","url":"https://api.github.com/users/jrjohnson","html_url":"https://github.com/jrjohnson","followers_url":"https://api.github.com/users/jrjohnson/followers","following_url":"https://api.github.com/users/jrjohnson/following{/other_user}","gists_url":"https://api.github.com/users/jrjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/jrjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrjohnson/subscriptions","organizations_url":"https://api.github.com/users/jrjohnson/orgs","repos_url":"https://api.github.com/users/jrjohnson/repos","events_url":"https://api.github.com/users/jrjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/jrjohnson/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ilios/frontend/pulls/1852/commits","review_comments_url":"https://api.github.com/repos/ilios/frontend/pulls/1852/comments","review_comment_url":"https://api.github.com/repos/ilios/frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ilios/frontend/issues/1852/comments","statuses_url":"https://api.github.com/repos/ilios/frontend/statuses/fb89bb5ce49cf1f09896b1eacc8d504fe974cb5b","head":{"label":"stopfstedt:ci_builder_ui","ref":"ci_builder_ui","sha":"fb89bb5ce49cf1f09896b1eacc8d504fe974cb5b","user":{"login":"stopfstedt","id":1410427,"avatar_url":"https://avatars.githubusercontent.com/u/1410427?v=3","gravatar_id":"","url":"https://api.github.com/users/stopfstedt","html_url":"https://github.com/stopfstedt","followers_url":"https://api.github.com/users/stopfstedt/followers","following_url":"https://api.github.com/users/stopfstedt/following{/other_user}","gists_url":"https://api.github.com/users/stopfstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/stopfstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stopfstedt/subscriptions","organizations_url":"https://api.github.com/users/stopfstedt/orgs","repos_url":"https://api.github.com/users/stopfstedt/repos","events_url":"https://api.github.com/users/stopfstedt/events{/privacy}","received_events_url":"https://api.github.com/users/stopfstedt/received_events","type":"User","site_admin":false},"repo":{"id":24198285,"name":"frontend","full_name":"stopfstedt/frontend","owner":{"login":"stopfstedt","id":1410427,"avatar_url":"https://avatars.githubusercontent.com/u/1410427?v=3","gravatar_id":"","url":"https://api.github.com/users/stopfstedt","html_url":"https://github.com/stopfstedt","followers_url":"https://api.github.com/users/stopfstedt/followers","following_url":"https://api.github.com/users/stopfstedt/following{/other_user}","gists_url":"https://api.github.com/users/stopfstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/stopfstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stopfstedt/subscriptions","organizations_url":"https://api.github.com/users/stopfstedt/orgs","repos_url":"https://api.github.com/users/stopfstedt/repos","events_url":"https://api.github.com/users/stopfstedt/events{/privacy}","received_events_url":"https://api.github.com/users/stopfstedt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stopfstedt/frontend","description":"Ilios Frontend (in development)","fork":true,"url":"https://api.github.com/repos/stopfstedt/frontend","forks_url":"https://api.github.com/repos/stopfstedt/frontend/forks","keys_url":"https://api.github.com/repos/stopfstedt/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stopfstedt/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stopfstedt/frontend/teams","hooks_url":"https://api.github.com/repos/stopfstedt/frontend/hooks","issue_events_url":"https://api.github.com/repos/stopfstedt/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/stopfstedt/frontend/events","assignees_url":"https://api.github.com/repos/stopfstedt/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/stopfstedt/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/stopfstedt/frontend/tags","blobs_url":"https://api.github.com/repos/stopfstedt/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stopfstedt/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stopfstedt/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/stopfstedt/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stopfstedt/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/stopfstedt/frontend/languages","stargazers_url":"https://api.github.com/repos/stopfstedt/frontend/stargazers","contributors_url":"https://api.github.com/repos/stopfstedt/frontend/contributors","subscribers_url":"https://api.github.com/repos/stopfstedt/frontend/subscribers","subscription_url":"https://api.github.com/repos/stopfstedt/frontend/subscription","commits_url":"https://api.github.com/repos/stopfstedt/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/stopfstedt/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/stopfstedt/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/stopfstedt/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/stopfstedt/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/stopfstedt/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stopfstedt/frontend/merges","archive_url":"https://api.github.com/repos/stopfstedt/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stopfstedt/frontend/downloads","issues_url":"https://api.github.com/repos/stopfstedt/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/stopfstedt/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/stopfstedt/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/stopfstedt/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stopfstedt/frontend/labels{/name}","releases_url":"https://api.github.com/repos/stopfstedt/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/stopfstedt/frontend/deployments","created_at":"2014-09-18T17:38:16Z","updated_at":"2016-01-11T18:17:23Z","pushed_at":"2016-07-14T16:50:35Z","git_url":"git://github.com/stopfstedt/frontend.git","ssh_url":"git@github.com:stopfstedt/frontend.git","clone_url":"https://github.com/stopfstedt/frontend.git","svn_url":"https://github.com/stopfstedt/frontend","homepage":null,"size":11451,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ilios:master","ref":"master","sha":"66edac0c4acc11efc52baac6185893e30657a9b8","user":{"login":"ilios","id":2955721,"avatar_url":"https://avatars.githubusercontent.com/u/2955721?v=3","gravatar_id":"","url":"https://api.github.com/users/ilios","html_url":"https://github.com/ilios","followers_url":"https://api.github.com/users/ilios/followers","following_url":"https://api.github.com/users/ilios/following{/other_user}","gists_url":"https://api.github.com/users/ilios/gists{/gist_id}","starred_url":"https://api.github.com/users/ilios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilios/subscriptions","organizations_url":"https://api.github.com/users/ilios/orgs","repos_url":"https://api.github.com/users/ilios/repos","events_url":"https://api.github.com/users/ilios/events{/privacy}","received_events_url":"https://api.github.com/users/ilios/received_events","type":"Organization","site_admin":false},"repo":{"id":23928410,"name":"frontend","full_name":"ilios/frontend","owner":{"login":"ilios","id":2955721,"avatar_url":"https://avatars.githubusercontent.com/u/2955721?v=3","gravatar_id":"","url":"https://api.github.com/users/ilios","html_url":"https://github.com/ilios","followers_url":"https://api.github.com/users/ilios/followers","following_url":"https://api.github.com/users/ilios/following{/other_user}","gists_url":"https://api.github.com/users/ilios/gists{/gist_id}","starred_url":"https://api.github.com/users/ilios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilios/subscriptions","organizations_url":"https://api.github.com/users/ilios/orgs","repos_url":"https://api.github.com/users/ilios/repos","events_url":"https://api.github.com/users/ilios/events{/privacy}","received_events_url":"https://api.github.com/users/ilios/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ilios/frontend","description":"Ilios Frontend (in development)","fork":false,"url":"https://api.github.com/repos/ilios/frontend","forks_url":"https://api.github.com/repos/ilios/frontend/forks","keys_url":"https://api.github.com/repos/ilios/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ilios/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ilios/frontend/teams","hooks_url":"https://api.github.com/repos/ilios/frontend/hooks","issue_events_url":"https://api.github.com/repos/ilios/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/ilios/frontend/events","assignees_url":"https://api.github.com/repos/ilios/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/ilios/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/ilios/frontend/tags","blobs_url":"https://api.github.com/repos/ilios/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ilios/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ilios/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/ilios/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ilios/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/ilios/frontend/languages","stargazers_url":"https://api.github.com/repos/ilios/frontend/stargazers","contributors_url":"https://api.github.com/repos/ilios/frontend/contributors","subscribers_url":"https://api.github.com/repos/ilios/frontend/subscribers","subscription_url":"https://api.github.com/repos/ilios/frontend/subscription","commits_url":"https://api.github.com/repos/ilios/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/ilios/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/ilios/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/ilios/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/ilios/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/ilios/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ilios/frontend/merges","archive_url":"https://api.github.com/repos/ilios/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ilios/frontend/downloads","issues_url":"https://api.github.com/repos/ilios/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/ilios/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/ilios/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/ilios/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ilios/frontend/labels{/name}","releases_url":"https://api.github.com/repos/ilios/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/ilios/frontend/deployments","created_at":"2014-09-11T17:31:12Z","updated_at":"2016-04-07T06:04:54Z","pushed_at":"2016-07-14T18:33:18Z","git_url":"git://github.com/ilios/frontend.git","ssh_url":"git@github.com:ilios/frontend.git","clone_url":"https://github.com/ilios/frontend.git","svn_url":"https://github.com/ilios/frontend","homepage":null,"size":11817,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":181,"forks":14,"open_issues":181,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ilios/frontend/pulls/1852"},"html":{"href":"https://github.com/ilios/frontend/pull/1852"},"issue":{"href":"https://api.github.com/repos/ilios/frontend/issues/1852"},"comments":{"href":"https://api.github.com/repos/ilios/frontend/issues/1852/comments"},"review_comments":{"href":"https://api.github.com/repos/ilios/frontend/pulls/1852/comments"},"review_comment":{"href":"https://api.github.com/repos/ilios/frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ilios/frontend/pulls/1852/commits"},"statuses":{"href":"https://api.github.com/repos/ilios/frontend/statuses/fb89bb5ce49cf1f09896b1eacc8d504fe974cb5b"}}}}
{"actor":{"display_login":"jrjohnson"}}