{"action":"created","comment":{"url":"https://api.github.com/repos/systers/portal/pulls/comments/201823065","pull_request_review_id":136401729,"id":201823065,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTgyMzA2NQ==","diff_hunk":"@@ -1489,3 +1510,63 @@ def post(self, request):\n         meetups = Meetup.objects.filter(date__gte=date).order_by('date')\n         apiforvmsview = ApiForVmsView()\n         return(apiforvmsview.return_meetup_data(meetups))\n+\n+\n+@csrf_exempt\n+def search(request):\n+    if request.method == 'POST':\n+        date = request.POST.get('date')\n+        meetup_location = request.POST.get('meetup_location')\n+        keyword = request.POST.get('keyword')\n+        selected_filter = request.POST.get('filter')\n+        location = request.POST.get('location')\n+        if meetup_location == 'Meetup Location':\n+            meetup_location = ''\n+        if date and meetup_location and keyword:\n+            searched_meetups = Meetup.objects.filter(Q(description__contains=keyword) |\n+                                                     Q(title__contains=keyword), date=date,\n+                                                     meetup_location__name=meetup_location)\n+        elif date and meetup_location:\n+            searched_meetups = Meetup.objects.filter(date=date,\n+                                                     meetup_location__name=meetup_location)\n+        elif date and keyword:\n+            searched_meetups = Meetup.objects.filter(Q(description__contains=keyword) | ","path":"systers_portal/meetup/views.py","position":64,"original_position":64,"commit_id":"b0429ccf5391c8afbce6962fd7d81c859a224823","original_commit_id":"b0429ccf5391c8afbce6962fd7d81c859a224823","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","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: [Trailing whitespace](https://app.codacy.com/app/Systers/portal/pullRequest?prid=1891011)","created_at":"2018-07-11T20:06:54Z","updated_at":"2018-07-11T20:06:54Z","html_url":"https://github.com/systers/portal/pull/430#discussion_r201823065","pull_request_url":"https://api.github.com/repos/systers/portal/pulls/430","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/systers/portal/pulls/comments/201823065"},"html":{"href":"https://github.com/systers/portal/pull/430#discussion_r201823065"},"pull_request":{"href":"https://api.github.com/repos/systers/portal/pulls/430"}}},"pull_request":{"url":"https://api.github.com/repos/systers/portal/pulls/430","id":200787830,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNzg3ODMw","html_url":"https://github.com/systers/portal/pull/430","diff_url":"https://github.com/systers/portal/pull/430.diff","patch_url":"https://github.com/systers/portal/pull/430.patch","issue_url":"https://api.github.com/repos/systers/portal/issues/430","number":430,"state":"open","locked":false,"title":"Added Upcoming Meetups page along with search options and filters","user":{"login":"abhi20161997","id":23247839,"node_id":"MDQ6VXNlcjIzMjQ3ODM5","avatar_url":"https://avatars2.githubusercontent.com/u/23247839?v=4","gravatar_id":"","url":"https://api.github.com/users/abhi20161997","html_url":"https://github.com/abhi20161997","followers_url":"https://api.github.com/users/abhi20161997/followers","following_url":"https://api.github.com/users/abhi20161997/following{/other_user}","gists_url":"https://api.github.com/users/abhi20161997/gists{/gist_id}","starred_url":"https://api.github.com/users/abhi20161997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhi20161997/subscriptions","organizations_url":"https://api.github.com/users/abhi20161997/orgs","repos_url":"https://api.github.com/users/abhi20161997/repos","events_url":"https://api.github.com/users/abhi20161997/events{/privacy}","received_events_url":"https://api.github.com/users/abhi20161997/received_events","type":"User","site_admin":false},"body":"### Description\r\nAdded Upcoming Meetups page along with search options allowing users to search by meetup location, date or keyword and filter by date or distance.\r\n\r\nFixes #429 \r\n\r\n### Mocks\r\n![screenshot from 2018-07-10 13-19-43](https://user-images.githubusercontent.com/23247839/42592131-46ee49f6-8566-11e8-8cb3-59f49e5b460f.png)\r\n![screenshot from 2018-07-11 23-06-33](https://user-images.githubusercontent.com/23247839/42592144-518e0e64-8566-11e8-99bc-dec1419c3118.png)\r\n![screenshot from 2018-07-11 23-06-58](https://user-images.githubusercontent.com/23247839/42592145-51d5fa58-8566-11e8-93d9-f27eee7d14a0.png)\r\n![screenshot from 2018-07-11 23-07-18](https://user-images.githubusercontent.com/23247839/42592147-527452c0-8566-11e8-935d-abf552d0e37a.png)\r\n![screenshot from 2018-07-11 23-08-29](https://user-images.githubusercontent.com/23247839/42592148-52be7df0-8566-11e8-8c2b-e723dc3edd69.png)\r\n\r\n\r\n### Type of Change:\r\n\r\n- Code\r\n- User Interface\r\n\r\n**Code/Quality Assurance Only**\r\n- This change requires a documentation update (software upgrade on readme file)\r\n- New feature (non-breaking change which adds functionality pre-approved by mentors)\r\n\r\n\r\n\r\n\r\n### Checklist:\r\n**Delete irrelevant options.**\r\n\r\n- [ ] My PR follows the style guidelines of this project\r\n- [ ] I have performed a self-review of my own code or materials\r\n- [ ] I have commented my code or provided relevant documentation, particularly in hard-to-understand areas\r\n\r\n**Code/Quality Assurance Only**\r\n- [ ] My changes generate no new warnings \r\n- [ ] New and existing unit tests pass locally with my changes\r\n","created_at":"2018-07-11T18:28:40Z","updated_at":"2018-07-11T20:06:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51d3e183a81900542fd87753cef679f16193b6ea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/systers/portal/pulls/430/commits","review_comments_url":"https://api.github.com/repos/systers/portal/pulls/430/comments","review_comment_url":"https://api.github.com/repos/systers/portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systers/portal/issues/430/comments","statuses_url":"https://api.github.com/repos/systers/portal/statuses/b0429ccf5391c8afbce6962fd7d81c859a224823","head":{"label":"abhi20161997:search_features","ref":"search_features","sha":"b0429ccf5391c8afbce6962fd7d81c859a224823","user":{"login":"abhi20161997","id":23247839,"node_id":"MDQ6VXNlcjIzMjQ3ODM5","avatar_url":"https://avatars2.githubusercontent.com/u/23247839?v=4","gravatar_id":"","url":"https://api.github.com/users/abhi20161997","html_url":"https://github.com/abhi20161997","followers_url":"https://api.github.com/users/abhi20161997/followers","following_url":"https://api.github.com/users/abhi20161997/following{/other_user}","gists_url":"https://api.github.com/users/abhi20161997/gists{/gist_id}","starred_url":"https://api.github.com/users/abhi20161997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhi20161997/subscriptions","organizations_url":"https://api.github.com/users/abhi20161997/orgs","repos_url":"https://api.github.com/users/abhi20161997/repos","events_url":"https://api.github.com/users/abhi20161997/events{/privacy}","received_events_url":"https://api.github.com/users/abhi20161997/received_events","type":"User","site_admin":false},"repo":{"id":123505081,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1MDUwODE=","name":"portal","full_name":"abhi20161997/portal","owner":{"login":"abhi20161997","id":23247839,"node_id":"MDQ6VXNlcjIzMjQ3ODM5","avatar_url":"https://avatars2.githubusercontent.com/u/23247839?v=4","gravatar_id":"","url":"https://api.github.com/users/abhi20161997","html_url":"https://github.com/abhi20161997","followers_url":"https://api.github.com/users/abhi20161997/followers","following_url":"https://api.github.com/users/abhi20161997/following{/other_user}","gists_url":"https://api.github.com/users/abhi20161997/gists{/gist_id}","starred_url":"https://api.github.com/users/abhi20161997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhi20161997/subscriptions","organizations_url":"https://api.github.com/users/abhi20161997/orgs","repos_url":"https://api.github.com/users/abhi20161997/repos","events_url":"https://api.github.com/users/abhi20161997/events{/privacy}","received_events_url":"https://api.github.com/users/abhi20161997/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abhi20161997/portal","description":"Systers Portal for communities","fork":true,"url":"https://api.github.com/repos/abhi20161997/portal","forks_url":"https://api.github.com/repos/abhi20161997/portal/forks","keys_url":"https://api.github.com/repos/abhi20161997/portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abhi20161997/portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abhi20161997/portal/teams","hooks_url":"https://api.github.com/repos/abhi20161997/portal/hooks","issue_events_url":"https://api.github.com/repos/abhi20161997/portal/issues/events{/number}","events_url":"https://api.github.com/repos/abhi20161997/portal/events","assignees_url":"https://api.github.com/repos/abhi20161997/portal/assignees{/user}","branches_url":"https://api.github.com/repos/abhi20161997/portal/branches{/branch}","tags_url":"https://api.github.com/repos/abhi20161997/portal/tags","blobs_url":"https://api.github.com/repos/abhi20161997/portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abhi20161997/portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abhi20161997/portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/abhi20161997/portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abhi20161997/portal/statuses/{sha}","languages_url":"https://api.github.com/repos/abhi20161997/portal/languages","stargazers_url":"https://api.github.com/repos/abhi20161997/portal/stargazers","contributors_url":"https://api.github.com/repos/abhi20161997/portal/contributors","subscribers_url":"https://api.github.com/repos/abhi20161997/portal/subscribers","subscription_url":"https://api.github.com/repos/abhi20161997/portal/subscription","commits_url":"https://api.github.com/repos/abhi20161997/portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/abhi20161997/portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/abhi20161997/portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/abhi20161997/portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/abhi20161997/portal/contents/{+path}","compare_url":"https://api.github.com/repos/abhi20161997/portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abhi20161997/portal/merges","archive_url":"https://api.github.com/repos/abhi20161997/portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abhi20161997/portal/downloads","issues_url":"https://api.github.com/repos/abhi20161997/portal/issues{/number}","pulls_url":"https://api.github.com/repos/abhi20161997/portal/pulls{/number}","milestones_url":"https://api.github.com/repos/abhi20161997/portal/milestones{/number}","notifications_url":"https://api.github.com/repos/abhi20161997/portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abhi20161997/portal/labels{/name}","releases_url":"https://api.github.com/repos/abhi20161997/portal/releases{/id}","deployments_url":"https://api.github.com/repos/abhi20161997/portal/deployments","created_at":"2018-03-01T23:36:04Z","updated_at":"2018-06-26T10:37:48Z","pushed_at":"2018-07-11T20:04:01Z","git_url":"git://github.com/abhi20161997/portal.git","ssh_url":"git@github.com:abhi20161997/portal.git","clone_url":"https://github.com/abhi20161997/portal.git","svn_url":"https://github.com/abhi20161997/portal","homepage":null,"size":6187,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"systers:develop","ref":"develop","sha":"afb07ef22337a12c822391da6718c5260070e8de","user":{"login":"systers","id":6520415,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1MjA0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/6520415?v=4","gravatar_id":"","url":"https://api.github.com/users/systers","html_url":"https://github.com/systers","followers_url":"https://api.github.com/users/systers/followers","following_url":"https://api.github.com/users/systers/following{/other_user}","gists_url":"https://api.github.com/users/systers/gists{/gist_id}","starred_url":"https://api.github.com/users/systers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systers/subscriptions","organizations_url":"https://api.github.com/users/systers/orgs","repos_url":"https://api.github.com/users/systers/repos","events_url":"https://api.github.com/users/systers/events{/privacy}","received_events_url":"https://api.github.com/users/systers/received_events","type":"Organization","site_admin":false},"repo":{"id":19014376,"node_id":"MDEwOlJlcG9zaXRvcnkxOTAxNDM3Ng==","name":"portal","full_name":"systers/portal","owner":{"login":"systers","id":6520415,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1MjA0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/6520415?v=4","gravatar_id":"","url":"https://api.github.com/users/systers","html_url":"https://github.com/systers","followers_url":"https://api.github.com/users/systers/followers","following_url":"https://api.github.com/users/systers/following{/other_user}","gists_url":"https://api.github.com/users/systers/gists{/gist_id}","starred_url":"https://api.github.com/users/systers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systers/subscriptions","organizations_url":"https://api.github.com/users/systers/orgs","repos_url":"https://api.github.com/users/systers/repos","events_url":"https://api.github.com/users/systers/events{/privacy}","received_events_url":"https://api.github.com/users/systers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systers/portal","description":"Systers Portal for communities (https://portal-dev.systers.org/)","fork":false,"url":"https://api.github.com/repos/systers/portal","forks_url":"https://api.github.com/repos/systers/portal/forks","keys_url":"https://api.github.com/repos/systers/portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systers/portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systers/portal/teams","hooks_url":"https://api.github.com/repos/systers/portal/hooks","issue_events_url":"https://api.github.com/repos/systers/portal/issues/events{/number}","events_url":"https://api.github.com/repos/systers/portal/events","assignees_url":"https://api.github.com/repos/systers/portal/assignees{/user}","branches_url":"https://api.github.com/repos/systers/portal/branches{/branch}","tags_url":"https://api.github.com/repos/systers/portal/tags","blobs_url":"https://api.github.com/repos/systers/portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systers/portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systers/portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/systers/portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systers/portal/statuses/{sha}","languages_url":"https://api.github.com/repos/systers/portal/languages","stargazers_url":"https://api.github.com/repos/systers/portal/stargazers","contributors_url":"https://api.github.com/repos/systers/portal/contributors","subscribers_url":"https://api.github.com/repos/systers/portal/subscribers","subscription_url":"https://api.github.com/repos/systers/portal/subscription","commits_url":"https://api.github.com/repos/systers/portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/systers/portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/systers/portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/systers/portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/systers/portal/contents/{+path}","compare_url":"https://api.github.com/repos/systers/portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systers/portal/merges","archive_url":"https://api.github.com/repos/systers/portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systers/portal/downloads","issues_url":"https://api.github.com/repos/systers/portal/issues{/number}","pulls_url":"https://api.github.com/repos/systers/portal/pulls{/number}","milestones_url":"https://api.github.com/repos/systers/portal/milestones{/number}","notifications_url":"https://api.github.com/repos/systers/portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systers/portal/labels{/name}","releases_url":"https://api.github.com/repos/systers/portal/releases{/id}","deployments_url":"https://api.github.com/repos/systers/portal/deployments","created_at":"2014-04-22T02:29:14Z","updated_at":"2018-07-08T13:45:13Z","pushed_at":"2018-07-11T20:04:03Z","git_url":"git://github.com/systers/portal.git","ssh_url":"git@github.com:systers/portal.git","clone_url":"https://github.com/systers/portal.git","svn_url":"https://github.com/systers/portal","homepage":"http://systers.io/portal/","size":6019,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":135,"mirror_url":null,"archived":false,"open_issues_count":68,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":135,"open_issues":68,"watchers":44,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/systers/portal/pulls/430"},"html":{"href":"https://github.com/systers/portal/pull/430"},"issue":{"href":"https://api.github.com/repos/systers/portal/issues/430"},"comments":{"href":"https://api.github.com/repos/systers/portal/issues/430/comments"},"review_comments":{"href":"https://api.github.com/repos/systers/portal/pulls/430/comments"},"review_comment":{"href":"https://api.github.com/repos/systers/portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systers/portal/pulls/430/commits"},"statuses":{"href":"https://api.github.com/repos/systers/portal/statuses/b0429ccf5391c8afbce6962fd7d81c859a224823"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codacy-bot"}}