{"action":"created","comment":{"url":"https://api.github.com/repos/andela/activo-web/pulls/comments/207019909","pull_request_review_id":142546427,"id":207019909,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzAxOTkwOQ==","diff_hunk":"@@ -7,11 +7,19 @@ import './SelectBox.scss';\n // interfaces\n import { SelectBoxProps } from './interfaces';\n \n-const SelectBox = ({ classes, options, onChange, value, name }: SelectBoxProps) => ((\n+const SelectBox = ({ classes, options, onChange, value, name, isDisabled, defaultValue }: SelectBoxProps) => ((\n   <div className=\"select-box\">\n-    <select name={name} onChange={onChange} value={value} className={`select-box__content ${classes}`}>\n+    <select \n+      name={name} \n+      onChange={onChange}\n+      defaultValue={defaultValue}","path":"src/components/SelectBox/index.tsx","position":11,"original_position":11,"commit_id":"0139ded7e08625078f837f8b924e8af3d135ca7d","original_commit_id":"0139ded7e08625078f837f8b924e8af3d135ca7d","user":{"login":"andela-kakpobome","id":20772189,"node_id":"MDQ6VXNlcjIwNzcyMTg5","avatar_url":"https://avatars2.githubusercontent.com/u/20772189?v=4","gravatar_id":"","url":"https://api.github.com/users/andela-kakpobome","html_url":"https://github.com/andela-kakpobome","followers_url":"https://api.github.com/users/andela-kakpobome/followers","following_url":"https://api.github.com/users/andela-kakpobome/following{/other_user}","gists_url":"https://api.github.com/users/andela-kakpobome/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-kakpobome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-kakpobome/subscriptions","organizations_url":"https://api.github.com/users/andela-kakpobome/orgs","repos_url":"https://api.github.com/users/andela-kakpobome/repos","events_url":"https://api.github.com/users/andela-kakpobome/events{/privacy}","received_events_url":"https://api.github.com/users/andela-kakpobome/received_events","type":"User","site_admin":false},"body":"I generally see the value of this `defaultValue`, can expand on what it's doing here?","created_at":"2018-08-01T20:26:30Z","updated_at":"2018-08-01T20:26:37Z","html_url":"https://github.com/andela/activo-web/pull/70#discussion_r207019909","pull_request_url":"https://api.github.com/repos/andela/activo-web/pulls/70","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/activo-web/pulls/comments/207019909"},"html":{"href":"https://github.com/andela/activo-web/pull/70#discussion_r207019909"},"pull_request":{"href":"https://api.github.com/repos/andela/activo-web/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/andela/activo-web/pulls/70","id":203819186,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzODE5MTg2","html_url":"https://github.com/andela/activo-web/pull/70","diff_url":"https://github.com/andela/activo-web/pull/70.diff","patch_url":"https://github.com/andela/activo-web/pull/70.patch","issue_url":"https://api.github.com/repos/andela/activo-web/issues/70","number":70,"state":"open","locked":false,"title":"#159232837 Disable required fields when creating new asset category","user":{"login":"Iyke09","id":28359346,"node_id":"MDQ6VXNlcjI4MzU5MzQ2","avatar_url":"https://avatars2.githubusercontent.com/u/28359346?v=4","gravatar_id":"","url":"https://api.github.com/users/Iyke09","html_url":"https://github.com/Iyke09","followers_url":"https://api.github.com/users/Iyke09/followers","following_url":"https://api.github.com/users/Iyke09/following{/other_user}","gists_url":"https://api.github.com/users/Iyke09/gists{/gist_id}","starred_url":"https://api.github.com/users/Iyke09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iyke09/subscriptions","organizations_url":"https://api.github.com/users/Iyke09/orgs","repos_url":"https://api.github.com/users/Iyke09/repos","events_url":"https://api.github.com/users/Iyke09/events{/privacy}","received_events_url":"https://api.github.com/users/Iyke09/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\nIt prefills and disables all required fields when creating a new asset category\r\n\r\n**Description of Task to be completed?**\r\n- add a disabled option to the required input fields and select box fields\r\n- prepopulate required fields with the required data   \r\n\r\n**How should this be manually tested?**\r\nAfter cloning and running the app, navigate to the settings page and click on add new assets\r\n\r\n- you should see the required input fields are disabled and prepopulated with the required data\r\n\r\n**Any background context you want to provide?**\r\nN/A\r\n\r\n**What are the relevant pivotal tracker stories?**\r\nhttps://www.pivotaltracker.com/story/show/159232837\r\n\r\n**Screenshots (if appropriate)**\r\n<img width=\"1440\" alt=\"screen shot 2018-07-31 at 10 51 04 pm\" src=\"https://user-images.githubusercontent.com/28359346/43489274-64b6a1e6-9514-11e8-9f3d-fcf69e111697.png\">\r\n\r\n\r\n**Questions:**\r\nN/A\r\n","created_at":"2018-07-25T12:22:20Z","updated_at":"2018-08-01T20:26:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cffe98560ebb4b28258d1f05d287fd69214ce133","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":953906751,"node_id":"MDU6TGFiZWw5NTM5MDY3NTE=","url":"https://api.github.com/repos/andela/activo-web/labels/Finished","name":"Finished","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/activo-web/pulls/70/commits","review_comments_url":"https://api.github.com/repos/andela/activo-web/pulls/70/comments","review_comment_url":"https://api.github.com/repos/andela/activo-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/activo-web/issues/70/comments","statuses_url":"https://api.github.com/repos/andela/activo-web/statuses/0139ded7e08625078f837f8b924e8af3d135ca7d","head":{"label":"andela:ft-disable-required-fields-159232837","ref":"ft-disable-required-fields-159232837","sha":"0139ded7e08625078f837f8b924e8af3d135ca7d","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":132578458,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1Nzg0NTg=","name":"activo-web","full_name":"andela/activo-web","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/activo-web","description":"Web client for the activo application","fork":false,"url":"https://api.github.com/repos/andela/activo-web","forks_url":"https://api.github.com/repos/andela/activo-web/forks","keys_url":"https://api.github.com/repos/andela/activo-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/activo-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/activo-web/teams","hooks_url":"https://api.github.com/repos/andela/activo-web/hooks","issue_events_url":"https://api.github.com/repos/andela/activo-web/issues/events{/number}","events_url":"https://api.github.com/repos/andela/activo-web/events","assignees_url":"https://api.github.com/repos/andela/activo-web/assignees{/user}","branches_url":"https://api.github.com/repos/andela/activo-web/branches{/branch}","tags_url":"https://api.github.com/repos/andela/activo-web/tags","blobs_url":"https://api.github.com/repos/andela/activo-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/activo-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/activo-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/activo-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/activo-web/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/activo-web/languages","stargazers_url":"https://api.github.com/repos/andela/activo-web/stargazers","contributors_url":"https://api.github.com/repos/andela/activo-web/contributors","subscribers_url":"https://api.github.com/repos/andela/activo-web/subscribers","subscription_url":"https://api.github.com/repos/andela/activo-web/subscription","commits_url":"https://api.github.com/repos/andela/activo-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/activo-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/activo-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/activo-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/activo-web/contents/{+path}","compare_url":"https://api.github.com/repos/andela/activo-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/activo-web/merges","archive_url":"https://api.github.com/repos/andela/activo-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/activo-web/downloads","issues_url":"https://api.github.com/repos/andela/activo-web/issues{/number}","pulls_url":"https://api.github.com/repos/andela/activo-web/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/activo-web/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/activo-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/activo-web/labels{/name}","releases_url":"https://api.github.com/repos/andela/activo-web/releases{/id}","deployments_url":"https://api.github.com/repos/andela/activo-web/deployments","created_at":"2018-05-08T08:28:37Z","updated_at":"2018-08-01T20:04:01Z","pushed_at":"2018-08-01T20:04:01Z","git_url":"git://github.com/andela/activo-web.git","ssh_url":"git@github.com:andela/activo-web.git","clone_url":"https://github.com/andela/activo-web.git","svn_url":"https://github.com/andela/activo-web","homepage":"http://activo-staging.andela.com","size":3047,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":3,"open_issues":10,"watchers":1,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"f0a756b841ad5fbd3e3474dc53d1fb33ba559d3e","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":132578458,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1Nzg0NTg=","name":"activo-web","full_name":"andela/activo-web","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/activo-web","description":"Web client for the activo application","fork":false,"url":"https://api.github.com/repos/andela/activo-web","forks_url":"https://api.github.com/repos/andela/activo-web/forks","keys_url":"https://api.github.com/repos/andela/activo-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/activo-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/activo-web/teams","hooks_url":"https://api.github.com/repos/andela/activo-web/hooks","issue_events_url":"https://api.github.com/repos/andela/activo-web/issues/events{/number}","events_url":"https://api.github.com/repos/andela/activo-web/events","assignees_url":"https://api.github.com/repos/andela/activo-web/assignees{/user}","branches_url":"https://api.github.com/repos/andela/activo-web/branches{/branch}","tags_url":"https://api.github.com/repos/andela/activo-web/tags","blobs_url":"https://api.github.com/repos/andela/activo-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/activo-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/activo-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/activo-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/activo-web/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/activo-web/languages","stargazers_url":"https://api.github.com/repos/andela/activo-web/stargazers","contributors_url":"https://api.github.com/repos/andela/activo-web/contributors","subscribers_url":"https://api.github.com/repos/andela/activo-web/subscribers","subscription_url":"https://api.github.com/repos/andela/activo-web/subscription","commits_url":"https://api.github.com/repos/andela/activo-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/activo-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/activo-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/activo-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/activo-web/contents/{+path}","compare_url":"https://api.github.com/repos/andela/activo-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/activo-web/merges","archive_url":"https://api.github.com/repos/andela/activo-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/activo-web/downloads","issues_url":"https://api.github.com/repos/andela/activo-web/issues{/number}","pulls_url":"https://api.github.com/repos/andela/activo-web/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/activo-web/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/activo-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/activo-web/labels{/name}","releases_url":"https://api.github.com/repos/andela/activo-web/releases{/id}","deployments_url":"https://api.github.com/repos/andela/activo-web/deployments","created_at":"2018-05-08T08:28:37Z","updated_at":"2018-08-01T20:04:01Z","pushed_at":"2018-08-01T20:04:01Z","git_url":"git://github.com/andela/activo-web.git","ssh_url":"git@github.com:andela/activo-web.git","clone_url":"https://github.com/andela/activo-web.git","svn_url":"https://github.com/andela/activo-web","homepage":"http://activo-staging.andela.com","size":3047,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":3,"open_issues":10,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/activo-web/pulls/70"},"html":{"href":"https://github.com/andela/activo-web/pull/70"},"issue":{"href":"https://api.github.com/repos/andela/activo-web/issues/70"},"comments":{"href":"https://api.github.com/repos/andela/activo-web/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/activo-web/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/activo-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/activo-web/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/andela/activo-web/statuses/0139ded7e08625078f837f8b924e8af3d135ca7d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"andela-kakpobome"}}