{"action":"opened","issue":{"url":"https://api.github.com/repos/publiclab/plots2/issues/949","repository_url":"https://api.github.com/repos/publiclab/plots2","labels_url":"https://api.github.com/repos/publiclab/plots2/issues/949/labels{/name}","comments_url":"https://api.github.com/repos/publiclab/plots2/issues/949/comments","events_url":"https://api.github.com/repos/publiclab/plots2/issues/949/events","html_url":"https://github.com/publiclab/plots2/issues/949","id":186890572,"number":949,"title":"incorrect \"question:generalspectrometer\" tag gets added to questions from somewhere","user":{"login":"jywarren","id":24359,"avatar_url":"https://avatars.githubusercontent.com/u/24359?v=3","gravatar_id":"","url":"https://api.github.com/users/jywarren","html_url":"https://github.com/jywarren","followers_url":"https://api.github.com/users/jywarren/followers","following_url":"https://api.github.com/users/jywarren/following{/other_user}","gists_url":"https://api.github.com/users/jywarren/gists{/gist_id}","starred_url":"https://api.github.com/users/jywarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jywarren/subscriptions","organizations_url":"https://api.github.com/users/jywarren/orgs","repos_url":"https://api.github.com/users/jywarren/repos","events_url":"https://api.github.com/users/jywarren/events{/privacy}","received_events_url":"https://api.github.com/users/jywarren/received_events","type":"User","site_admin":false},"labels":[{"id":42345818,"url":"https://api.github.com/repos/publiclab/plots2/labels/bug","name":"bug","color":"fc2929","default":true},{"id":471889929,"url":"https://api.github.com/repos/publiclab/plots2/labels/fto-candidate","name":"fto-candidate","color":"1d76db","default":false},{"id":173349489,"url":"https://api.github.com/repos/publiclab/plots2/labels/help-wanted","name":"help-wanted","color":"bfe5bf","default":false},{"id":343384842,"url":"https://api.github.com/repos/publiclab/plots2/labels/Ruby","name":"Ruby","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-02T18:56:51Z","updated_at":"2016-11-02T18:56:51Z","closed_at":null,"body":"### What happened just before the problem occurred\r\n\r\nThis person posted a question: https://publiclab.org/questions/chuynh451/11-01-2016/intensity-for-spectra-too-low\r\n\r\nBut it was originally tagged with `question:generalspectrometer` -- it should've been `question:spectrometer` or `question:general`, so there must be an error in the input form somewhere. \r\n\r\nIndeed this page shows that tag when you click the `Ask a question` button: https://publiclab.org/wiki/spectrometer -- the link ends up being:\r\n\r\nhttps://publiclab.org/post?template=question&tags=question:generalspectrometer\r\n\r\nThe template code for that is here: https://github.com/publiclab/plots2/blob/master/app/views/sidebar/_related.html.erb#L8\r\n\r\nand it's pretty tangled; could use simplification or better formatting, maybe breaking it up onto multiple lines. But the key section is:\r\n\r\n`\r\nhref=\"/post<%= '?template=question&tags=question:general'+(@tagnames.uniq.delete_if{|x| x.match(\":\") }).join(',') if @tagnames %>\r\n`\r\n\r\nThe simplest fix would be to just add a comma after `general` -- as that's being concatenated to the tag name from `@tagnames.uniq`."}}
{"actor":{"display_login":"jywarren"}}