{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/55079716","id":55079716,"diff_hunk":"@@ -0,0 +1,137 @@\n+\"\"\"\n+This will update node links on POPULAR_LINKS_NODE and NEW_AND_NOTEWORTHY_LINKS_NODE.\n+\"\"\"\n+import sys\n+import logging\n+import datetime\n+import dateutil\n+import operator\n+import requests\n+from modularodm import Q\n+from website.app import init_app\n+from website import models\n+from framework.auth.core import Auth\n+from scripts import utils as script_utils\n+from framework.transactions.context import TokuTransaction\n+from website.project.model import Pointer\n+from website.settings import POPULAR_LINKS_NODE, NEW_AND_NOTEWORTHY_LINKS_NODE, QA_USER_IDS, URL_BASE as BASE\n+\n+logger = logging.getLogger(__name__)\n+\n+def retrieve_data(url):\n+    \"\"\" Fetch data and decode json \"\"\"\n+    response = requests.get(url)\n+    data = response.json()\n+    return data\n+\n+def get_api_base_path():","path":"scripts/populate_new_and_noteworthy_projects.py","position":27,"original_position":27,"commit_id":"bee006edfebea27fb451d9510562a4aa33084a03","original_commit_id":"bee006edfebea27fb451d9510562a4aa33084a03","user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"body":"Again, why do we need this given that we `settings.DOMAIN` and `settings.API_DOMAIN`? This code is fragile and hard to maintain; we would have to modify these functions every time we make a new deployment (e.g. when we create staging3).","created_at":"2016-03-04T19:50:47Z","updated_at":"2016-03-04T19:50:47Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/5119#discussion_r55079716","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5119","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/55079716"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/5119#discussion_r55079716"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5119"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5119","id":61626003,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/5119","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/5119.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/5119.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5119","number":5119,"state":"open","locked":false,"title":"Dashboard Redesign with Home page elements","user":{"login":"caneruguz","id":1314003,"avatar_url":"https://avatars.githubusercontent.com/u/1314003?v=3","gravatar_id":"","url":"https://api.github.com/users/caneruguz","html_url":"https://github.com/caneruguz","followers_url":"https://api.github.com/users/caneruguz/followers","following_url":"https://api.github.com/users/caneruguz/following{/other_user}","gists_url":"https://api.github.com/users/caneruguz/gists{/gist_id}","starred_url":"https://api.github.com/users/caneruguz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caneruguz/subscriptions","organizations_url":"https://api.github.com/users/caneruguz/orgs","repos_url":"https://api.github.com/users/caneruguz/repos","events_url":"https://api.github.com/users/caneruguz/events{/privacy}","received_events_url":"https://api.github.com/users/caneruguz/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nA combined home page, support page and navigation changes to finish off the Stage 1. \r\n\r\n## Changes\r\nHome page is now a layered content based on the wireframes. It includes several sections\r\n- Quick Search\r\n- Recent activity widgets\r\n- New and Noteworthy Items\r\n- Meetings banner\r\n\r\nThere is a new support page, but getting started is still it's own page with some edits\r\n\r\nNavigation has changed based on wireframe\r\n\r\nmore details coming... \r\nTag @pattisdr for Quick search and new and noteworthy, tag @hmoco for Recent activity widgets, tag me for anything else. ","created_at":"2016-03-03T21:13:17Z","updated_at":"2016-03-04T19:50:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e9ee61d9945ee0ebdd10414a0bc190449f6c546","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5119/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5119/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5119/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/bee006edfebea27fb451d9510562a4aa33084a03","head":{"label":"caneruguz:dashboard-redesign-2","ref":"dashboard-redesign-2","sha":"bee006edfebea27fb451d9510562a4aa33084a03","user":{"login":"caneruguz","id":1314003,"avatar_url":"https://avatars.githubusercontent.com/u/1314003?v=3","gravatar_id":"","url":"https://api.github.com/users/caneruguz","html_url":"https://github.com/caneruguz","followers_url":"https://api.github.com/users/caneruguz/followers","following_url":"https://api.github.com/users/caneruguz/following{/other_user}","gists_url":"https://api.github.com/users/caneruguz/gists{/gist_id}","starred_url":"https://api.github.com/users/caneruguz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caneruguz/subscriptions","organizations_url":"https://api.github.com/users/caneruguz/orgs","repos_url":"https://api.github.com/users/caneruguz/repos","events_url":"https://api.github.com/users/caneruguz/events{/privacy}","received_events_url":"https://api.github.com/users/caneruguz/received_events","type":"User","site_admin":false},"repo":{"id":27096151,"name":"osf.io","full_name":"caneruguz/osf.io","owner":{"login":"caneruguz","id":1314003,"avatar_url":"https://avatars.githubusercontent.com/u/1314003?v=3","gravatar_id":"","url":"https://api.github.com/users/caneruguz","html_url":"https://github.com/caneruguz","followers_url":"https://api.github.com/users/caneruguz/followers","following_url":"https://api.github.com/users/caneruguz/following{/other_user}","gists_url":"https://api.github.com/users/caneruguz/gists{/gist_id}","starred_url":"https://api.github.com/users/caneruguz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caneruguz/subscriptions","organizations_url":"https://api.github.com/users/caneruguz/orgs","repos_url":"https://api.github.com/users/caneruguz/repos","events_url":"https://api.github.com/users/caneruguz/events{/privacy}","received_events_url":"https://api.github.com/users/caneruguz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caneruguz/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/caneruguz/osf.io","forks_url":"https://api.github.com/repos/caneruguz/osf.io/forks","keys_url":"https://api.github.com/repos/caneruguz/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caneruguz/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caneruguz/osf.io/teams","hooks_url":"https://api.github.com/repos/caneruguz/osf.io/hooks","issue_events_url":"https://api.github.com/repos/caneruguz/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/caneruguz/osf.io/events","assignees_url":"https://api.github.com/repos/caneruguz/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/caneruguz/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/caneruguz/osf.io/tags","blobs_url":"https://api.github.com/repos/caneruguz/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caneruguz/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caneruguz/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/caneruguz/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caneruguz/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/caneruguz/osf.io/languages","stargazers_url":"https://api.github.com/repos/caneruguz/osf.io/stargazers","contributors_url":"https://api.github.com/repos/caneruguz/osf.io/contributors","subscribers_url":"https://api.github.com/repos/caneruguz/osf.io/subscribers","subscription_url":"https://api.github.com/repos/caneruguz/osf.io/subscription","commits_url":"https://api.github.com/repos/caneruguz/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/caneruguz/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/caneruguz/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/caneruguz/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/caneruguz/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/caneruguz/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caneruguz/osf.io/merges","archive_url":"https://api.github.com/repos/caneruguz/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caneruguz/osf.io/downloads","issues_url":"https://api.github.com/repos/caneruguz/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/caneruguz/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/caneruguz/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/caneruguz/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caneruguz/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/caneruguz/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/caneruguz/osf.io/deployments","created_at":"2014-11-24T21:33:09Z","updated_at":"2015-06-14T17:00:49Z","pushed_at":"2016-03-04T19:34:58Z","git_url":"git://github.com/caneruguz/osf.io.git","ssh_url":"git@github.com:caneruguz/osf.io.git","clone_url":"https://github.com/caneruguz/osf.io.git","svn_url":"https://github.com/caneruguz/osf.io","homepage":"http://osf.io","size":122380,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:feature/dashboard","ref":"feature/dashboard","sha":"88a5ba6a7be1f79044c785ebfbfae0c6d84ab60c","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/deployments","created_at":"2013-05-21T15:53:37Z","updated_at":"2016-03-03T06:04:49Z","pushed_at":"2016-03-04T19:32:09Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":267188,"stargazers_count":197,"watchers_count":197,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":328,"forks":149,"open_issues":328,"watchers":197,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5119"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/5119"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5119"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5119/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5119/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5119/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/bee006edfebea27fb451d9510562a4aa33084a03"}}}}