{"action":"created","issue":{"url":"https://api.github.com/repos/andela/eventx/issues/109","labels_url":"https://api.github.com/repos/andela/eventx/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/andela/eventx/issues/109/comments","events_url":"https://api.github.com/repos/andela/eventx/issues/109/events","html_url":"https://github.com/andela/eventx/pull/109","id":125978171,"number":109,"title":"Scope search query and popular events query for subdomains.","user":{"login":"andela-ooranagwa","id":11221027,"avatar_url":"https://avatars.githubusercontent.com/u/11221027?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ooranagwa","html_url":"https://github.com/andela-ooranagwa","followers_url":"https://api.github.com/users/andela-ooranagwa/followers","following_url":"https://api.github.com/users/andela-ooranagwa/following{/other_user}","gists_url":"https://api.github.com/users/andela-ooranagwa/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ooranagwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ooranagwa/subscriptions","organizations_url":"https://api.github.com/users/andela-ooranagwa/orgs","repos_url":"https://api.github.com/users/andela-ooranagwa/repos","events_url":"https://api.github.com/users/andela-ooranagwa/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ooranagwa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-11T16:12:10Z","updated_at":"2016-01-12T11:06:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/andela/eventx/pulls/109","html_url":"https://github.com/andela/eventx/pull/109","diff_url":"https://github.com/andela/eventx/pull/109.diff","patch_url":"https://github.com/andela/eventx/pull/109.patch"},"body":"Modify PayPal return path to redirect to User ticket's page.\r\n\r\nWhy\r\nEvent searches (and related activities) within subdomains are expected\r\nto return only information relating to the resources on the subdomain.\r\nHowever due to the use of `raw sql` in retrieving the search and popular\r\nevents query, the subdomain scoping was being bypassed.\r\nAlso the return path for PayPal, hitherto redirects to event page and\r\nthis isn't very desirable.\r\n\r\nThis commit solves this by:\r\n* Incorporating Act_as_tentant subdomain logic in the Arel query for search and popular events\r\n* Creating a dummy unauthenticated action for PayPal return path and making it then redirect to the authenticated User tickets' page\r\n\r\nFinishes [#108931598]\r\nFinishes [#108931770]\r\nFinishes [#108932162]"},"comment":{"url":"https://api.github.com/repos/andela/eventx/issues/comments/170877632","html_url":"https://github.com/andela/eventx/pull/109#issuecomment-170877632","issue_url":"https://api.github.com/repos/andela/eventx/issues/109","id":170877632,"user":{"login":"andela-aadepoju","id":10416202,"avatar_url":"https://avatars.githubusercontent.com/u/10416202?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-aadepoju","html_url":"https://github.com/andela-aadepoju","followers_url":"https://api.github.com/users/andela-aadepoju/followers","following_url":"https://api.github.com/users/andela-aadepoju/following{/other_user}","gists_url":"https://api.github.com/users/andela-aadepoju/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-aadepoju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-aadepoju/subscriptions","organizations_url":"https://api.github.com/users/andela-aadepoju/orgs","repos_url":"https://api.github.com/users/andela-aadepoju/repos","events_url":"https://api.github.com/users/andela-aadepoju/events{/privacy}","received_events_url":"https://api.github.com/users/andela-aadepoju/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T11:06:40Z","updated_at":"2016-01-12T11:06:40Z","body":":+1: "}}