{"action":"created","issue":{"url":"https://api.github.com/repos/pattisdr/osf.io/issues/2","repository_url":"https://api.github.com/repos/pattisdr/osf.io","labels_url":"https://api.github.com/repos/pattisdr/osf.io/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/pattisdr/osf.io/issues/2/comments","events_url":"https://api.github.com/repos/pattisdr/osf.io/issues/2/events","html_url":"https://github.com/pattisdr/osf.io/pull/2","id":128445482,"number":2,"title":"[Ready to Review] New/Noteworthy and Most Popular Projects","user":{"login":"pattisdr","id":9755598,"avatar_url":"https://avatars.githubusercontent.com/u/9755598?v=3","gravatar_id":"","url":"https://api.github.com/users/pattisdr","html_url":"https://github.com/pattisdr","followers_url":"https://api.github.com/users/pattisdr/followers","following_url":"https://api.github.com/users/pattisdr/following{/other_user}","gists_url":"https://api.github.com/users/pattisdr/gists{/gist_id}","starred_url":"https://api.github.com/users/pattisdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pattisdr/subscriptions","organizations_url":"https://api.github.com/users/pattisdr/orgs","repos_url":"https://api.github.com/users/pattisdr/repos","events_url":"https://api.github.com/users/pattisdr/events{/privacy}","received_events_url":"https://api.github.com/users/pattisdr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2016-01-25T02:20:26Z","updated_at":"2016-02-15T20:29:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pattisdr/osf.io/pulls/2","html_url":"https://github.com/pattisdr/osf.io/pull/2","diff_url":"https://github.com/pattisdr/osf.io/pull/2.diff","patch_url":"https://github.com/pattisdr/osf.io/pull/2.patch"},"body":"# Purpose\r\n\r\n** I made the PR to my own branch for now until Quick Search gets merged in.\r\n\r\nSolves issues  https://openscience.atlassian.net/browse/OSF-5386 and https://openscience.atlassian.net/browse/OSF-5473\r\n\r\nInherits from Quick Search Projects https://github.com/caneruguz/osf.io/pull/17\r\n\r\nDisplays two columns of projects: New and Noteworthy and Most Popular.  Both columns of projects are populated by a script (populate-popular-and-new-and-noteworthy-projects.py) which adds the relevant node links to POPULAR_LINKS_NODE and the NEW_AND_NOTEWORTHY_LINKS_NODE.  Popular links will be the same nodes as https://osf.io/explore/activity/#popularPublicProjects.  New/noteworthy nodes pull out the last month of public projects and sorts by highest log activity.  Both popular nodes and new/noteworthy nodes are stored as node links on popular_links_node and new_and_noteworthy_links_node, nodes that will need to be defined in production.  This script can be run daily.\r\n\r\nCurrently popular nodes are calculated every time someone visits the page, which is unnecessary.\r\n\r\n# Changes\r\n\r\nNew dashboard change\r\n- New/noteworthy and popular nodes display the title, description, and contributors.\r\n- Title/description/contributors are restricted to one line...if too long, ellipsis displayed.  Tooltips display full text on hover.\r\n- If >3 contributors, formatting is: Pattison, Pattison, and Pattison + 23\r\n- Button for finding more projects w/ advanced search\r\n- Plugin for hosting a conference/meeting - links all currently go to the same place - Caner is going to change this later.\r\n\r\n### My implementation:\r\n![screen shot 2016-01-24 at 9 03 11 pm](https://cloud.githubusercontent.com/assets/9755598/12540960/00703ff4-c2de-11e5-9549-a4715db405f5.png)\r\n\r\n### Wireframe\r\n![screen shot 2016-01-24 at 9 05 01 pm](https://cloud.githubusercontent.com/assets/9755598/12540980/30139da0-c2de-11e5-9d21-24a2cc77dce3.png)\r\n\r\n# For reviewers\r\n\r\n### Steps to populate New and Noteworthy Nodes and Most Popular Nodes locally\r\n\r\nNew/Noteworthy Nodes and Most Popular Nodes are nodes that are stored as node links under POPULAR_LINKS_NODE and NEW_AND_NOTEWORTHY_LINK_NODE in website/settings/defaults. https://github.com/pattisdr/osf.io/pull/2/files#diff-e617d08b11daf61c1b3ca71efb807195R231.  Set POPULAR_LINKS_NODE and NEW_AND_NOTEWORTHY_LINKS node as two nodes that you have locally.  \r\n\r\n<s> Then go to https://github.com/pattisdr/osf.io/pull/2/files#diff-cde0306aa5de57870f544a7b1c412affR90 and change the popular_nodes to five other nodes that you have defined locally.  Then run the script, populate-popular-and-new-and-noteworthy-projects.py. </s>\r\nNo longer applicable.  Add five node links each to POPULAR_LINKS_NODE and NEW_AND_NOTEWORTHY_LINKS_NODE (`/v2/nodes/{node_id}/node_links/`}\r\n\r\nIn production, POPULAR_LINKS_NODE and NEW_AND_NOTEWORTHY_LINKS_NODE will be defined, and popular_nodes will not need to be manually populated.  The script can be run once a day to populate the POPULAR and NEW/NOTEWORTHY links node with node links to the most popular and new/noteworthy projects."},"comment":{"url":"https://api.github.com/repos/pattisdr/osf.io/issues/comments/184377150","html_url":"https://github.com/pattisdr/osf.io/pull/2#issuecomment-184377150","issue_url":"https://api.github.com/repos/pattisdr/osf.io/issues/2","id":184377150,"user":{"login":"whit537","id":134455,"avatar_url":"https://avatars.githubusercontent.com/u/134455?v=3","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T20:29:03Z","updated_at":"2016-02-15T20:29:03Z","body":"Okay! I have empty New and Noteworthy. :)"}}