{"action":"opened","number":56,"pull_request":{"url":"https://api.github.com/repos/andela/activo-api/pulls/56","id":202264122,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyMjY0MTIy","html_url":"https://github.com/andela/activo-api/pull/56","diff_url":"https://github.com/andela/activo-api/pull/56.diff","patch_url":"https://github.com/andela/activo-api/pull/56.patch","issue_url":"https://api.github.com/repos/andela/activo-api/issues/56","number":56,"state":"open","locked":false,"title":"#158999185 add download assets as csv file","user":{"login":"Dheavyman","id":28486643,"node_id":"MDQ6VXNlcjI4NDg2NjQz","avatar_url":"https://avatars3.githubusercontent.com/u/28486643?v=4","gravatar_id":"","url":"https://api.github.com/users/Dheavyman","html_url":"https://github.com/Dheavyman","followers_url":"https://api.github.com/users/Dheavyman/followers","following_url":"https://api.github.com/users/Dheavyman/following{/other_user}","gists_url":"https://api.github.com/users/Dheavyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dheavyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dheavyman/subscriptions","organizations_url":"https://api.github.com/users/Dheavyman/orgs","repos_url":"https://api.github.com/users/Dheavyman/repos","events_url":"https://api.github.com/users/Dheavyman/events{/privacy}","received_events_url":"https://api.github.com/users/Dheavyman/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Download assets as csv data file\r\n#### Description of Task to be completed?\r\n- A developer should be able to download all asset under an asset category as a CSV file\r\n#### How should this be manually tested?\r\n- Create a local copy with the following commands: `git fetch origin ft-download-assets-csv-158999185:ft-download-assets-csv-158999185`, then `git checkout ft-download-assets-csv-158999185`\r\n- install the dependencies with the command: `pipenv install --dev`\r\n- Start the application with the command: `python manage.py runserver`\r\n- Using postman, send a GET request to: `localhost:5000/api/v1/asset-categories/:id/assets/export`\r\n#### Any background context you want to provide?\r\n- You can get an asset category id by sending request to: `localhost:5000/api/v1/asset-categories/`\r\n#### What are the relevant pivotal tracker stories?\r\n[#158999185](https://www.pivotaltracker.com/story/show/158999185)\r\n#### Postman collection\r\n#### Screenshots (if appropriate)\r\n<img width=\"1440\" alt=\"screen shot 2018-07-18 at 2 59 47 pm\" src=\"https://user-images.githubusercontent.com/28486643/42886402-66c77c72-8a9b-11e8-9098-848b7ff70f8a.png\">\r\n<img width=\"992\" alt=\"screen shot 2018-07-18 at 3 00 32 pm\" src=\"https://user-images.githubusercontent.com/28486643/42886404-66ebfe8a-8a9b-11e8-991c-d078110a0401.png\">\r\n\r\n#### Questions:\r\n- N/A\r\n","created_at":"2018-07-18T14:02:33Z","updated_at":"2018-07-18T14:02:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/activo-api/pulls/56/commits","review_comments_url":"https://api.github.com/repos/andela/activo-api/pulls/56/comments","review_comment_url":"https://api.github.com/repos/andela/activo-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/activo-api/issues/56/comments","statuses_url":"https://api.github.com/repos/andela/activo-api/statuses/f06f9d61aaab94062b28c62ed53f68d7fbaebc0e","head":{"label":"andela:ft-download-assets-csv-158999185","ref":"ft-download-assets-csv-158999185","sha":"f06f9d61aaab94062b28c62ed53f68d7fbaebc0e","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":132578300,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1NzgzMDA=","name":"activo-api","full_name":"andela/activo-api","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-api","description":null,"fork":false,"url":"https://api.github.com/repos/andela/activo-api","forks_url":"https://api.github.com/repos/andela/activo-api/forks","keys_url":"https://api.github.com/repos/andela/activo-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/activo-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/activo-api/teams","hooks_url":"https://api.github.com/repos/andela/activo-api/hooks","issue_events_url":"https://api.github.com/repos/andela/activo-api/issues/events{/number}","events_url":"https://api.github.com/repos/andela/activo-api/events","assignees_url":"https://api.github.com/repos/andela/activo-api/assignees{/user}","branches_url":"https://api.github.com/repos/andela/activo-api/branches{/branch}","tags_url":"https://api.github.com/repos/andela/activo-api/tags","blobs_url":"https://api.github.com/repos/andela/activo-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/activo-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/activo-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/activo-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/activo-api/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/activo-api/languages","stargazers_url":"https://api.github.com/repos/andela/activo-api/stargazers","contributors_url":"https://api.github.com/repos/andela/activo-api/contributors","subscribers_url":"https://api.github.com/repos/andela/activo-api/subscribers","subscription_url":"https://api.github.com/repos/andela/activo-api/subscription","commits_url":"https://api.github.com/repos/andela/activo-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/activo-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/activo-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/activo-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/activo-api/contents/{+path}","compare_url":"https://api.github.com/repos/andela/activo-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/activo-api/merges","archive_url":"https://api.github.com/repos/andela/activo-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/activo-api/downloads","issues_url":"https://api.github.com/repos/andela/activo-api/issues{/number}","pulls_url":"https://api.github.com/repos/andela/activo-api/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/activo-api/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/activo-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/activo-api/labels{/name}","releases_url":"https://api.github.com/repos/andela/activo-api/releases{/id}","deployments_url":"https://api.github.com/repos/andela/activo-api/deployments","created_at":"2018-05-08T08:27:32Z","updated_at":"2018-07-17T19:20:29Z","pushed_at":"2018-07-18T13:51:22Z","git_url":"git://github.com/andela/activo-api.git","ssh_url":"git@github.com:andela/activo-api.git","clone_url":"https://github.com/andela/activo-api.git","svn_url":"https://github.com/andela/activo-api","homepage":null,"size":215,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":4,"open_issues":7,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"e664b39520cd679770a6486c4ded5c497d3a68f8","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":132578300,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1NzgzMDA=","name":"activo-api","full_name":"andela/activo-api","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-api","description":null,"fork":false,"url":"https://api.github.com/repos/andela/activo-api","forks_url":"https://api.github.com/repos/andela/activo-api/forks","keys_url":"https://api.github.com/repos/andela/activo-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/activo-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/activo-api/teams","hooks_url":"https://api.github.com/repos/andela/activo-api/hooks","issue_events_url":"https://api.github.com/repos/andela/activo-api/issues/events{/number}","events_url":"https://api.github.com/repos/andela/activo-api/events","assignees_url":"https://api.github.com/repos/andela/activo-api/assignees{/user}","branches_url":"https://api.github.com/repos/andela/activo-api/branches{/branch}","tags_url":"https://api.github.com/repos/andela/activo-api/tags","blobs_url":"https://api.github.com/repos/andela/activo-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/activo-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/activo-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/activo-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/activo-api/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/activo-api/languages","stargazers_url":"https://api.github.com/repos/andela/activo-api/stargazers","contributors_url":"https://api.github.com/repos/andela/activo-api/contributors","subscribers_url":"https://api.github.com/repos/andela/activo-api/subscribers","subscription_url":"https://api.github.com/repos/andela/activo-api/subscription","commits_url":"https://api.github.com/repos/andela/activo-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/activo-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/activo-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/activo-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/activo-api/contents/{+path}","compare_url":"https://api.github.com/repos/andela/activo-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/activo-api/merges","archive_url":"https://api.github.com/repos/andela/activo-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/activo-api/downloads","issues_url":"https://api.github.com/repos/andela/activo-api/issues{/number}","pulls_url":"https://api.github.com/repos/andela/activo-api/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/activo-api/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/activo-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/activo-api/labels{/name}","releases_url":"https://api.github.com/repos/andela/activo-api/releases{/id}","deployments_url":"https://api.github.com/repos/andela/activo-api/deployments","created_at":"2018-05-08T08:27:32Z","updated_at":"2018-07-17T19:20:29Z","pushed_at":"2018-07-18T13:51:22Z","git_url":"git://github.com/andela/activo-api.git","ssh_url":"git@github.com:andela/activo-api.git","clone_url":"https://github.com/andela/activo-api.git","svn_url":"https://github.com/andela/activo-api","homepage":null,"size":215,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":4,"open_issues":7,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/activo-api/pulls/56"},"html":{"href":"https://github.com/andela/activo-api/pull/56"},"issue":{"href":"https://api.github.com/repos/andela/activo-api/issues/56"},"comments":{"href":"https://api.github.com/repos/andela/activo-api/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/activo-api/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/activo-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/activo-api/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/andela/activo-api/statuses/f06f9d61aaab94062b28c62ed53f68d7fbaebc0e"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":151,"deletions":1,"changed_files":7}}
{"actor":{"display_login":"Dheavyman"}}