# C:DDA Issue Voting Machine - test drive

**URL:** <https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899>\
**Category:** The Drawing Board\
**Created:** [February 11, 2015, 3:37pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899 "2015-02-11T15:37:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dRbiG](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drbig/32/1186_2.png) [@dRbiG](https://discourse.cataclysmdda.org/u/dRbiG)\
**Post date:** [February 11, 2015, 3:37pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/1 "2015-02-11T15:37:37Z")

</div>

Official URL: [http://iv.cataclysmdda.com:8111](http://iv.cataclysmdda.com:8111)

[http://178.217.184.42:8111/all](http://178.217.184.42:8111/all)  
Awaiting domain… All it needs now is a nicer redirect…

[hr]  
VERSION 0.9

[http://kaer.eu.org:8111/all](http://kaer.eu.org:8111/all)

Code: [https://github.com/drbig/cddaiv](https://github.com/drbig/cddaiv)

EDIT: Verified users will be kept for future versions. Yes, you should register for real now.

This is what I had in mind. The only caveat is that I’m keeping the case-sensitive logins (we’ll see if that’ll bite). The database is stable, so if you register here you may expect it stays so. This also means the usage should be ‘normal’ - e.g. vote the stuff you’d like to see done now!

I’m keeping the 0.9.x space for bug fixes, as I assume there will be some. The code is up on GitHub, so please feel free to contribute.

I’d like to get it properly hosted next week, including a proper domain. We’ll see how it goes.

[hr]  
VERSION 0.8

[http://kaer.eu.org:8111/all](http://kaer.eu.org:8111/all)

Note: you’ll need to make an account again and you should use a working email to test the email verifier. Logins are still case-sensitive.

Hopefully working:

[ol][li]Email verificator[/li]  
[li]Built-in scheduler for syncing and cleaning[/li]  
[li]Issue updating should work properly (crosses fingers)[/li]  
[li]Users should be able to change password and/or email[/li]  
[li]Proper redirect after voting[/li]  
[li]Should scroll to voted issue (sort of anyways)[/li]  
[li]Show if an issue is a PR or an Issue[/li]  
[li]Basic view filter[/li]  
[li]Server status page[/li]  
[li]More details here and there[/li][/ol]

To-do:

[ol][li]Ensure it works as advertised[/li]  
[li]Fix case-sensitive logins[/li]  
[li]Write instructions here and there (mostly about registering)[/li]  
[li]Read options from YAML config file[/li][/ol]

Maybe:

[ol][li]‘Stale issue’ indicator and filter (see below)[/li]  
[li]Password reset[/li]  
[li]Clean the damn templates[/li][/ol]

The email verificator and auto-updater are the crucial points here, but testing everything else is also encouraged.

The ‘stale issue’ idea:  
Mark issues that were last updated before e.g. ‘one month before now’ as ‘stale/needing attention’. This will add another icon and filter, just like the PR/Issue distinction now.

Thanks to all the alpha-testers. Please have a go and be beta-testers too!

[hr]

Original:  
So like I’ve said I will do on IRC I did a small web app for voting on CDDA issues.

At this point I’d like to test it in the wild, so here’s the link: [http://kaer.eu.org:8111/all](http://kaer.eu.org:8111/all)

It will be open since 2014-02-11 until maybe 2015-02-14, unless it breaks down or someone decides to do a spam attack. This is alpha quality software, and intent here is for you to test it and provide feedback. Feel free to post here or nag me on IRC (preferably).

Some points:

[ul][li]The email is not used for anything now, you can input anything that looks valid[/li]  
[li]Passwords are stored as salted sha1 hashes, so no plaintext[/li]  
[li]This is served from my home ADSL, so it will be slow[/li]  
[li]If this ever gets to a permanently hosted state, the database will be wiped[/li][/ul]

Todo / Known bugs:

[ol][li]Scroll to the issue you’ve just voted on[/li]  
[li]Email based new account verification[/li]  
[li]Spam protection (will include IP logging)[/li]  
[li]Built-in scheduler for syncing with GitHub[/li][/ol]

Maybe / Questions:

[ol][li]Trend graphs for issues[/li]  
[li]Include only issues (i.e. no PRs)?[/li][/ol]

As I don’t do JavaScript unless really, really necessary the front-end is rather ‘old school’. Personally I’d have nothing against someone pitching in to make a fancy JS-based front-end.

The source code will end up on GitHub in due time.

---

<div class="post-metadata">

**Author:** ![wilson7755](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@wilson7755](https://discourse.cataclysmdda.org/u/wilson7755)\
**Post date:** [February 11, 2015, 3:41pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/2 "2015-02-11T15:41:51Z")

</div>

Welcome to the forums! Don’t feed the ninjas.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [February 11, 2015, 4:47pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/3 "2015-02-11T16:47:51Z")

</div>

Nice! looks awesome so far.

Just for some context for everyone, this is something I’ve been wanting for quite a while to get feedback on bugs and features from everyone.

---

<div class="post-metadata">

**Author:** ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)\
**Post date:** [February 11, 2015, 8:21pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/4 "2015-02-11T20:21:21Z")

</div>

+1  
very nice

---

<div class="post-metadata">

**Author:** ![dRbiG](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drbig/32/1186_2.png) [@dRbiG](https://discourse.cataclysmdda.org/u/dRbiG)\
**Post date:** [February 11, 2015, 9:48pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/5 "2015-02-11T21:48:28Z")

</div>

Short note after seeing some traffic: please register and cast votes.

This is a software test, the votes don’t really matter yet.

Also I’m working on the todo list and will most likely have a more decent version before the weekend. So stay tuned. Thank you!

EDIT: To make the intent hopefully super-clear:

Go nuts on the thing. Click stuff, input crap etc. Report if there is anything that confuses you, doesn’t work as you’d think it should etc. - especially if you see mile-long stack trace (a page with a glass on top). Include your OS and browser info.

Also plain suggestions as in ‘I’d like it to also have X’ are appreciated.

---

<div class="post-metadata">

**Author:** ![Perigrin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/perigrin/32/262_2.png) [@Perigrin](https://discourse.cataclysmdda.org/u/Perigrin)\
**Post date:** [February 11, 2015, 9:52pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/6 "2015-02-11T21:52:26Z")

</div>

> [@wilson7755](#):
>
> Welcome to the forums! Don’t feed the ninjas.

I was going to say that! Ye bastard!

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [February 11, 2015, 9:54pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/7 "2015-02-11T21:54:48Z")

</div>

One of the options “V-menu sort fixes” (it’s a PR, if that matters), appears to currently have -1 votes.

---

<div class="post-metadata">

**Author:** ![dRbiG](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drbig/32/1186_2.png) [@dRbiG](https://discourse.cataclysmdda.org/u/dRbiG)\
**Post date:** [February 11, 2015, 10:01pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/8 "2015-02-11T22:01:23Z")

</div>

> [@i2amroy](#):
>
> One of the options “V-menu sort fixes” (it’s a PR, if that matters), appears to currently have -1 votes.

Yeah, the votes are Reddit-like, including negative scores. You can always click the looking glass for the ‘math’ and votes themselves.

---

<div class="post-metadata">

**Author:** ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)\
**Post date:** [February 11, 2015, 11:10pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/9 "2015-02-11T23:10:17Z")

</div>

when at a tab other than the “all”, vote action automatically takes me back to the “all” tab, besides accepting my vote. (removes selected filtering)

linux 3.18, firefox.

PS. sorting by score would be a useful feature.

---

<div class="post-metadata">

**Author:** ![dRbiG](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drbig/32/1186_2.png) [@dRbiG](https://discourse.cataclysmdda.org/u/dRbiG)\
**Post date:** [February 11, 2015, 11:43pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/10 "2015-02-11T23:43:58Z")

</div>

[quote=“jcd, post:9, topic:8899”]when at a tab other than the “all”, vote action automatically takes me back to the “all” tab, besides accepting my vote. (removes selected filtering)

linux 3.18, firefox.

PS. sorting by score would be a useful feature.[/quote]

Indeed. Already fixed in the current dev version. It will also scroll so that the issue you’ve voted for is visible. Very much appreciate a proper bug report!

Apropos sorting:  
The top and bottom pages do the by score sorting. All and closed pages do the by date sorting. I imagined a fancy JS front-end where you can sort by any header in the browser, though I’m unlikely to implement it.

I’ve also implemented user data updating, tweaks to user page (you see all your votes), minor fixes here and there, and I have a basic model for the email account verification in place, as it turns out I’ll need to write the whole thing on my own.

I have also some additional ideas that I’m likely to implement.

---

<div class="post-metadata">

**Author:** ![Mattamue](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mattamue/32/186_2.png) [@Mattamue](https://discourse.cataclysmdda.org/u/Mattamue)\
**Post date:** [February 12, 2015, 4:48am UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/11 "2015-02-12T04:48:01Z")

</div>

[quote=“dRbiG, post:1, topic:8899”]…  
[ol][li]Include only issues (i.e. no PRs)?[/li][/ol][/quote]  
Or a way to filter the types. If you could include some other data from the git that could help as well. A PR that’s 3 months old could be understood that it needs some attention to get finished VS one opened yesterday that has an active owner.

---

<div class="post-metadata">

**Author:** ![dRbiG](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drbig/32/1186_2.png) [@dRbiG](https://discourse.cataclysmdda.org/u/dRbiG)\
**Post date:** [February 12, 2015, 8:29am UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/12 "2015-02-12T08:29:22Z")

</div>

> [@Mattamue](#):
>
> Or a way to filter the types. If you could include some other data from the git that could help as well. A PR that’s 3 months old could be understood that it needs some attention to get finished VS one opened yesterday that has an active owner.

I think I’ll use GitHub icons in the column where the looking glass is to indicate whether it’s a PR or an issue. That way people who understand the difference can spot it quickly, and the rest doesn’t get bothered with too much data. The date of opening is right next to it so it should help weed out those ‘needs attention’ PRs/issues etc.

I’ll look into some simple filtering. Issues/PRs; then maybe some filter for ‘old outstanding’ stuff e.g. anything that’s still open but hasn’t been updated in a week (month?).

Thanks for feedback.

---

<div class="post-metadata">

**Author:** ![OzoneH3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ozoneh3/32/849_2.png) [@OzoneH3](https://discourse.cataclysmdda.org/u/OzoneH3)\
**Post date:** [February 12, 2015, 11:56am UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/13 "2015-02-12T11:56:18Z")

</div>

Looks really nice. Here my observations:

You can register with the samen name if it has a different casing. eg. OzoneH3 and ozoneh3.

The login should not require the exact name casing.

Voting the same issue up/down twice removes the vote, could be intended though?!

You can vote on multiple issues, if you click fast, before the page refreshes.

---

<div class="post-metadata">

**Author:** ![dRbiG](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drbig/32/1186_2.png) [@dRbiG](https://discourse.cataclysmdda.org/u/dRbiG)\
**Post date:** [February 12, 2015, 2:28pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/14 "2015-02-12T14:28:30Z")

</div>

[quote=“OzoneH3, post:13, topic:8899”]Looks really nice. Here my observations:

You can register with the samen name if it has a different casing. eg. OzoneH3 and ozoneh3.

The login should not require the exact name casing.[/quote]

We’re so used to the case-insensitive logins we had gotten desensitized to the case 😉 I’ll probably give in and downcase it otherwise some people will inevitably be confused.

> [@OzoneH3](#):
>
> Voting the same issue up/down twice removes the vote, could be intended though?!

Yes. You can ‘unvote’ in case you change your mind. Voting arrows work like on Reddit.

> [@OzoneH3](#):
>
> You can vote on multiple issues, if you click fast, before the page refreshes.

Hmm… as in ‘it doesn’t refresh fast enough’? Well, told ya it gonna be slow.

In the meantime I’ve got the email account activation done, proper redirects, db sync/cleanup logic in place, more issue details (pr vs issue, when updated). I think I’ll replace the demo with a newer version sometime today/evening-ish (CET timezone).

---

<div class="post-metadata">

**Author:** ![dRbiG](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drbig/32/1186_2.png) [@dRbiG](https://discourse.cataclysmdda.org/u/dRbiG)\
**Post date:** [February 12, 2015, 5:16pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/15 "2015-02-12T17:16:12Z")

</div>

I’m not sure how the forums work, so I’m posting here to to bump: new version is online, more info in the first post (edited).

[http://kaer.eu.org:8111/all](http://kaer.eu.org:8111/all)

Quick note: You’ll need to register again, please use a working email.

---

<div class="post-metadata">

**Author:** ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)\
**Post date:** [February 12, 2015, 10:01pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/16 "2015-02-12T22:01:58Z")

</div>

> [@dRbiG](#):
>
> We’re so used to the case-insensitive logins we had gotten desensitized to the case 😉 I’ll probably give in and downcase it otherwise some people will inevitably be confused.

the revolution has to start somewhere!!  
🙂

---

<div class="post-metadata">

**Author:** ![dRbiG](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drbig/32/1186_2.png) [@dRbiG](https://discourse.cataclysmdda.org/u/dRbiG)\
**Post date:** [February 13, 2015, 11:25pm UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/17 "2015-02-13T23:25:32Z")

</div>

Newest version is in. More serious now - read [http://smf.cataclysmdda.com/index.php?topic=9551#msg217865](http://smf.cataclysmdda.com/index.php?topic=9551#msg217865).

---

<div class="post-metadata">

**Author:** ![Mattamue](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mattamue/32/186_2.png) [@Mattamue](https://discourse.cataclysmdda.org/u/Mattamue)\
**Post date:** [February 15, 2015, 2:31am UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/18 "2015-02-15T02:31:08Z")

</div>

Looking good. Just needs some time to grow.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [February 15, 2015, 6:39am UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/19 "2015-02-15T06:39:14Z")

</div>

That’s looking really great, should I post an official call for voting in the announcements board, or would you rather I wait until the domain etc is sorted out?

---

<div class="post-metadata">

**Author:** ![StopSignal](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stopsignal/32/1923_2.png) [@StopSignal](https://discourse.cataclysmdda.org/u/StopSignal)\
**Post date:** [February 15, 2015, 6:43am UTC](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899/20 "2015-02-15T06:43:58Z")

</div>

That looks pretty good! I will try to be there sometimes.

[Next page](https://discourse.cataclysmdda.org/t/c-dda-issue-voting-machine-test-drive/8899.md?page=2)
