{"action":"opened","number":819,"pull_request":{"url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/819","id":72455757,"html_url":"https://github.com/hotosm/osm-tasking-manager2/pull/819","diff_url":"https://github.com/hotosm/osm-tasking-manager2/pull/819.diff","patch_url":"https://github.com/hotosm/osm-tasking-manager2/pull/819.patch","issue_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/819","number":819,"state":"open","locked":false,"title":"Implement project tagging","user":{"login":"ethan-nelson","id":8998918,"avatar_url":"https://avatars.githubusercontent.com/u/8998918?v=3","gravatar_id":"","url":"https://api.github.com/users/ethan-nelson","html_url":"https://github.com/ethan-nelson","followers_url":"https://api.github.com/users/ethan-nelson/followers","following_url":"https://api.github.com/users/ethan-nelson/following{/other_user}","gists_url":"https://api.github.com/users/ethan-nelson/gists{/gist_id}","starred_url":"https://api.github.com/users/ethan-nelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethan-nelson/subscriptions","organizations_url":"https://api.github.com/users/ethan-nelson/orgs","repos_url":"https://api.github.com/users/ethan-nelson/repos","events_url":"https://api.github.com/users/ethan-nelson/events{/privacy}","received_events_url":"https://api.github.com/users/ethan-nelson/received_events","type":"User","site_admin":false},"body":"From #528 (where much of this dev has been discussed--see there for screenshots), #552, #487, and in passing, the need for project tagging is ever-present. This pull request attempts to implement this functionality. The basic idea is as follows.\r\n\r\nOne or more tags can be assigned to a project, which can then be queried to filter exposed projects. A feature that is included with tags is a \"spotlight text\" blurb that provides some information about the tag to users. This can be where an activation is described in a little more detail, a requesting agency's efforts are detailed, or the general basis of the task--such as mapping roads versus buildings--can be expounded upon.\r\n\r\n### Database backend\r\nA new model is created that stores all project tags and their associated data. Tied to this model is a project tag translation table that stores the spotlight text translations. Another table stores the tag and project relationships.\r\n\r\n### View configuration\r\nThe tagging view structure mostly follows the licenses. A list of current tags can be accessed via the user menu _if the user is an administrator_. Tags can be created, first filled out with their name and administrator description, and then the spotlight text translations can be added afterwards as they are received.\r\n\r\n### Tag assignment\r\nThe project editing screen now includes another tab that lists all tags available and associated checkboxes to assign tags to the project. \r\n\r\n### Spotlight text display\r\nIf one or more tags are passed to the home page, the spotlight text for each tag appears in a well on the right hand side of the screen. This provides a tag-focused display when searching tags.\r\n\r\n### Especially need input on:\r\n- How do we expose the tag search to users?\r\n- Is the spotlight text unwanted?\r\n\r\n### TBImplemented:\r\n- [ ] Tag search interface\r\n- [ ] Write tests\r\n- [ ] Include project translation table in alembic upgrade/downgrade\r\n- [ ] Refine database query if necessary","created_at":"2016-06-03T05:29:41Z","updated_at":"2016-06-03T05:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"090182cb038385c125e50b25412471a440550ba3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/819/commits","review_comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/819/comments","review_comment_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/819/comments","statuses_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/6513d40adf524e0a415e1c9796e295b649c21f42","head":{"label":"ethan-nelson:project-tagging","ref":"project-tagging","sha":"6513d40adf524e0a415e1c9796e295b649c21f42","user":{"login":"ethan-nelson","id":8998918,"avatar_url":"https://avatars.githubusercontent.com/u/8998918?v=3","gravatar_id":"","url":"https://api.github.com/users/ethan-nelson","html_url":"https://github.com/ethan-nelson","followers_url":"https://api.github.com/users/ethan-nelson/followers","following_url":"https://api.github.com/users/ethan-nelson/following{/other_user}","gists_url":"https://api.github.com/users/ethan-nelson/gists{/gist_id}","starred_url":"https://api.github.com/users/ethan-nelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethan-nelson/subscriptions","organizations_url":"https://api.github.com/users/ethan-nelson/orgs","repos_url":"https://api.github.com/users/ethan-nelson/repos","events_url":"https://api.github.com/users/ethan-nelson/events{/privacy}","received_events_url":"https://api.github.com/users/ethan-nelson/received_events","type":"User","site_admin":false},"repo":{"id":54659338,"name":"osm-tasking-manager2","full_name":"ethan-nelson/osm-tasking-manager2","owner":{"login":"ethan-nelson","id":8998918,"avatar_url":"https://avatars.githubusercontent.com/u/8998918?v=3","gravatar_id":"","url":"https://api.github.com/users/ethan-nelson","html_url":"https://github.com/ethan-nelson","followers_url":"https://api.github.com/users/ethan-nelson/followers","following_url":"https://api.github.com/users/ethan-nelson/following{/other_user}","gists_url":"https://api.github.com/users/ethan-nelson/gists{/gist_id}","starred_url":"https://api.github.com/users/ethan-nelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethan-nelson/subscriptions","organizations_url":"https://api.github.com/users/ethan-nelson/orgs","repos_url":"https://api.github.com/users/ethan-nelson/repos","events_url":"https://api.github.com/users/ethan-nelson/events{/privacy}","received_events_url":"https://api.github.com/users/ethan-nelson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ethan-nelson/osm-tasking-manager2","description":"Designed and built for Humanitarian OpenStreetMap Team collaborative emergency/disaster mapping, the OSM Tasking Manager 2.0 divides an area into individual squares that can be rapidly mapped by thousands of volunteers.","fork":true,"url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2","forks_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/forks","keys_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/teams","hooks_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/hooks","issue_events_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/issues/events{/number}","events_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/events","assignees_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/assignees{/user}","branches_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/branches{/branch}","tags_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/tags","blobs_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/statuses/{sha}","languages_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/languages","stargazers_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/stargazers","contributors_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/contributors","subscribers_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/subscribers","subscription_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/subscription","commits_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/contents/{+path}","compare_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/merges","archive_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/downloads","issues_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/issues{/number}","pulls_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/pulls{/number}","milestones_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/milestones{/number}","notifications_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/labels{/name}","releases_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/releases{/id}","deployments_url":"https://api.github.com/repos/ethan-nelson/osm-tasking-manager2/deployments","created_at":"2016-03-24T17:02:32Z","updated_at":"2016-03-24T17:02:33Z","pushed_at":"2016-06-03T05:26:04Z","git_url":"git://github.com/ethan-nelson/osm-tasking-manager2.git","ssh_url":"git@github.com:ethan-nelson/osm-tasking-manager2.git","clone_url":"https://github.com/ethan-nelson/osm-tasking-manager2.git","svn_url":"https://github.com/ethan-nelson/osm-tasking-manager2","homepage":"http://tasks.hotosm.org","size":3433,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hotosm:master","ref":"master","sha":"1f7f677ebc4c5ef4c41a0967fd9f16bf1bf5ed99","user":{"login":"hotosm","id":458752,"avatar_url":"https://avatars.githubusercontent.com/u/458752?v=3","gravatar_id":"","url":"https://api.github.com/users/hotosm","html_url":"https://github.com/hotosm","followers_url":"https://api.github.com/users/hotosm/followers","following_url":"https://api.github.com/users/hotosm/following{/other_user}","gists_url":"https://api.github.com/users/hotosm/gists{/gist_id}","starred_url":"https://api.github.com/users/hotosm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotosm/subscriptions","organizations_url":"https://api.github.com/users/hotosm/orgs","repos_url":"https://api.github.com/users/hotosm/repos","events_url":"https://api.github.com/users/hotosm/events{/privacy}","received_events_url":"https://api.github.com/users/hotosm/received_events","type":"Organization","site_admin":false},"repo":{"id":7973671,"name":"osm-tasking-manager2","full_name":"hotosm/osm-tasking-manager2","owner":{"login":"hotosm","id":458752,"avatar_url":"https://avatars.githubusercontent.com/u/458752?v=3","gravatar_id":"","url":"https://api.github.com/users/hotosm","html_url":"https://github.com/hotosm","followers_url":"https://api.github.com/users/hotosm/followers","following_url":"https://api.github.com/users/hotosm/following{/other_user}","gists_url":"https://api.github.com/users/hotosm/gists{/gist_id}","starred_url":"https://api.github.com/users/hotosm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotosm/subscriptions","organizations_url":"https://api.github.com/users/hotosm/orgs","repos_url":"https://api.github.com/users/hotosm/repos","events_url":"https://api.github.com/users/hotosm/events{/privacy}","received_events_url":"https://api.github.com/users/hotosm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hotosm/osm-tasking-manager2","description":"Designed and built for Humanitarian OpenStreetMap Team collaborative emergency/disaster mapping, the OSM Tasking Manager 2.0 divides an area into individual squares that can be rapidly mapped by thousands of volunteers.","fork":false,"url":"https://api.github.com/repos/hotosm/osm-tasking-manager2","forks_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/forks","keys_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/teams","hooks_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/hooks","issue_events_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/events{/number}","events_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/events","assignees_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/assignees{/user}","branches_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/branches{/branch}","tags_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/tags","blobs_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/refs{/sha}","trees_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/{sha}","languages_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/languages","stargazers_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/stargazers","contributors_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/contributors","subscribers_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/subscribers","subscription_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/subscription","commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/commits{/sha}","git_commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/commits{/sha}","comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/comments{/number}","issue_comment_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/comments{/number}","contents_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/contents/{+path}","compare_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/merges","archive_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/downloads","issues_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues{/number}","pulls_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls{/number}","milestones_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/milestones{/number}","notifications_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/labels{/name}","releases_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/releases{/id}","deployments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/deployments","created_at":"2013-02-02T08:46:10Z","updated_at":"2016-06-01T14:16:34Z","pushed_at":"2016-06-03T05:29:42Z","git_url":"git://github.com/hotosm/osm-tasking-manager2.git","ssh_url":"git@github.com:hotosm/osm-tasking-manager2.git","clone_url":"https://github.com/hotosm/osm-tasking-manager2.git","svn_url":"https://github.com/hotosm/osm-tasking-manager2","homepage":"http://tasks.hotosm.org","size":6085,"stargazers_count":149,"watchers_count":149,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":213,"forks":79,"open_issues":213,"watchers":149,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/819"},"html":{"href":"https://github.com/hotosm/osm-tasking-manager2/pull/819"},"issue":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/819"},"comments":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/819/comments"},"review_comments":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/819/comments"},"review_comment":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/819/commits"},"statuses":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/6513d40adf524e0a415e1c9796e295b649c21f42"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":306,"deletions":5,"changed_files":11}}
{"actor":{"display_login":"ethan-nelson"}}