pairwise-api.git
5 months agoadd comment for ignore choices master
Luke Baker [Tue, 22 Nov 2011 15:06:33 +0000]
add comment for ignore choices

5 months agoremove global appearance to vote + skips test
Luke Baker [Mon, 21 Nov 2011 20:31:11 +0000]
remove global appearance to vote + skips test

this test is superseded by answered_appearances_equals_votes_and_skips

5 months agoignore some choices for irregular # of appearances
Luke Baker [Mon, 21 Nov 2011 20:26:13 +0000]
ignore some choices for irregular # of appearances

choices that are deactivated / activated may appear to have irregular #
of appearances.  add an array to contain list of choices_ids that we
will ignore for this test.

5 months agoconvert error_message to a string
Luke Baker [Wed, 16 Nov 2011 21:37:30 +0000]
convert error_message to a string

5 months agoadd test to check for prompt_id mismatch
Luke Baker [Wed, 16 Nov 2011 21:28:44 +0000]
add test to check for prompt_id mismatch

check for prompt_id mismatch between appearances and their related votes

5 months agoadd task to fix mismatch between prompt_ids
Luke Baker [Wed, 16 Nov 2011 21:27:42 +0000]
add task to fix mismatch between prompt_ids

some appearances and their related votes did not have match prompt_ids.
This task will update the appearance's prompt_id to match the vote's
prompt_id.

5 months agore-indent prune_db rake file
Luke Baker [Wed, 16 Nov 2011 20:37:15 +0000]
re-indent prune_db rake file

5 months agore-arrange rake tasks
Luke Baker [Wed, 16 Nov 2011 20:34:55 +0000]
re-arrange rake tasks

6 months agoadd task to invalidate orphaned votes
Luke Baker [Wed, 9 Nov 2011 17:46:11 +0000]
add task to invalidate orphaned votes

6 months agoupdate links in README
Luke Baker [Fri, 4 Nov 2011 16:31:37 +0000]
update links in README

6 months agoAdd more documentation to README file
Luke Baker [Fri, 4 Nov 2011 16:29:36 +0000]
Add more documentation to README file

6 months agoupdate pairwise to not rely on environment varibles
Luke Baker [Mon, 31 Oct 2011 20:34:03 +0000]
update pairwise to not rely on environment varibles

6 months agoMerge branch 'master' into atomic-appearance-updates
Luke Baker [Mon, 17 Oct 2011 19:02:06 +0000]
Merge branch 'master' into atomic-appearance-updates

6 months agoremove deprecation warnings from tests
Luke Baker [Mon, 17 Oct 2011 19:01:20 +0000]
remove deprecation warnings from tests

6 months agoadd atomic appearance updates on vote / skip
Luke Baker [Mon, 17 Oct 2011 18:38:42 +0000]
add atomic appearance updates on vote / skip

7 months agoupdate readme with new license
Luke Baker [Tue, 11 Oct 2011 14:53:18 +0000]
update readme with new license

7 months agomake irregular apppearances test only seed ideas
Luke Baker [Mon, 26 Sep 2011 20:21:17 +0000]
make irregular apppearances test only seed ideas

7 months agoupdate answered_appearances
Luke Baker [Mon, 26 Sep 2011 16:33:50 +0000]
update answered_appearances

only examine valid votes and skips when looking at answered appearances

7 months agoadd active_loser scope for votes
Luke Baker [Thu, 22 Sep 2011 20:43:31 +0000]
add active_loser scope for votes

irregular appearances test was using the active scope which was
ensuring the winner was active, but we want to examine all losing
choices that are active

7 months agoreindent test_api.rake
Luke Baker [Thu, 22 Sep 2011 18:36:29 +0000]
reindent test_api.rake

7 months agotest ensures answered_appearances == skips + votes
Luke Baker [Thu, 22 Sep 2011 18:19:22 +0000]
test ensures answered_appearances == skips + votes

Add test that checks per question instead of globally

8 months agoadd test for creating 2000 ideas in < 20 seconds
Luke Baker [Fri, 16 Sep 2011 13:53:23 +0000]
add test for creating 2000 ideas in < 20 seconds

8 months agooptimize creation of seed ideas
Luke Baker [Wed, 14 Sep 2011 15:57:25 +0000]
optimize creation of seed ideas

we have some callbacks on choice creation, that we don't need to run
after every single choice when creating them in a batch.  Instead we can
just make sure the last choice in the batch runs the required callbacks.

8 months agorevert test change to use not equal
Luke Baker [Wed, 14 Sep 2011 13:48:09 +0000]
revert test change to use not equal

