{"action":"created","comment":{"url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/comments/31191191","id":31191191,"diff_hunk":"@@ -85,4 +110,11 @@ def update_table(projects):\n         proj.end_date = data['EndDate']\n         proj.account_name = data['AccountName'] or 'N/A'\n         proj.sponsor_name = data['SponsorName'] or 'N/A'\n+        proj.admin_name = data[\"AdminName\"] or 'N/A'\n+        proj.percent_complete = data['PercentComplete']\n+        proj.status = data['StatusName'] or 'N/A'\n+        if proj.project_id == settings.HIGHLIGHTED_PROJECT_ATTRIBUTE_ID:","path":"td/projects/management/commands/forceupdate.py","position":132,"original_position":132,"commit_id":"3cf4f52f41c17be7447e1b70e18f05dc3797d7b6","original_commit_id":"3cf4f52f41c17be7447e1b70e18f05dc3797d7b6","user":{"login":"mdj2","id":3181148,"avatar_url":"https://avatars.githubusercontent.com/u/3181148?v=3","gravatar_id":"","url":"https://api.github.com/users/mdj2","html_url":"https://github.com/mdj2","followers_url":"https://api.github.com/users/mdj2/followers","following_url":"https://api.github.com/users/mdj2/following{/other_user}","gists_url":"https://api.github.com/users/mdj2/gists{/gist_id}","starred_url":"https://api.github.com/users/mdj2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdj2/subscriptions","organizations_url":"https://api.github.com/users/mdj2/orgs","repos_url":"https://api.github.com/users/mdj2/repos","events_url":"https://api.github.com/users/mdj2/events{/privacy}","received_events_url":"https://api.github.com/users/mdj2/received_events","type":"User","site_admin":false},"body":"You need to rethink this, since project_id has nothing to do with `HIGHLIGHTED_PROJECT_ATTRIBUTE_ID`. Here's what I would do:\r\n\r\n2. Fetch all the *highlighted* projects from TD (kfarr2 already wrote the code for it)\r\n3. Loop through the highlighted projects, and add their project_ids to a Python set (we'll call it `highlighted_project_ids`)\r\n1. Fetch all the projects from TD\r\n4. Loop through all the projects, and have a line like `proj.is_highlighted = project.project_id in highlighted_project_ids`","created_at":"2015-05-27T23:30:48Z","updated_at":"2015-05-27T23:30:48Z","html_url":"https://github.com/PSU-OIT-ARC/team_dynamics/pull/3#discussion_r31191191","pull_request_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/comments/31191191"},"html":{"href":"https://github.com/PSU-OIT-ARC/team_dynamics/pull/3#discussion_r31191191"},"pull_request":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/3","id":36225614,"html_url":"https://github.com/PSU-OIT-ARC/team_dynamics/pull/3","diff_url":"https://github.com/PSU-OIT-ARC/team_dynamics/pull/3.diff","patch_url":"https://github.com/PSU-OIT-ARC/team_dynamics/pull/3.patch","issue_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/issues/3","number":3,"state":"open","locked":false,"title":"Replicated OIT Current Projects Report, added CAS auth / makefile / settings.py","user":{"login":"ssean1","id":4935544,"avatar_url":"https://avatars.githubusercontent.com/u/4935544?v=3","gravatar_id":"","url":"https://api.github.com/users/ssean1","html_url":"https://github.com/ssean1","followers_url":"https://api.github.com/users/ssean1/followers","following_url":"https://api.github.com/users/ssean1/following{/other_user}","gists_url":"https://api.github.com/users/ssean1/gists{/gist_id}","starred_url":"https://api.github.com/users/ssean1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssean1/subscriptions","organizations_url":"https://api.github.com/users/ssean1/orgs","repos_url":"https://api.github.com/users/ssean1/repos","events_url":"https://api.github.com/users/ssean1/events{/privacy}","received_events_url":"https://api.github.com/users/ssean1/received_events","type":"User","site_admin":false},"body":"Replicated (to the best of my ability) the OIT Current Projects Report currently being hosted on Team Dynamix's website. I also added CAS authentication for the site, added a Makefile, and refactored settings to one file. Also updated other files on an as-needed basis and other minor fixes.","created_at":"2015-05-26T17:25:14Z","updated_at":"2015-05-27T23:30:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5e284ebf7dc624e9e377a13dea29a724ad6c781","assignee":{"login":"ssean1","id":4935544,"avatar_url":"https://avatars.githubusercontent.com/u/4935544?v=3","gravatar_id":"","url":"https://api.github.com/users/ssean1","html_url":"https://github.com/ssean1","followers_url":"https://api.github.com/users/ssean1/followers","following_url":"https://api.github.com/users/ssean1/following{/other_user}","gists_url":"https://api.github.com/users/ssean1/gists{/gist_id}","starred_url":"https://api.github.com/users/ssean1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssean1/subscriptions","organizations_url":"https://api.github.com/users/ssean1/orgs","repos_url":"https://api.github.com/users/ssean1/repos","events_url":"https://api.github.com/users/ssean1/events{/privacy}","received_events_url":"https://api.github.com/users/ssean1/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/3/commits","review_comments_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/3/comments","review_comment_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/issues/3/comments","statuses_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/statuses/3cf4f52f41c17be7447e1b70e18f05dc3797d7b6","head":{"label":"ssean1:master","ref":"master","sha":"3cf4f52f41c17be7447e1b70e18f05dc3797d7b6","user":{"login":"ssean1","id":4935544,"avatar_url":"https://avatars.githubusercontent.com/u/4935544?v=3","gravatar_id":"","url":"https://api.github.com/users/ssean1","html_url":"https://github.com/ssean1","followers_url":"https://api.github.com/users/ssean1/followers","following_url":"https://api.github.com/users/ssean1/following{/other_user}","gists_url":"https://api.github.com/users/ssean1/gists{/gist_id}","starred_url":"https://api.github.com/users/ssean1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssean1/subscriptions","organizations_url":"https://api.github.com/users/ssean1/orgs","repos_url":"https://api.github.com/users/ssean1/repos","events_url":"https://api.github.com/users/ssean1/events{/privacy}","received_events_url":"https://api.github.com/users/ssean1/received_events","type":"User","site_admin":false},"repo":{"id":35170097,"name":"team_dynamics","full_name":"ssean1/team_dynamics","owner":{"login":"ssean1","id":4935544,"avatar_url":"https://avatars.githubusercontent.com/u/4935544?v=3","gravatar_id":"","url":"https://api.github.com/users/ssean1","html_url":"https://github.com/ssean1","followers_url":"https://api.github.com/users/ssean1/followers","following_url":"https://api.github.com/users/ssean1/following{/other_user}","gists_url":"https://api.github.com/users/ssean1/gists{/gist_id}","starred_url":"https://api.github.com/users/ssean1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssean1/subscriptions","organizations_url":"https://api.github.com/users/ssean1/orgs","repos_url":"https://api.github.com/users/ssean1/repos","events_url":"https://api.github.com/users/ssean1/events{/privacy}","received_events_url":"https://api.github.com/users/ssean1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ssean1/team_dynamics","description":"","fork":true,"url":"https://api.github.com/repos/ssean1/team_dynamics","forks_url":"https://api.github.com/repos/ssean1/team_dynamics/forks","keys_url":"https://api.github.com/repos/ssean1/team_dynamics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssean1/team_dynamics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssean1/team_dynamics/teams","hooks_url":"https://api.github.com/repos/ssean1/team_dynamics/hooks","issue_events_url":"https://api.github.com/repos/ssean1/team_dynamics/issues/events{/number}","events_url":"https://api.github.com/repos/ssean1/team_dynamics/events","assignees_url":"https://api.github.com/repos/ssean1/team_dynamics/assignees{/user}","branches_url":"https://api.github.com/repos/ssean1/team_dynamics/branches{/branch}","tags_url":"https://api.github.com/repos/ssean1/team_dynamics/tags","blobs_url":"https://api.github.com/repos/ssean1/team_dynamics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssean1/team_dynamics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssean1/team_dynamics/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssean1/team_dynamics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssean1/team_dynamics/statuses/{sha}","languages_url":"https://api.github.com/repos/ssean1/team_dynamics/languages","stargazers_url":"https://api.github.com/repos/ssean1/team_dynamics/stargazers","contributors_url":"https://api.github.com/repos/ssean1/team_dynamics/contributors","subscribers_url":"https://api.github.com/repos/ssean1/team_dynamics/subscribers","subscription_url":"https://api.github.com/repos/ssean1/team_dynamics/subscription","commits_url":"https://api.github.com/repos/ssean1/team_dynamics/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssean1/team_dynamics/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssean1/team_dynamics/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssean1/team_dynamics/issues/comments{/number}","contents_url":"https://api.github.com/repos/ssean1/team_dynamics/contents/{+path}","compare_url":"https://api.github.com/repos/ssean1/team_dynamics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssean1/team_dynamics/merges","archive_url":"https://api.github.com/repos/ssean1/team_dynamics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssean1/team_dynamics/downloads","issues_url":"https://api.github.com/repos/ssean1/team_dynamics/issues{/number}","pulls_url":"https://api.github.com/repos/ssean1/team_dynamics/pulls{/number}","milestones_url":"https://api.github.com/repos/ssean1/team_dynamics/milestones{/number}","notifications_url":"https://api.github.com/repos/ssean1/team_dynamics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssean1/team_dynamics/labels{/name}","releases_url":"https://api.github.com/repos/ssean1/team_dynamics/releases{/id}","created_at":"2015-05-06T16:24:42Z","updated_at":"2015-05-06T22:54:49Z","pushed_at":"2015-05-27T22:53:33Z","git_url":"git://github.com/ssean1/team_dynamics.git","ssh_url":"git@github.com:ssean1/team_dynamics.git","clone_url":"https://github.com/ssean1/team_dynamics.git","svn_url":"https://github.com/ssean1/team_dynamics","homepage":null,"size":170,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"PSU-OIT-ARC:master","ref":"master","sha":"400425f57be5d6c9693780c3d07123e8ad9acec4","user":{"login":"PSU-OIT-ARC","id":4128706,"avatar_url":"https://avatars.githubusercontent.com/u/4128706?v=3","gravatar_id":"","url":"https://api.github.com/users/PSU-OIT-ARC","html_url":"https://github.com/PSU-OIT-ARC","followers_url":"https://api.github.com/users/PSU-OIT-ARC/followers","following_url":"https://api.github.com/users/PSU-OIT-ARC/following{/other_user}","gists_url":"https://api.github.com/users/PSU-OIT-ARC/gists{/gist_id}","starred_url":"https://api.github.com/users/PSU-OIT-ARC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PSU-OIT-ARC/subscriptions","organizations_url":"https://api.github.com/users/PSU-OIT-ARC/orgs","repos_url":"https://api.github.com/users/PSU-OIT-ARC/repos","events_url":"https://api.github.com/users/PSU-OIT-ARC/events{/privacy}","received_events_url":"https://api.github.com/users/PSU-OIT-ARC/received_events","type":"Organization","site_admin":false},"repo":{"id":21476670,"name":"team_dynamics","full_name":"PSU-OIT-ARC/team_dynamics","owner":{"login":"PSU-OIT-ARC","id":4128706,"avatar_url":"https://avatars.githubusercontent.com/u/4128706?v=3","gravatar_id":"","url":"https://api.github.com/users/PSU-OIT-ARC","html_url":"https://github.com/PSU-OIT-ARC","followers_url":"https://api.github.com/users/PSU-OIT-ARC/followers","following_url":"https://api.github.com/users/PSU-OIT-ARC/following{/other_user}","gists_url":"https://api.github.com/users/PSU-OIT-ARC/gists{/gist_id}","starred_url":"https://api.github.com/users/PSU-OIT-ARC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PSU-OIT-ARC/subscriptions","organizations_url":"https://api.github.com/users/PSU-OIT-ARC/orgs","repos_url":"https://api.github.com/users/PSU-OIT-ARC/repos","events_url":"https://api.github.com/users/PSU-OIT-ARC/events{/privacy}","received_events_url":"https://api.github.com/users/PSU-OIT-ARC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PSU-OIT-ARC/team_dynamics","description":"","fork":false,"url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics","forks_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/forks","keys_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/teams","hooks_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/hooks","issue_events_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/issues/events{/number}","events_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/events","assignees_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/assignees{/user}","branches_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/branches{/branch}","tags_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/tags","blobs_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/git/refs{/sha}","trees_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/statuses/{sha}","languages_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/languages","stargazers_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/stargazers","contributors_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/contributors","subscribers_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/subscribers","subscription_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/subscription","commits_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/commits{/sha}","git_commits_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/git/commits{/sha}","comments_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/comments{/number}","issue_comment_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/issues/comments{/number}","contents_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/contents/{+path}","compare_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/merges","archive_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/downloads","issues_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/issues{/number}","pulls_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls{/number}","milestones_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/milestones{/number}","notifications_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/labels{/name}","releases_url":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/releases{/id}","created_at":"2014-07-03T20:55:37Z","updated_at":"2015-05-06T15:20:39Z","pushed_at":"2015-05-27T16:29:01Z","git_url":"git://github.com/PSU-OIT-ARC/team_dynamics.git","ssh_url":"git@github.com:PSU-OIT-ARC/team_dynamics.git","clone_url":"https://github.com/PSU-OIT-ARC/team_dynamics.git","svn_url":"https://github.com/PSU-OIT-ARC/team_dynamics","homepage":null,"size":268,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/3"},"html":{"href":"https://github.com/PSU-OIT-ARC/team_dynamics/pull/3"},"issue":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/issues/3"},"comments":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/PSU-OIT-ARC/team_dynamics/statuses/3cf4f52f41c17be7447e1b70e18f05dc3797d7b6"}}}}