{"action":"created","issue":{"url":"https://api.github.com/repos/cyclestreets/cyclescape/issues/386","repository_url":"https://api.github.com/repos/cyclestreets/cyclescape","labels_url":"https://api.github.com/repos/cyclestreets/cyclescape/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/cyclestreets/cyclescape/issues/386/comments","events_url":"https://api.github.com/repos/cyclestreets/cyclescape/issues/386/events","html_url":"https://github.com/cyclestreets/cyclescape/issues/386","id":90328819,"number":386,"title":"Filtering of planning applications","user":{"login":"mvl22","id":361423,"avatar_url":"https://avatars.githubusercontent.com/u/361423?v=3","gravatar_id":"","url":"https://api.github.com/users/mvl22","html_url":"https://github.com/mvl22","followers_url":"https://api.github.com/users/mvl22/followers","following_url":"https://api.github.com/users/mvl22/following{/other_user}","gists_url":"https://api.github.com/users/mvl22/gists{/gist_id}","starred_url":"https://api.github.com/users/mvl22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvl22/subscriptions","organizations_url":"https://api.github.com/users/mvl22/orgs","repos_url":"https://api.github.com/users/mvl22/repos","events_url":"https://api.github.com/users/mvl22/events{/privacy}","received_events_url":"https://api.github.com/users/mvl22/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cyclestreets/cyclescape/labels/current-priorities","name":"current-priorities","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cyclestreets/cyclescape/milestones/7","html_url":"https://github.com/cyclestreets/cyclescape/milestones/Tranche%202","labels_url":"https://api.github.com/repos/cyclestreets/cyclescape/milestones/7/labels","id":1203277,"number":7,"title":"Tranche 2","description":"Development after Tranche 1.","creator":{"login":"mvl22","id":361423,"avatar_url":"https://avatars.githubusercontent.com/u/361423?v=3","gravatar_id":"","url":"https://api.github.com/users/mvl22","html_url":"https://github.com/mvl22","followers_url":"https://api.github.com/users/mvl22/followers","following_url":"https://api.github.com/users/mvl22/following{/other_user}","gists_url":"https://api.github.com/users/mvl22/gists{/gist_id}","starred_url":"https://api.github.com/users/mvl22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvl22/subscriptions","organizations_url":"https://api.github.com/users/mvl22/orgs","repos_url":"https://api.github.com/users/mvl22/repos","events_url":"https://api.github.com/users/mvl22/events{/privacy}","received_events_url":"https://api.github.com/users/mvl22/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":14,"state":"open","created_at":"2015-07-11T07:46:57Z","updated_at":"2016-05-04T18:24:57Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2015-06-23T08:55:41Z","updated_at":"2016-05-06T15:51:31Z","closed_at":null,"body":"We've had the planning applications feed live for a while now. It's clear there's an awful lot of rubbish contained with them, to some extent crowding out the interesting ones, and so this thread is an attempt to build up a list of what we should filter. Some of this is probably best handled as upstream PlanIt API options.\r\n"},"comment":{"url":"https://api.github.com/repos/cyclestreets/cyclescape/issues/comments/217481866","html_url":"https://github.com/cyclestreets/cyclescape/issues/386#issuecomment-217481866","issue_url":"https://api.github.com/repos/cyclestreets/cyclescape/issues/386","id":217481866,"user":{"login":"nikolai-b","id":6289830,"avatar_url":"https://avatars.githubusercontent.com/u/6289830?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolai-b","html_url":"https://github.com/nikolai-b","followers_url":"https://api.github.com/users/nikolai-b/followers","following_url":"https://api.github.com/users/nikolai-b/following{/other_user}","gists_url":"https://api.github.com/users/nikolai-b/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolai-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolai-b/subscriptions","organizations_url":"https://api.github.com/users/nikolai-b/orgs","repos_url":"https://api.github.com/users/nikolai-b/repos","events_url":"https://api.github.com/users/nikolai-b/events{/privacy}","received_events_url":"https://api.github.com/users/nikolai-b/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T15:51:31Z","updated_at":"2016-05-06T15:51:31Z","body":"@mvl22 It seems relatively simple, we want our own regex on IDOX authorities and the ability to have regex on non-IDOX.\r\nA simple admin system is that you add regex and select no authority and it would be applied to all authorities without their own regex (or using some other criteria, i.e. a checkbox of IDOX authorities), other authorities would have their own.  That way if PlanIt implement something we can use it.  Cambridge doesn't have four filters by the way, it has one regex https://github.com/cyclestreets/cyclescape/blob/staging/app/models/planning_application.rb#L93  `\\/(TTCA|TTPO|COND.*|CON\\d*|CLUED|ADV)$`\r\n\r\nI've built a simple admin interface which I believe will be useful even if there is standardisation upstream. That said I'll leave it for now till we hear back from PlantIt"}}