8 months agofix check comparing appearances with votes/skip
Luke Baker [Fri, 9 Sep 2011 19:04:11 +0000]
fix check comparing appearances with votes/skip

only warn if answered appearances is less than number of votes and skips

8 months agodon't add min/max date if nil
Luke Baker [Wed, 7 Sep 2011 15:47:42 +0000]
don't add min/max date if nil

8 months agofix call to find_all_by_id so no warnings if some not found
Luke Baker [Tue, 6 Sep 2011 19:33:13 +0000]
fix call to find_all_by_id so no warnings if some not found

8 months agoupdate index to not always return all questions
Luke Baker [Tue, 6 Sep 2011 19:23:55 +0000]
update index to not always return all questions

if votes-since is passed as a param only show those votes.  If you want
votes-since and all questions, pass all=true.

8 months agoadd valid xml response for *by_visitor_id calls
Luke Baker [Tue, 6 Sep 2011 15:33:41 +0000]
add valid xml response for *by_visitor_id calls

8 months agoupdate xml response format to be valid xml
Luke Baker [Thu, 1 Sep 2011 15:36:45 +0000]
update xml response format to be valid xml

9 months agoadd session identifier to ideas csv
Luke Baker [Wed, 20 Jul 2011 19:07:28 +0000]
add session identifier to ideas csv

this allows us to get the info parameter if available for the user who
submitted the idea

10 months agorenable appearances test
Luke Baker [Wed, 6 Jul 2011 02:51:45 +0000]
renable appearances test

10 months agoadd index to votes on created_at and question_id
Luke Baker [Tue, 28 Jun 2011 16:09:18 +0000]
add index to votes on created_at and question_id

this is used for a query in the admin area that lists gets count of
votes by question for today

10 months agoremove index that was only available locally
Luke Baker [Tue, 28 Jun 2011 16:03:37 +0000]
remove index that was only available locally

10 months agoMerge branch 'master' of github.com:allourideas/pairwise-api
Luke Baker [Thu, 23 Jun 2011 20:46:33 +0000]
Merge branch 'master' of github.com:allourideas/pairwise-api

10 months agodisable appearances test for now
Luke Baker [Thu, 23 Jun 2011 20:46:02 +0000]
disable appearances test for now

10 months agoMerge branch 'master' of github.com:allourideas/pairwise-api
Luke Baker [Wed, 22 Jun 2011 21:04:59 +0000]
Merge branch 'master' of github.com:allourideas/pairwise-api

10 months agoadd relationships to choice to reduce memory usage of api test
Luke Baker [Wed, 22 Jun 2011 21:04:21 +0000]
add relationships to choice to reduce memory usage of api test

10 months agoadd index on prompt_id to appearances table
Luke Baker [Mon, 20 Jun 2011 19:32:54 +0000]
add index on prompt_id to appearances table

10 months agoMerge branch 'question-editing'
Luke Baker [Mon, 20 Jun 2011 17:30:33 +0000]
Merge branch 'question-editing'

10 months agoget choice prompts_on_the_left/right counter caches working
Luke Baker [Mon, 20 Jun 2011 16:11:11 +0000]
get choice prompts_on_the_left/right counter caches working

11 months agoupdate appearances test to have cleaner output
Luke Baker [Fri, 17 Jun 2011 14:50:15 +0000]
update appearances test to have cleaner output

11 months agoskip appearance test for certain questions
Luke Baker [Fri, 17 Jun 2011 14:09:05 +0000]
skip appearance test for certain questions

Early on questions did not have data on loser, so we need to skip those
questions when running the appearance > wins + losses + skips test.

11 months agoadd test for new revision to question on edit
Luke Baker [Thu, 16 Jun 2011 20:07:42 +0000]
add test for new revision to question on edit

11 months agoadd acts_as_versioned plugin to Question model
Luke Baker [Wed, 25 May 2011 13:41:55 +0000]
add acts_as_versioned plugin to Question model

11 months agoadd new test for appearances count and votes+skips
Luke Baker [Tue, 24 May 2011 16:14:55 +0000]
add new test for appearances count and votes+skips

11 months agoreload question to get most recent data
Luke Baker [Thu, 19 May 2011 16:30:00 +0000]
reload question to get most recent data

12 months agowhen activating a choice, don't call Question.choose_prompt
Luke Baker [Tue, 17 May 2011 20:51:24 +0000]
when activating a choice, don't call Question.choose_prompt

Add delayed job directly, instead of calling choose_prompt which was
causing issues with tracking prompt_cache_hits and the API test.

12 months agoupgrade newrelic_rpm
Luke Baker [Tue, 17 May 2011 15:47:23 +0000]
upgrade newrelic_rpm

