{"action":"created","comment":{"url":"https://api.github.com/repos/finnishtransportagency/harja/pulls/comments/87559290","pull_request_review_id":8167656,"id":87559290,"diff_hunk":"@@ -450,7 +454,13 @@ WHERE u.tyyppi = :urakkatyyppi :: urakkatyyppi\n         exists(SELECT id\n                FROM tekniset_laitteet_urakka tlu\n                WHERE tlu.urakkanro = u.urakkanro AND\n-                     st_dwithin(tlu.alue, st_makepoint(:x, :y), :threshold))))\n+                     st_dwithin(tlu.alue, st_makepoint(:x, :y), :threshold)))\n+       OR\n+       ((:urakkatyyppi = 'siltakorjaus') AND\n+        exists(SELECT id\n+               FROM siltapalvelusopimus sps\n+               WHERE sps.urakkanro = u.urakkanro AND\n+                     st_dwithin(sps.alue, st_makepoint(:x, :y), :threshold))))","path":"src/clj/harja/kyselyt/urakat.sql","position":36,"original_position":28,"commit_id":"bbf7e5b353a81481a81310147a65bc094494bd28","original_commit_id":"d6c34eeb9cf9f3959e93190ad3095681168c857b","user":{"login":"tatut","id":83725,"avatar_url":"https://avatars.githubusercontent.com/u/83725?v=3","gravatar_id":"","url":"https://api.github.com/users/tatut","html_url":"https://github.com/tatut","followers_url":"https://api.github.com/users/tatut/followers","following_url":"https://api.github.com/users/tatut/following{/other_user}","gists_url":"https://api.github.com/users/tatut/gists{/gist_id}","starred_url":"https://api.github.com/users/tatut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatut/subscriptions","organizations_url":"https://api.github.com/users/tatut/orgs","repos_url":"https://api.github.com/users/tatut/repos","events_url":"https://api.github.com/users/tatut/events{/privacy}","received_events_url":"https://api.github.com/users/tatut/received_events","type":"User","site_admin":false},"body":"Tässä siis siltakorjaus urakkatyyppi kohdalla ei hallintayksikkö tai sallitut urakat rajaus toimi?\r\nfoo AND bar OR baz => (foo AND bar) OR baz\r\nAND on etusijalla, joten urakka palautetaan jos se on siltakorjaus ja riittävän lähellä, vaikka käyttäjällä ei olisi siihen oikeutta.\r\n","created_at":"2016-11-11T09:28:14Z","updated_at":"2016-11-11T09:28:15Z","html_url":"https://github.com/finnishtransportagency/harja/pull/398#discussion_r87559290","pull_request_url":"https://api.github.com/repos/finnishtransportagency/harja/pulls/398","_links":{"self":{"href":"https://api.github.com/repos/finnishtransportagency/harja/pulls/comments/87559290"},"html":{"href":"https://github.com/finnishtransportagency/harja/pull/398#discussion_r87559290"},"pull_request":{"href":"https://api.github.com/repos/finnishtransportagency/harja/pulls/398"}}},"pull_request":{"url":"https://api.github.com/repos/finnishtransportagency/harja/pulls/398","id":92955856,"html_url":"https://github.com/finnishtransportagency/harja/pull/398","diff_url":"https://github.com/finnishtransportagency/harja/pull/398.diff","patch_url":"https://github.com/finnishtransportagency/harja/pull/398.patch","issue_url":"https://api.github.com/repos/finnishtransportagency/harja/issues/398","number":398,"state":"open","locked":false,"title":"HAR-3493: Siltojen palvelusopimusten ilmoitusten hallinta","user":{"login":"mikkoronkkomaki","id":8558965,"avatar_url":"https://avatars.githubusercontent.com/u/8558965?v=3","gravatar_id":"","url":"https://api.github.com/users/mikkoronkkomaki","html_url":"https://github.com/mikkoronkkomaki","followers_url":"https://api.github.com/users/mikkoronkkomaki/followers","following_url":"https://api.github.com/users/mikkoronkkomaki/following{/other_user}","gists_url":"https://api.github.com/users/mikkoronkkomaki/gists{/gist_id}","starred_url":"https://api.github.com/users/mikkoronkkomaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikkoronkkomaki/subscriptions","organizations_url":"https://api.github.com/users/mikkoronkkomaki/orgs","repos_url":"https://api.github.com/users/mikkoronkkomaki/repos","events_url":"https://api.github.com/users/mikkoronkkomaki/events{/privacy}","received_events_url":"https://api.github.com/users/mikkoronkkomaki/received_events","type":"User","site_admin":false},"body":"SILTOPA urakalle lisätään geometriat sekä lisätään tuki välittää näiden geometrioiden avulla ilmoitukset oikealle urakalle.","created_at":"2016-11-09T12:36:03Z","updated_at":"2016-11-11T09:28:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdbeb48ce332c8cc4fff7fca35761aa975e2b795","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/finnishtransportagency/harja/pulls/398/commits","review_comments_url":"https://api.github.com/repos/finnishtransportagency/harja/pulls/398/comments","review_comment_url":"https://api.github.com/repos/finnishtransportagency/harja/pulls/comments{/number}","comments_url":"https://api.github.com/repos/finnishtransportagency/harja/issues/398/comments","statuses_url":"https://api.github.com/repos/finnishtransportagency/harja/statuses/bbf7e5b353a81481a81310147a65bc094494bd28","head":{"label":"finnishtransportagency:HAR-3493-siltopa","ref":"HAR-3493-siltopa","sha":"bbf7e5b353a81481a81310147a65bc094494bd28","user":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"repo":{"id":59985646,"name":"harja","full_name":"finnishtransportagency/harja","owner":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/finnishtransportagency/harja","description":"Liikenneviraston Harja-projekti","fork":false,"url":"https://api.github.com/repos/finnishtransportagency/harja","forks_url":"https://api.github.com/repos/finnishtransportagency/harja/forks","keys_url":"https://api.github.com/repos/finnishtransportagency/harja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnishtransportagency/harja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnishtransportagency/harja/teams","hooks_url":"https://api.github.com/repos/finnishtransportagency/harja/hooks","issue_events_url":"https://api.github.com/repos/finnishtransportagency/harja/issues/events{/number}","events_url":"https://api.github.com/repos/finnishtransportagency/harja/events","assignees_url":"https://api.github.com/repos/finnishtransportagency/harja/assignees{/user}","branches_url":"https://api.github.com/repos/finnishtransportagency/harja/branches{/branch}","tags_url":"https://api.github.com/repos/finnishtransportagency/harja/tags","blobs_url":"https://api.github.com/repos/finnishtransportagency/harja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnishtransportagency/harja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnishtransportagency/harja/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnishtransportagency/harja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnishtransportagency/harja/statuses/{sha}","languages_url":"https://api.github.com/repos/finnishtransportagency/harja/languages","stargazers_url":"https://api.github.com/repos/finnishtransportagency/harja/stargazers","contributors_url":"https://api.github.com/repos/finnishtransportagency/harja/contributors","subscribers_url":"https://api.github.com/repos/finnishtransportagency/harja/subscribers","subscription_url":"https://api.github.com/repos/finnishtransportagency/harja/subscription","commits_url":"https://api.github.com/repos/finnishtransportagency/harja/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnishtransportagency/harja/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnishtransportagency/harja/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnishtransportagency/harja/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnishtransportagency/harja/contents/{+path}","compare_url":"https://api.github.com/repos/finnishtransportagency/harja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnishtransportagency/harja/merges","archive_url":"https://api.github.com/repos/finnishtransportagency/harja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnishtransportagency/harja/downloads","issues_url":"https://api.github.com/repos/finnishtransportagency/harja/issues{/number}","pulls_url":"https://api.github.com/repos/finnishtransportagency/harja/pulls{/number}","milestones_url":"https://api.github.com/repos/finnishtransportagency/harja/milestones{/number}","notifications_url":"https://api.github.com/repos/finnishtransportagency/harja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnishtransportagency/harja/labels{/name}","releases_url":"https://api.github.com/repos/finnishtransportagency/harja/releases{/id}","deployments_url":"https://api.github.com/repos/finnishtransportagency/harja/deployments","created_at":"2016-05-30T06:26:27Z","updated_at":"2016-10-24T09:34:06Z","pushed_at":"2016-11-11T08:53:49Z","git_url":"git://github.com/finnishtransportagency/harja.git","ssh_url":"git@github.com:finnishtransportagency/harja.git","clone_url":"https://github.com/finnishtransportagency/harja.git","svn_url":"https://github.com/finnishtransportagency/harja","homepage":"http://finnishtransportagency.github.io/harja/","size":38889,"stargazers_count":3,"watchers_count":3,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"develop"}},"base":{"label":"finnishtransportagency:develop","ref":"develop","sha":"4665e5cc94d0a1ab320a1038c55801d37a5ad980","user":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"repo":{"id":59985646,"name":"harja","full_name":"finnishtransportagency/harja","owner":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/finnishtransportagency/harja","description":"Liikenneviraston Harja-projekti","fork":false,"url":"https://api.github.com/repos/finnishtransportagency/harja","forks_url":"https://api.github.com/repos/finnishtransportagency/harja/forks","keys_url":"https://api.github.com/repos/finnishtransportagency/harja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnishtransportagency/harja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnishtransportagency/harja/teams","hooks_url":"https://api.github.com/repos/finnishtransportagency/harja/hooks","issue_events_url":"https://api.github.com/repos/finnishtransportagency/harja/issues/events{/number}","events_url":"https://api.github.com/repos/finnishtransportagency/harja/events","assignees_url":"https://api.github.com/repos/finnishtransportagency/harja/assignees{/user}","branches_url":"https://api.github.com/repos/finnishtransportagency/harja/branches{/branch}","tags_url":"https://api.github.com/repos/finnishtransportagency/harja/tags","blobs_url":"https://api.github.com/repos/finnishtransportagency/harja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnishtransportagency/harja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnishtransportagency/harja/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnishtransportagency/harja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnishtransportagency/harja/statuses/{sha}","languages_url":"https://api.github.com/repos/finnishtransportagency/harja/languages","stargazers_url":"https://api.github.com/repos/finnishtransportagency/harja/stargazers","contributors_url":"https://api.github.com/repos/finnishtransportagency/harja/contributors","subscribers_url":"https://api.github.com/repos/finnishtransportagency/harja/subscribers","subscription_url":"https://api.github.com/repos/finnishtransportagency/harja/subscription","commits_url":"https://api.github.com/repos/finnishtransportagency/harja/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnishtransportagency/harja/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnishtransportagency/harja/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnishtransportagency/harja/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnishtransportagency/harja/contents/{+path}","compare_url":"https://api.github.com/repos/finnishtransportagency/harja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnishtransportagency/harja/merges","archive_url":"https://api.github.com/repos/finnishtransportagency/harja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnishtransportagency/harja/downloads","issues_url":"https://api.github.com/repos/finnishtransportagency/harja/issues{/number}","pulls_url":"https://api.github.com/repos/finnishtransportagency/harja/pulls{/number}","milestones_url":"https://api.github.com/repos/finnishtransportagency/harja/milestones{/number}","notifications_url":"https://api.github.com/repos/finnishtransportagency/harja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnishtransportagency/harja/labels{/name}","releases_url":"https://api.github.com/repos/finnishtransportagency/harja/releases{/id}","deployments_url":"https://api.github.com/repos/finnishtransportagency/harja/deployments","created_at":"2016-05-30T06:26:27Z","updated_at":"2016-10-24T09:34:06Z","pushed_at":"2016-11-11T08:53:49Z","git_url":"git://github.com/finnishtransportagency/harja.git","ssh_url":"git@github.com:finnishtransportagency/harja.git","clone_url":"https://github.com/finnishtransportagency/harja.git","svn_url":"https://github.com/finnishtransportagency/harja","homepage":"http://finnishtransportagency.github.io/harja/","size":38889,"stargazers_count":3,"watchers_count":3,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/finnishtransportagency/harja/pulls/398"},"html":{"href":"https://github.com/finnishtransportagency/harja/pull/398"},"issue":{"href":"https://api.github.com/repos/finnishtransportagency/harja/issues/398"},"comments":{"href":"https://api.github.com/repos/finnishtransportagency/harja/issues/398/comments"},"review_comments":{"href":"https://api.github.com/repos/finnishtransportagency/harja/pulls/398/comments"},"review_comment":{"href":"https://api.github.com/repos/finnishtransportagency/harja/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/finnishtransportagency/harja/pulls/398/commits"},"statuses":{"href":"https://api.github.com/repos/finnishtransportagency/harja/statuses/bbf7e5b353a81481a81310147a65bc094494bd28"}}}}
{"actor":{"display_login":"tatut"}}