{"action":"created","issue":{"url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1508","labels_url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1508/labels{/name}","comments_url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1508/comments","events_url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1508/events","html_url":"https://github.com/dreamwidth/dw-free/issues/1508","id":98846152,"number":1508,"title":"Have a run-off option for polls","user":{"login":"pseudomonas","id":2255067,"avatar_url":"https://avatars.githubusercontent.com/u/2255067?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomonas","html_url":"https://github.com/pseudomonas","followers_url":"https://api.github.com/users/pseudomonas/followers","following_url":"https://api.github.com/users/pseudomonas/following{/other_user}","gists_url":"https://api.github.com/users/pseudomonas/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomonas/subscriptions","organizations_url":"https://api.github.com/users/pseudomonas/orgs","repos_url":"https://api.github.com/users/pseudomonas/repos","events_url":"https://api.github.com/users/pseudomonas/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomonas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dreamwidth/dw-free/labels/status:%20claimed","name":"status: claimed","color":"ededed"},{"url":"https://api.github.com/repos/dreamwidth/dw-free/labels/status:%20untriaged","name":"status: untriaged","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"pseudomonas","id":2255067,"avatar_url":"https://avatars.githubusercontent.com/u/2255067?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomonas","html_url":"https://github.com/pseudomonas","followers_url":"https://api.github.com/users/pseudomonas/followers","following_url":"https://api.github.com/users/pseudomonas/following{/other_user}","gists_url":"https://api.github.com/users/pseudomonas/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomonas/subscriptions","organizations_url":"https://api.github.com/users/pseudomonas/orgs","repos_url":"https://api.github.com/users/pseudomonas/repos","events_url":"https://api.github.com/users/pseudomonas/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomonas/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-08-03T21:56:05Z","updated_at":"2015-08-03T23:08:03Z","closed_at":null,"body":"text copied from https://dw-suggestions.dreamwidth.org/405805.html\r\n\r\nSummary:\r\nIt should be possible to have polls where users ranks options in order of preference (instant runoff or preferential voting).\r\n\r\nDescription:\r\nCurrently we allow for simple plurality voting (radio buttons) and approval voting (checkboxes), but not for preferential voting. As a polling theory geek (involved in the UK campaign for reform) this makes me sad.\r\n\r\nWe should be able to have polls where a list of options is given, and voters can rank them in order of preference. When the poll is closed, a counting algorithm can be run to reveal which option wins after losing preferences are reassigned.\r\n\r\nThe code, I think, partially exists for this on LJ as they used it for the advisorty board elections. I don't think it was a good implementation, but it was workable and could probably be improved.\r\n\r\nDrawbacks are mostly coding and processing time, as calculating a result will require backened work, especially true if the current result is showing. The LJ implementation is poor and would need improving.\r\n\r\nAdvantages are that polling geeks like me are very happy, and users can use polls in a more expressive manner. Prefential voting is a good way to organise outings and similar, so good for a journalling site; eg ten people plan a meal together, do they want pizza, burger or that new veggie place, etc..."},"comment":{"url":"https://api.github.com/repos/dreamwidth/dw-free/issues/comments/127428230","html_url":"https://github.com/dreamwidth/dw-free/issues/1508#issuecomment-127428230","issue_url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1508","id":127428230,"user":{"login":"pseudomonas","id":2255067,"avatar_url":"https://avatars.githubusercontent.com/u/2255067?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomonas","html_url":"https://github.com/pseudomonas","followers_url":"https://api.github.com/users/pseudomonas/followers","following_url":"https://api.github.com/users/pseudomonas/following{/other_user}","gists_url":"https://api.github.com/users/pseudomonas/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomonas/subscriptions","organizations_url":"https://api.github.com/users/pseudomonas/orgs","repos_url":"https://api.github.com/users/pseudomonas/repos","events_url":"https://api.github.com/users/pseudomonas/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomonas/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T23:08:03Z","updated_at":"2015-08-03T23:08:03Z","body":"OK, thanks! So, I'll refactor, trying to rewrite as little as possible besides that necessary to make things a bit more OO-ish; then tidy a bit, then one day hopefully actually implement new feature on the nice bald yak."}}