12 months agoadd test to verify range of choice scores
Luke Baker [Thu, 12 May 2011 17:56:56 +0000]
add test to verify range of choice scores

12 months agoadd more details to hit and misses cache tracking
Luke Baker [Wed, 11 May 2011 18:19:17 +0000]
add more details to hit and misses cache tracking

12 months agoupdate invalidate_votes_with_bad_response_times
Luke Baker [Wed, 11 May 2011 15:40:26 +0000]
update invalidate_votes_with_bad_response_times

* do batches of 10000
* print instead of puts
* remove confirmation since we'll be running this weekly from cron

12 months agoupdate appearances test to only alert for active choices
Luke Baker [Wed, 11 May 2011 15:23:14 +0000]
update appearances test to only alert for active choices

12 months agoadd API call for median votes per session
Luke Baker [Thu, 5 May 2011 19:18:35 +0000]
add API call for median votes per session

12 months agofix bug in question creation
Luke Baker [Wed, 27 Apr 2011 12:00:41 +0000]
fix bug in question creation

we were trying to create prompts before there was enough enabled

12 months agocatchup fix
Luke Baker [Tue, 26 Apr 2011 18:52:31 +0000]
catchup fix

when an idea is activated, reduce prompt_queue cache to refill size and
schedule delayed job to regenerate prompts

12 months agoadd newline to test api output
Luke Baker [Wed, 20 Apr 2011 13:22:51 +0000]
add newline to test api output

12 months agoskip test for certain questions
Luke Baker [Wed, 20 Apr 2011 13:09:35 +0000]
skip test for certain questions

before 2010-02-17 we did not track losses, so for any question with
votes prior to that date we skip some tests.

13 months agoignore a few more tests for certain questions
Luke Baker [Thu, 14 Apr 2011 13:21:31 +0000]
ignore a few more tests for certain questions

Any question with votes before 2010-02-17 didn't keep track of the
loser.  We need to ignore some tests for those questions.

13 months agoguard against nil vote or appearance
Luke Baker [Wed, 13 Apr 2011 21:05:06 +0000]
guard against nil vote or appearance

13 months agoupgrade hoptoad to 2.4.9
Luke Baker [Fri, 1 Apr 2011 13:33:23 +0000]
upgrade hoptoad to 2.4.9

13 months agochange from Stopped_Voting_Or_Clicking to Stopped_Voting_Or_Skipping
Luke Baker [Thu, 31 Mar 2011 12:20:44 +0000]
change from Stopped_Voting_Or_Clicking to Stopped_Voting_Or_Skipping

13 months agochange Stopped_Voting to Stopped_Voting_Or_Clicking
Luke Baker [Fri, 25 Mar 2011 20:15:57 +0000]
change Stopped_Voting to Stopped_Voting_Or_Clicking

add docs for why we skip generating prompts if 90% full

13 months agochange orphaned prompts to Bounce / Stopped_Voting
Luke Baker [Thu, 24 Mar 2011 16:47:36 +0000]
change orphaned prompts to Bounce / Stopped_Voting

13 months agogenerate 1000 prompts at once
Luke Baker [Fri, 18 Mar 2011 19:14:11 +0000]
generate 1000 prompts at once

only generate prompts if cache is less than 90% full

14 months agoadd support for voter_map with just photocracy or aoi votes
Luke Baker [Fri, 4 Mar 2011 17:31:55 +0000]
add support for voter_map with just photocracy or aoi votes

15 months agogive csv jobs better priority than default
Luke Baker [Mon, 7 Feb 2011 13:37:16 +0000]
give csv jobs better priority than default

15 months agoupgrade delayed_job and modify db schema for delayed_job
Luke Baker [Mon, 31 Jan 2011 17:32:51 +0000]
upgrade delayed_job and modify db schema for delayed_job

15 months agoremove unneeded line
Luke Baker [Fri, 28 Jan 2011 16:53:03 +0000]
remove unneeded line

15 months agorework CSV export architecture
Luke Baker [Thu, 27 Jan 2011 22:17:49 +0000]
rework CSV export architecture

in order to work with multiple app servers, don't export to file.
instead export to redis.

15 months agomove load_config first to be loaded first
Luke Baker [Thu, 27 Jan 2011 16:36:04 +0000]
move load_config first to be loaded first

15 months agoadd symlink to redis.yml in deploy hook
Luke Baker [Thu, 27 Jan 2011 13:54:12 +0000]
add symlink to redis.yml in deploy hook

15 months agoadd redis configuration file
Luke Baker [Wed, 26 Jan 2011 20:22:19 +0000]
add redis configuration file

15 months agoadd show_results column to question
Luke Baker [Tue, 25 Jan 2011 15:26:07 +0000]
add show_results column to question

