selectricity-live
16 years agoupdated schema
<mako@atdot.cc> [Fri, 31 Aug 2007 12:43:46 +0000 (08:43 -0400)]
updated schema

16 years agoUsers can now login form the site homepage (previously the front login page
<jlsharps@mit.edu> [Fri, 31 Aug 2007 01:28:15 +0000 (21:28 -0400)]
Users can now login form the site homepage (previously the front login page
wasn't working).

16 years agorefactored the results page
<mako@atdot.cc> [Fri, 31 Aug 2007 01:00:22 +0000 (21:00 -0400)]
refactored the results page

16 years agoThe session storage is now done via the database, be sure to relaod your
<jlsharps@mit.edu> [Fri, 31 Aug 2007 00:31:48 +0000 (20:31 -0400)]
The session storage is now done via the database, be sure to relaod your
databases. It seems that the logout error was cured, in that if you reload the
database while logged in, you shouldn't get an error when returning to the
site. I don't know how the session plugin we're using will be working with the
new storage method.

16 years agoMerge jdong
John Dong [Thu, 30 Aug 2007 23:14:55 +0000 (19:14 -0400)]
Merge jdong

16 years agoMerge head
John Dong [Thu, 30 Aug 2007 23:13:09 +0000 (19:13 -0400)]
Merge head

16 years agoCommit memcache work. memcache is only enabled in production, and currently only...
John Dong [Thu, 30 Aug 2007 23:12:35 +0000 (19:12 -0400)]
Commit memcache work. memcache is only enabled in production, and currently only thing cached are election results. At least 5-fold render speed improvement...

16 years agoStarted modifying the results page for final appearnces.
<jlsharps@mit.edu> [Thu, 30 Aug 2007 23:07:41 +0000 (19:07 -0400)]
Started modifying the results page for final appearnces.

16 years agocommitted css changes from courtland fixing some headerbar wonkiness
<mako@atdot.cc> [Thu, 30 Aug 2007 22:52:53 +0000 (18:52 -0400)]
committed css changes from courtland fixing some headerbar wonkiness

16 years agoAdded the Gruff library to the lib/ directory of the the rails folder, and the
<jlsharps@mit.edu> [Thu, 30 Aug 2007 22:41:45 +0000 (18:41 -0400)]
Added the Gruff library to the lib/ directory of the the rails folder, and the
environment require statement now uses that one. Made modifcations to Gruff
library to alternate placement of labels and crowded bar graphs. Also made a
table for approval vote method.

16 years agoChange ol to li.moveable for IE6 quirk; no need to remove all ordered lists
John Dong [Thu, 30 Aug 2007 19:30:10 +0000 (15:30 -0400)]
Change ol to li.moveable for IE6 quirk; no need to remove all ordered lists

16 years agoMerge a stylesheet hack
John Dong [Thu, 30 Aug 2007 17:55:20 +0000 (13:55 -0400)]
Merge a stylesheet hack

16 years agoTweak padding a bit to make IE6 render frontpage on one line.
John Dong [Thu, 30 Aug 2007 17:55:03 +0000 (13:55 -0400)]
Tweak padding a bit to make IE6 render frontpage on one line.

16 years agoRegex fix merged
John Dong [Thu, 30 Aug 2007 17:36:42 +0000 (13:36 -0400)]
Regex fix merged

16 years agoExpand coverage of IE regex to cover all versions 5-6
John Dong [Thu, 30 Aug 2007 17:36:23 +0000 (13:36 -0400)]
Expand coverage of IE regex to cover all versions 5-6

16 years agoAdd link woraround for the logout button
John Dong [Thu, 30 Aug 2007 17:34:06 +0000 (13:34 -0400)]
Add link woraround for the logout button

16 years agoAdd link woraround for the logout button
John Dong [Thu, 30 Aug 2007 17:33:53 +0000 (13:33 -0400)]
Add link woraround for the logout button

16 years agoMerge jdong
John Dong [Thu, 30 Aug 2007 17:30:32 +0000 (13:30 -0400)]
Merge jdong

16 years agoAdd IE6 specific hacks CSS that only gets loaded if user agent is MSIE 6.
John Dong [Thu, 30 Aug 2007 17:29:08 +0000 (13:29 -0400)]
Add IE6 specific hacks CSS that only gets loaded if user agent is MSIE 6.

This sets the background-image to render using DirectX alpha channels to properly transparentize PNG's. Also removes ordering on ordered lists so that we don't get 1. 1. 1. 1. in the dragdrop list.

16 years agoMerge jdong
John Dong [Thu, 30 Aug 2007 17:15:27 +0000 (13:15 -0400)]
Merge jdong

16 years agoOmit numbering on ol to suppress IE6 dragdrop list numbering bug
John Dong [Thu, 30 Aug 2007 17:15:15 +0000 (13:15 -0400)]
Omit numbering on ol to suppress IE6 dragdrop list numbering bug

16 years agoBack out png->gif conversion. 256-color is really ugly around the edges
John Dong [Thu, 30 Aug 2007 17:05:25 +0000 (13:05 -0400)]
Back out png->gif conversion. 256-color is really ugly around the edges

16 years agoswitched from PNG to GIF to fix IE
<mako@atdot.cc> [Thu, 30 Aug 2007 16:54:48 +0000 (12:54 -0400)]
switched from PNG to GIF to fix IE

16 years agoCnage div box to right kind of clear-div
John Dong [Thu, 30 Aug 2007 16:51:24 +0000 (12:51 -0400)]
Cnage div box to right kind of clear-div

16 years agoMerge from jdong
John Dong [Thu, 30 Aug 2007 16:39:53 +0000 (12:39 -0400)]
Merge from jdong

16 years agoRefactor voter e-mail code into start election
John Dong [Thu, 30 Aug 2007 16:39:40 +0000 (12:39 -0400)]
Refactor voter e-mail code into start election

16 years agoMerged from jdong
John Dong [Thu, 30 Aug 2007 16:23:18 +0000 (12:23 -0400)]
Merged from jdong

16 years agoRemove email_voter calls; don't do anything
John Dong [Thu, 30 Aug 2007 16:22:32 +0000 (12:22 -0400)]
Remove email_voter calls; don't do anything

16 years agoMerge jdong
John Dong [Thu, 30 Aug 2007 16:03:45 +0000 (12:03 -0400)]
Merge jdong

16 years agofix NameError in show_election
John Dong [Thu, 30 Aug 2007 16:03:34 +0000 (12:03 -0400)]
fix NameError in show_election

16 years agoMerge from jdong
John Dong [Thu, 30 Aug 2007 15:56:45 +0000 (11:56 -0400)]
Merge from jdong

16 years agoFix full voter addition bug where the regex flunks the trailing \r on middle items...
John Dong [Thu, 30 Aug 2007 15:55:30 +0000 (11:55 -0400)]
Fix full voter addition bug where the regex flunks the trailing \r on middle items in the list. At the same time, make sure to only add a voter to the election if it passes validation. This prevents cases where the voter shows up on the AJAX list but mysteriously disappears after confirming.

16 years agoMerge from head
John Dong [Thu, 30 Aug 2007 15:20:52 +0000 (11:20 -0400)]
Merge from head

16 years agoBoth quickvotes and full-size elections use the same partial in views/voter
<jlsharps@mit.edu> [Thu, 30 Aug 2007 07:55:04 +0000 (03:55 -0400)]
Both quickvotes and full-size elections use the same partial in views/voter
('sortable_vote') for the ajax voting. One gimmick seems to be that the button
is appearing above the actual list of candidates which is kinda odd, but
doesn't seem to be affecting wah'ts being committed in anyway. Also made some
modifications to the graphs and the graphs to help with how their displayed in
the new theme, hopefully it looks a litle better. Don't quite know how to
improve the results page further for quickvotes... will try keeping them
uncomputed until people ask for them?

16 years agoMerge into jdong
John Dong [Wed, 29 Aug 2007 22:22:13 +0000 (18:22 -0400)]
Merge into jdong

16 years agoRemove the 3A escape code from the view.
John Dong [Wed, 29 Aug 2007 22:21:31 +0000 (18:21 -0400)]
Remove the 3A escape code from the view.

16 years agoGet head.
John Dong [Wed, 29 Aug 2007 22:16:24 +0000 (18:16 -0400)]
Get head.

16 years agoCreated a partial to DRY the aja voting method. Modified the voter class to
<jlsharps@mit.edu> [Wed, 29 Aug 2007 22:06:16 +0000 (18:06 -0400)]
Created a partial to DRY the aja voting method. Modified the voter class to
have both a FullVoter and QuickVoter `types`. Also changed the index and review
methods so that they are more error resistant in the face of ajax voting.
Application.rb now includes the sort_candidates method from
quickvote_controller so all election types can use it. Also updated the
election results pages so that they don't throw errors any more. (Show and Hide
details)

16 years agoMerge jdong
John Dong [Wed, 29 Aug 2007 21:52:42 +0000 (17:52 -0400)]
Merge jdong

16 years agoFix testcases and also fix errors the testcase brought up
John Dong [Wed, 29 Aug 2007 21:51:48 +0000 (17:51 -0400)]
Fix testcases and also fix errors the testcase brought up

16 years agoRefined the CSS and fixed some of the more recent issues.
<mako@atdot.cc> [Wed, 29 Aug 2007 21:46:46 +0000 (17:46 -0400)]
Refined the CSS and fixed some of the more recent issues.

16 years agoMerge from jdong
John Dong [Wed, 29 Aug 2007 21:43:11 +0000 (17:43 -0400)]
Merge from jdong

16 years agoValidate usernames and passwords for accounts more closely. E-mails too
John Dong [Wed, 29 Aug 2007 21:42:55 +0000 (17:42 -0400)]
Validate usernames and passwords for accounts more closely. E-mails too

16 years agoDo some HTML escaping on election and candidate names
John Dong [Wed, 29 Aug 2007 21:26:14 +0000 (17:26 -0400)]
Do some HTML escaping on election and candidate names

16 years agoignore vendor/plugins/sitealizer/lib/last_update
John Dong [Wed, 29 Aug 2007 21:19:51 +0000 (17:19 -0400)]
ignore vendor/plugins/sitealizer/lib/last_update

16 years agoChange Recent Quickvotes to My Recent QuickVotes
John Dong [Wed, 29 Aug 2007 21:16:00 +0000 (17:16 -0400)]
Change Recent Quickvotes to My Recent QuickVotes

16 years agoMerge routes change
John Dong [Wed, 29 Aug 2007 21:00:38 +0000 (17:00 -0400)]
Merge routes change

16 years agoMerge head
John Dong [Wed, 29 Aug 2007 20:59:56 +0000 (16:59 -0400)]
Merge head

16 years agoUpdated quickvote creation to fix expanding and unexpanding.
<mako@atdot.cc> [Wed, 29 Aug 2007 20:54:17 +0000 (16:54 -0400)]
Updated quickvote creation to fix expanding and unexpanding.

16 years agoRoute index.html to site index
John Dong [Wed, 29 Aug 2007 18:27:57 +0000 (14:27 -0400)]
Route index.html to site index

16 years agoMerge jdong
John Dong [Wed, 29 Aug 2007 18:23:56 +0000 (14:23 -0400)]
Merge jdong

16 years agoExplicity make FP links white instead of inheriting.
John Dong [Wed, 29 Aug 2007 18:22:29 +0000 (14:22 -0400)]
Explicity make FP links white instead of inheriting.

16 years agoMerge head
John Dong [Wed, 29 Aug 2007 18:14:57 +0000 (14:14 -0400)]
Merge head

16 years agoMajor integration of Courtland's design into the QuickVotes.
<mako@atdot.cc> [Wed, 29 Aug 2007 18:12:16 +0000 (14:12 -0400)]
Major integration of Courtland's design into the QuickVotes.

16 years agoMerge jdong
John Dong [Wed, 29 Aug 2007 17:13:26 +0000 (13:13 -0400)]
Merge jdong

16 years agoadded quick documentation about XML-RPC interface
John Dong [Wed, 29 Aug 2007 17:13:13 +0000 (13:13 -0400)]
added quick documentation about XML-RPC interface

16 years agoFix rubydoc generation for the selectricity service.
John Dong [Wed, 29 Aug 2007 16:58:02 +0000 (12:58 -0400)]
Fix rubydoc generation for the selectricity service.

16 years agoMerge from jdong
John Dong [Wed, 29 Aug 2007 15:29:49 +0000 (11:29 -0400)]
Merge from jdong

16 years agoFix a bug where quickvote displays name cant be blank twice. validators are inherited...
John Dong [Wed, 29 Aug 2007 15:29:29 +0000 (11:29 -0400)]
Fix a bug where quickvote displays name cant be blank twice. validators are inherited from Election for presence_of already

16 years agoMerge trunk
John Dong [Wed, 29 Aug 2007 15:28:47 +0000 (11:28 -0400)]
Merge trunk

16 years agochanged images on the front page and added new headings
<mako@atdot.cc> [Wed, 29 Aug 2007 13:05:03 +0000 (09:05 -0400)]
changed images on the front page and added new headings

16 years agoMerge jdong
John Dong [Tue, 28 Aug 2007 21:22:17 +0000 (17:22 -0400)]
Merge jdong

16 years agoDocument the SelectricityAPI
John Dong [Tue, 28 Aug 2007 21:21:59 +0000 (17:21 -0400)]
Document the SelectricityAPI

16 years agoMerge jdong
John Dong [Tue, 28 Aug 2007 20:12:32 +0000 (16:12 -0400)]
Merge jdong

16 years agoRename Selectricity API calls to more explicitly call itself quickvotes.
John Dong [Tue, 28 Aug 2007 20:11:45 +0000 (16:11 -0400)]
Rename Selectricity API calls to more explicitly call itself quickvotes.

16 years agoMerge from jdong; new webstats
John Dong [Tue, 28 Aug 2007 17:31:13 +0000 (13:31 -0400)]
Merge from jdong; new webstats

16 years agoInstall sitealizer stats
John Dong [Tue, 28 Aug 2007 17:29:22 +0000 (13:29 -0400)]
Install sitealizer stats

16 years agoMoved files around a bit more.
<mako@atdot.cc> [Tue, 28 Aug 2007 17:04:59 +0000 (13:04 -0400)]
Moved files around a bit more.

16 years agoMerge from jdong
John Dong [Tue, 28 Aug 2007 16:27:38 +0000 (12:27 -0400)]
Merge from jdong

16 years agoClean up a deprecation warning and another warning.
John Dong [Tue, 28 Aug 2007 16:26:21 +0000 (12:26 -0400)]
Clean up a deprecation warning and another warning.

16 years agoMerge head
John Dong [Tue, 28 Aug 2007 15:44:47 +0000 (11:44 -0400)]
Merge head

16 years agoChanged minor CSS issue.
<mako@atdot.cc> [Tue, 28 Aug 2007 15:20:06 +0000 (11:20 -0400)]
Changed minor CSS issue.

16 years agoFirst major stab at the integration of Courtland's CSS into
<mako@atdot.cc> [Tue, 28 Aug 2007 15:12:59 +0000 (11:12 -0400)]
First major stab at the integration of Courtland's CSS into
Selectricity. It looks good!

So far, I've only really finished the front page.

16 years agoCreated a user "summary/profile page". Also corected several minor typos on election...
<jlsharps@mit.edu> [Mon, 27 Aug 2007 23:02:32 +0000 (19:02 -0400)]
Created a user "summary/profile page". Also corected several minor typos on election results pages. Modified the sign-up page to be more informative.

16 years agoAllowed for the results page of quickvotes to be hidden while the quickvote is go
<jlsharps@mit.edu> [Sat, 25 Aug 2007 00:59:18 +0000 (20:59 -0400)]
Allowed for the results page of quickvotes to be hidden while the quickvote is go
ing on. Also added a 'notices' option to QuickVotes available only to logged in u
sers. Those two options were added to the elections table, so they should be easy
 to extend to full elections. Also redid some logic on the layout and index.

16 years ago* refactored the system so that it keeps pictures in a seperate table
<mako@atdot.cc> [Fri, 24 Aug 2007 23:36:06 +0000 (19:36 -0400)]
* refactored the system so that it keeps pictures in a seperate table
  but works almost almost identically

* added a new progress bar

* fixed a few minor bugs and walked through creating a full-fledged
  election

16 years agoremoved breakpointer
<mako@atdot.cc> [Fri, 24 Aug 2007 19:01:53 +0000 (15:01 -0400)]
removed breakpointer

16 years agoAdded Plugin for dynamically adjusting session options (so they will never
<jlsharps@mit.edu> [Fri, 24 Aug 2007 18:59:36 +0000 (14:59 -0400)]
Added Plugin for dynamically adjusting session options (so they will never
expire). The code for that, along with a change of the session_key, which
changes how the cookies hash stores teh session_id, are both in the environment
file.

16 years agoAdded a method, views, and corresponding route so that a user can track the
<jlsharps@mit.edu> [Thu, 23 Aug 2007 22:27:55 +0000 (18:27 -0400)]
Added a method, views, and corresponding route so that a user can track the
quickvotes he has created by his session_id. Have yet to modify the cookies to
stick around permanently.

16 years agoFinished writing the selectricityservice_test unit tests which end up
<mako@atdot.cc> [Thu, 23 Aug 2007 20:10:12 +0000 (16:10 -0400)]
Finished writing the selectricityservice_test unit tests which end up
testing much of the application.

16 years agoBig commit includes:
<mako@atdot.cc> [Thu, 23 Aug 2007 19:45:11 +0000 (15:45 -0400)]
Big commit includes:

 * A bunch of cleanup of the unit tests.
 * Addition of fixtures for elections and candidates.
 * Cleanup of the selectricitservice model.
 * Additional tweaks for testing including addition of ruby-debug for
   testing.

16 years agoAllow custimizable graph sizes, to fit with newly modular results page. Also,
<jlsharps@mit.edu> [Thu, 23 Aug 2007 19:20:00 +0000 (15:20 -0400)]
Allow custimizable graph sizes, to fit with newly modular results page. Also,
beginning a method that will allow users to track the QuickVotes they create.

16 years agoStarted Creation of "advanced" quickvote tab. Also started to create a quickvote...
<jlsharps@mit.edu> [Wed, 22 Aug 2007 22:27:50 +0000 (18:27 -0400)]
Started Creation of "advanced" quickvote tab. Also started to create a quickvote model testing class, but it has no tests yet.

16 years agoMerge from head -- breakage
John Dong [Wed, 22 Aug 2007 04:08:24 +0000 (00:08 -0400)]
Merge from head -- breakage

16 years agoMerge from jdong
John Dong [Wed, 22 Aug 2007 02:33:12 +0000 (22:33 -0400)]
Merge from jdong

16 years agoMade the results page 'modular,' and all the necessary adaptations.
<jlsharps@mit.edu> [Tue, 21 Aug 2007 22:36:06 +0000 (18:36 -0400)]
Made the results page 'modular,' and all the necessary adaptations.

16 years agoRevise functional test of graph controller for retrieving an unknown id number. Curre...
John Dong [Tue, 21 Aug 2007 19:12:02 +0000 (15:12 -0400)]
Revise functional test of graph controller for retrieving an unknown id number. Currently I think raising RecordNotFound is fine. The alternate would be to generate a record not found PNG, but I don't see the point of doing that either.

16 years agoAdded functional tests for the graph controller -- assert that valid images return...
John Dong [Tue, 21 Aug 2007 19:08:31 +0000 (15:08 -0400)]
Added functional tests for the graph controller -- assert that valid images return png files. All tests pass well too.

16 years agoPut in a pie graph for Plurality votes. ALso slimmed down victories_and_ties method...
<jlsharps@mit.edu> [Tue, 21 Aug 2007 17:56:23 +0000 (13:56 -0400)]
Put in a pie graph for Plurality votes. ALso slimmed down victories_and_ties method in rubyvote/condorcet.rb considerably.

16 years agoAdd a fix for a NoMethodError when WHOIS/DNS server(s) time out.
John Dong [Tue, 21 Aug 2007 17:49:04 +0000 (13:49 -0400)]
Add a fix for a NoMethodError when WHOIS/DNS server(s) time out.

16 years agoFinished organzing preferential vote tables into one partial. Also changed RubyVote...
<jlsharps@mit.edu> [Tue, 21 Aug 2007 16:57:40 +0000 (12:57 -0400)]
Finished organzing preferential vote tables into one partial. Also changed RubyVote's victories_and_ties method to return a hash of hashes which stores both victories and ties.

16 years agoMerged from jdong; lots of escaping fixes
John Dong [Mon, 20 Aug 2007 21:32:57 +0000 (17:32 -0400)]
Merged from jdong; lots of escaping fixes

16 years agoMerge from head
John Dong [Mon, 20 Aug 2007 21:32:37 +0000 (17:32 -0400)]
Merge from head

16 years agoClose tables
John Dong [Mon, 20 Aug 2007 21:29:51 +0000 (17:29 -0400)]
Close tables

16 years agoAdd a bunch of fixes to HTML escaping, and a test case for it
John Dong [Mon, 20 Aug 2007 21:25:50 +0000 (17:25 -0400)]
Add a bunch of fixes to HTML escaping, and a test case for it

16 years agoAdded logic to pref_table.rhtml to prevent it from throwing an error on an empty...
<jlsharps@mit.edu> [Mon, 20 Aug 2007 21:02:14 +0000 (17:02 -0400)]
Added logic to pref_table.rhtml to prevent it from throwing an error on an empty results page.

16 years agoStreamlined some graphign contorller methods and took out the 'voters_per_day' method...
<jlsharps@mit.edu> [Mon, 20 Aug 2007 20:46:41 +0000 (16:46 -0400)]
Streamlined some graphign contorller methods and took out the 'voters_per_day' method in the results page. Merge from mako.

16 years agoMerge jdong; mostly functional testing work
John Dong [Mon, 20 Aug 2007 20:10:48 +0000 (16:10 -0400)]
Merge jdong; mostly functional testing work

16 years agoFix error when getting a quickvote result of nonexistent ident
John Dong [Mon, 20 Aug 2007 20:05:46 +0000 (16:05 -0400)]
Fix error when getting a quickvote result of nonexistent ident

16 years agoAdd test case for attempting to cast another vote with same sessid
John Dong [Mon, 20 Aug 2007 20:02:42 +0000 (16:02 -0400)]
Add test case for attempting to cast another vote with same sessid

Benjamin Mako Hill || Want to submit a patch?