{"action":"created","comment":{"url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments/170304681","pull_request_review_id":98976975,"id":170304681,"diff_hunk":"@@ -6,18 +6,7 @@\n  * @module input\n  */\n \n-var FileInput = module.exports.FileInput = require('./file');\n-var ItemPreview = module.exports.ItemPreview = require('./object').ItemPreview;\n \n-/**\n- * Wraps a checkbox input to turn it into a toggle switch using CSS.\n- * Use just like a checkbox input element.\n- * \n- * @member\n- * @namespace\n- * @type {Component}\n- * @prop {string} id - A unique id. If not supplied, one is autogenerated.\n- * @prop {function} onChange - Change event handler.\n- * @prop {boolean} checked - Whether is checked or not.\n- */\n-module.exports.Toggle = require('./Toggle');\n\\ No newline at end of file\n+export { FileInput } from './file';\n+export { ItemPreview } from './object';","path":"src/encoded/static/components/inputs/index.js","position":21,"original_position":21,"commit_id":"19ac217f0877b7001728f29e403f0b698a09c736","original_commit_id":"19ac217f0877b7001728f29e403f0b698a09c736","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Newline required at end of file but not found. (eol-last)](https://app.codacy.com/app/4dn/fourfront/pullRequest?prid=1367609)","created_at":"2018-02-23T16:49:50Z","updated_at":"2018-02-23T16:49:50Z","html_url":"https://github.com/4dn-dcic/fourfront/pull/718#discussion_r170304681","pull_request_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/718","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments/170304681"},"html":{"href":"https://github.com/4dn-dcic/fourfront/pull/718#discussion_r170304681"},"pull_request":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/718"}}},"pull_request":{"url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/718","id":171057833,"html_url":"https://github.com/4dn-dcic/fourfront/pull/718","diff_url":"https://github.com/4dn-dcic/fourfront/pull/718.diff","patch_url":"https://github.com/4dn-dcic/fourfront/pull/718.patch","issue_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/718","number":718,"state":"open","locked":false,"title":"Hide External Data By Default -- New Redux Store State 'browseBaseState' (string)","user":{"login":"alexkb0009","id":10673737,"avatar_url":"https://avatars2.githubusercontent.com/u/10673737?v=4","gravatar_id":"","url":"https://api.github.com/users/alexkb0009","html_url":"https://github.com/alexkb0009","followers_url":"https://api.github.com/users/alexkb0009/followers","following_url":"https://api.github.com/users/alexkb0009/following{/other_user}","gists_url":"https://api.github.com/users/alexkb0009/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkb0009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkb0009/subscriptions","organizations_url":"https://api.github.com/users/alexkb0009/orgs","repos_url":"https://api.github.com/users/alexkb0009/repos","events_url":"https://api.github.com/users/alexkb0009/events{/privacy}","received_events_url":"https://api.github.com/users/alexkb0009/received_events","type":"User","site_admin":false},"body":"New Redux Store State 'browseBaseState' (string/enum) which is related to mapping of 'browseBaseParams' w/ options \"all\" and \"only_4dn\":\r\n```javascript\r\nnavigate.getBrowseBaseParams.mappings = {\r\n    'all' : {\r\n        'parameters' : { 'type' : 'ExperimentSetReplicate', 'experimentset_type' : 'replicate' },\r\n    },\r\n    'only_4dn' : {\r\n        'parameters' : { 'type' : 'ExperimentSetReplicate', 'experimentset_type' : 'replicate', 'award.project' : '4DN' },\r\n    }\r\n};\r\n```\r\n\r\nIn the future, more properties may be supported (e.g. pathname, idk...), hence the 'parameters' sub-object.\r\n\r\nNew functions `navigate.getBrowseBaseParams` and `navigate.getBrowseBaseHref` extensively replace any pre-existing definitions of hardcoded /browse/ URLs. The particular function(s) used depends on context (see code, e.g. it differs between SearchBar and clicking on Facet, etc.) but generally follows the following pattern (e.g. part of click handler for Facet term):\r\n```javascript\r\nvar targetBrowseHref = navigate.getBrowseBaseHref();\r\nif (_.keys(newExpSetFilters).length > 0) targetBrowseHref += navigate.determineSeparatorChar(targetBrowseHref) + Filters.filtersToURLQuery(newExpSetFilters);\r\n```\r\nThe SearchBar does something similar, but calls getBrowseBaseParams() instead because we do slightly more modifications to the URL params (e.g. to set 'q' param, set 'type=Item', in case of 'All Items' search, ...) before serializing to proper string URL.\r\n\r\n","created_at":"2018-02-23T16:28:25Z","updated_at":"2018-02-23T16:49:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b89f7599eed32990c41b28903dec16cc41cba1a7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"carlvitzthum","id":19821645,"avatar_url":"https://avatars2.githubusercontent.com/u/19821645?v=4","gravatar_id":"","url":"https://api.github.com/users/carlvitzthum","html_url":"https://github.com/carlvitzthum","followers_url":"https://api.github.com/users/carlvitzthum/followers","following_url":"https://api.github.com/users/carlvitzthum/following{/other_user}","gists_url":"https://api.github.com/users/carlvitzthum/gists{/gist_id}","starred_url":"https://api.github.com/users/carlvitzthum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlvitzthum/subscriptions","organizations_url":"https://api.github.com/users/carlvitzthum/orgs","repos_url":"https://api.github.com/users/carlvitzthum/repos","events_url":"https://api.github.com/users/carlvitzthum/events{/privacy}","received_events_url":"https://api.github.com/users/carlvitzthum/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/718/commits","review_comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/718/comments","review_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments{/number}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/718/comments","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/19ac217f0877b7001728f29e403f0b698a09c736","head":{"label":"4dn-dcic:hide_external","ref":"hide_external","sha":"19ac217f0877b7001728f29e403f0b698a09c736","user":{"login":"4dn-dcic","id":23222469,"avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"repo":{"id":58398322,"name":"fourfront","full_name":"4dn-dcic/fourfront","owner":{"login":"4dn-dcic","id":23222469,"avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4dn-dcic/fourfront","description":"website for submitting and viewing genomic data","fork":false,"url":"https://api.github.com/repos/4dn-dcic/fourfront","forks_url":"https://api.github.com/repos/4dn-dcic/fourfront/forks","keys_url":"https://api.github.com/repos/4dn-dcic/fourfront/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4dn-dcic/fourfront/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4dn-dcic/fourfront/teams","hooks_url":"https://api.github.com/repos/4dn-dcic/fourfront/hooks","issue_events_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/events{/number}","events_url":"https://api.github.com/repos/4dn-dcic/fourfront/events","assignees_url":"https://api.github.com/repos/4dn-dcic/fourfront/assignees{/user}","branches_url":"https://api.github.com/repos/4dn-dcic/fourfront/branches{/branch}","tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/tags","blobs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/refs{/sha}","trees_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/{sha}","languages_url":"https://api.github.com/repos/4dn-dcic/fourfront/languages","stargazers_url":"https://api.github.com/repos/4dn-dcic/fourfront/stargazers","contributors_url":"https://api.github.com/repos/4dn-dcic/fourfront/contributors","subscribers_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscribers","subscription_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscription","commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/commits{/sha}","git_commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/commits{/sha}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/comments{/number}","issue_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/comments{/number}","contents_url":"https://api.github.com/repos/4dn-dcic/fourfront/contents/{+path}","compare_url":"https://api.github.com/repos/4dn-dcic/fourfront/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4dn-dcic/fourfront/merges","archive_url":"https://api.github.com/repos/4dn-dcic/fourfront/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4dn-dcic/fourfront/downloads","issues_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues{/number}","pulls_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls{/number}","milestones_url":"https://api.github.com/repos/4dn-dcic/fourfront/milestones{/number}","notifications_url":"https://api.github.com/repos/4dn-dcic/fourfront/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4dn-dcic/fourfront/labels{/name}","releases_url":"https://api.github.com/repos/4dn-dcic/fourfront/releases{/id}","deployments_url":"https://api.github.com/repos/4dn-dcic/fourfront/deployments","created_at":"2016-05-09T18:19:56Z","updated_at":"2017-02-18T19:41:43Z","pushed_at":"2018-02-23T16:45:13Z","git_url":"git://github.com/4dn-dcic/fourfront.git","ssh_url":"git@github.com:4dn-dcic/fourfront.git","clone_url":"https://github.com/4dn-dcic/fourfront.git","svn_url":"https://github.com/4dn-dcic/fourfront","homepage":null,"size":181799,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":6,"watchers":5,"default_branch":"master"}},"base":{"label":"4dn-dcic:master","ref":"master","sha":"97e4174330e70fc824d2765c2cba2f829abb3c21","user":{"login":"4dn-dcic","id":23222469,"avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"repo":{"id":58398322,"name":"fourfront","full_name":"4dn-dcic/fourfront","owner":{"login":"4dn-dcic","id":23222469,"avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4dn-dcic/fourfront","description":"website for submitting and viewing genomic data","fork":false,"url":"https://api.github.com/repos/4dn-dcic/fourfront","forks_url":"https://api.github.com/repos/4dn-dcic/fourfront/forks","keys_url":"https://api.github.com/repos/4dn-dcic/fourfront/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4dn-dcic/fourfront/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4dn-dcic/fourfront/teams","hooks_url":"https://api.github.com/repos/4dn-dcic/fourfront/hooks","issue_events_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/events{/number}","events_url":"https://api.github.com/repos/4dn-dcic/fourfront/events","assignees_url":"https://api.github.com/repos/4dn-dcic/fourfront/assignees{/user}","branches_url":"https://api.github.com/repos/4dn-dcic/fourfront/branches{/branch}","tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/tags","blobs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/refs{/sha}","trees_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/{sha}","languages_url":"https://api.github.com/repos/4dn-dcic/fourfront/languages","stargazers_url":"https://api.github.com/repos/4dn-dcic/fourfront/stargazers","contributors_url":"https://api.github.com/repos/4dn-dcic/fourfront/contributors","subscribers_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscribers","subscription_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscription","commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/commits{/sha}","git_commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/commits{/sha}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/comments{/number}","issue_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/comments{/number}","contents_url":"https://api.github.com/repos/4dn-dcic/fourfront/contents/{+path}","compare_url":"https://api.github.com/repos/4dn-dcic/fourfront/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4dn-dcic/fourfront/merges","archive_url":"https://api.github.com/repos/4dn-dcic/fourfront/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4dn-dcic/fourfront/downloads","issues_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues{/number}","pulls_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls{/number}","milestones_url":"https://api.github.com/repos/4dn-dcic/fourfront/milestones{/number}","notifications_url":"https://api.github.com/repos/4dn-dcic/fourfront/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4dn-dcic/fourfront/labels{/name}","releases_url":"https://api.github.com/repos/4dn-dcic/fourfront/releases{/id}","deployments_url":"https://api.github.com/repos/4dn-dcic/fourfront/deployments","created_at":"2016-05-09T18:19:56Z","updated_at":"2017-02-18T19:41:43Z","pushed_at":"2018-02-23T16:45:13Z","git_url":"git://github.com/4dn-dcic/fourfront.git","ssh_url":"git@github.com:4dn-dcic/fourfront.git","clone_url":"https://github.com/4dn-dcic/fourfront.git","svn_url":"https://github.com/4dn-dcic/fourfront","homepage":null,"size":181799,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/718"},"html":{"href":"https://github.com/4dn-dcic/fourfront/pull/718"},"issue":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/issues/718"},"comments":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/issues/718/comments"},"review_comments":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/718/comments"},"review_comment":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/718/commits"},"statuses":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/19ac217f0877b7001728f29e403f0b698a09c736"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codacy-bot"}}