15 months agoremove newrelic config
Luke Baker [Mon, 24 Jan 2011 20:01:02 +0000]
remove newrelic config

15 months agoupgrade new relic
Luke Baker [Mon, 24 Jan 2011 16:10:14 +0000]
upgrade new relic

15 months agomake email address be link
Luke Baker [Fri, 21 Jan 2011 18:46:27 +0000]
make email address be link

15 months agoupdate wording on maintenance page
Luke Baker [Fri, 21 Jan 2011 18:43:35 +0000]
update wording on maintenance page

15 months agoremove .org from Photocracy
Luke Baker [Fri, 21 Jan 2011 17:47:29 +0000]
remove .org from Photocracy

15 months agoadd maintenance page
Luke Baker [Fri, 21 Jan 2011 17:31:23 +0000]
add maintenance page

15 months agoupdate an index on appearances by add / del
Luke Baker [Thu, 20 Jan 2011 20:52:22 +0000]
update an index on appearances by add / del

add index on appearances (question_id, voter_id)
remove index on appearances (question_id) as it is now superseded by
the former

15 months agomake updates to simple random choose prompt
Luke Baker [Wed, 19 Jan 2011 20:18:32 +0000]
make updates to simple random choose prompt

rename picked_prompt to simple_random_choose_prompt
add tests for distinct_array_of_choice_ids
modify distinct_array_of_choice_ids to use named parameters
move conditions variable creation outside of loop
update conditions creation to handle when only_active is false

15 months agoadd index on choices.creator_id
Luke Baker [Wed, 19 Jan 2011 17:01:40 +0000]
add index on choices.creator_id

15 months agorefactor random prompt picking
Luke Baker [Wed, 19 Jan 2011 16:46:13 +0000]
refactor random prompt picking

when using catchup and no prompt found, use random prompt

15 months agofix catchup prompt bug and increase speed
Luke Baker [Tue, 18 Jan 2011 16:55:29 +0000]
fix catchup prompt bug and increase speed

16 months agochange question.id to ideamarketplace.id in CSV
Luke Baker [Wed, 12 Jan 2011 19:24:41 +0000]
change question.id to ideamarketplace.id in CSV

16 months agoCSV: change N/A to NA
Luke Baker [Mon, 10 Jan 2011 22:37:22 +0000]
CSV: change N/A to NA

16 months agoCSV: remove appearance id from votes and non-votes
Luke Baker [Mon, 10 Jan 2011 22:32:24 +0000]
CSV: remove appearance id from votes and non-votes

16 months agomake orphaned appearances valid
Luke Baker [Mon, 10 Jan 2011 20:38:59 +0000]
make orphaned appearances valid

16 months agoadd rake task for updating all choice scores
Luke Baker [Tue, 4 Jan 2011 18:10:44 +0000]
add rake task for updating all choice scores

16 months agowhen updating wins / losses, re-compute score
Luke Baker [Tue, 4 Jan 2011 17:38:03 +0000]
when updating wins / losses, re-compute score

16 months agoadd task to update cached Choice losses / wins
Luke Baker [Tue, 21 Dec 2010 15:18:22 +0000]
add task to update cached Choice losses / wins

add indexes to votes table to speed up task, and should speed up other
queries we do

17 months agoadd json gem requirement to environment.rb
Luke Baker [Thu, 9 Dec 2010 02:30:43 +0000]
add json gem requirement to environment.rb

17 months agoadd .rvmrc to .gitignore
Luke Baker [Thu, 9 Dec 2010 02:24:41 +0000]
add .rvmrc to .gitignore

17 months agoupdate catchup algorithm
Luke Baker [Wed, 8 Dec 2010 21:14:02 +0000]
update catchup algorithm

When calculating weights, ignore prompts with invalid choices.  Update
if statement that determines if all possible valid prompts have been
created. Update test factory to include case where there exists a prompt
with invalid choices.

17 months agoadd tests to ensure we only process active choices when using the
Luke Baker [Wed, 8 Dec 2010 18:59:13 +0000]
add tests to ensure we only process active choices when using the
catchup algorithm

17 months agoonly use active choices when using catchup algo
Luke Baker [Wed, 8 Dec 2010 18:18:31 +0000]
only use active choices when using catchup algo

17 months agomore whitespace fixes
Luke Baker [Wed, 8 Dec 2010 18:01:34 +0000]
more whitespace fixes

17 months agomore whitespace fixes
Luke Baker [Wed, 8 Dec 2010 16:15:07 +0000]
more whitespace fixes

17 months agomake whitespace changes to question model
Luke Baker [Wed, 8 Dec 2010 16:12:59 +0000]
make whitespace changes to question model