Commit Graph

1456 Commits

Author SHA1 Message Date
Max Goodman
b20c080491 Fix clipping on compressed link vote arrows. 2012-06-25 17:37:06 -07:00
Neil Williams
d579592ea7 Track in graphite new Cassandra connections being opened. 2012-06-22 23:33:41 -07:00
Max Goodman
42c4e91f3a Redirect old-style link details page URLs. 2012-06-20 11:45:57 -07:00
Max Goodman
ce6b2ca6b1 Version hosted jQuery file. 2012-06-20 11:45:57 -07:00
Max Goodman
499f0ad010 Upgrade to jQuery 1.7.2. 2012-06-20 11:45:57 -07:00
shlurbee
76c546f521 Use default traffic weight when there's no data
Returns the default weight of 1 if there's only one day's worth of traffic data
since otherwise the weigh function would throw a divide by zero error.
2012-06-20 11:23:42 -07:00
Neil Williams
35445f1194 Remove ip_and_slash16 which was causing issues for IPv6. 2012-06-20 11:23:29 -07:00
shlurbee
26021aff5c In payments, make NO_TRANSACTION the only special transaction code
trans_id > 0 is used to identify an authorize transaction in many places in the
code and trans_id < 0 is used to identify freebies, so for now the only
"special" code is 0

(Also fixes problem with mark_payment_error since ERROR wasn't in the Enum)
2012-06-20 11:23:16 -07:00
Neil Williams
963bbbc05a Ack, remove double header on functions.sql. 2012-06-19 15:47:02 -07:00
Neil Williams
d8df30480a Update LICENSE. 2012-06-19 15:47:01 -07:00
Neil Williams
914b949286 Update / add license headers.
I'm actually quite excited to do this.
2012-06-19 14:02:42 -07:00
Neil Williams
ab3bde16e9 Remove some unused files. 2012-06-19 14:02:42 -07:00
Neil Williams
51376aa069 Remove unused recommender engine. 2012-06-19 14:02:42 -07:00
shlurbee
703c2c43d7 Let campaign go live immediately after approval
Now, if a campaign's start date has already passed, it will go live immediately
after approval instead of waiting until midnight the next day.

(It seems like this was already the intended behavior, but
make_daily_promotions() was having no effect because it only loads campaigns
that have already been charged.)
2012-06-18 17:20:17 -07:00
shlurbee
e40f390bc0 Update regexp for authorize duplicate customer error
Fixes the following bug:
A user was unable to authorize campaign because clicking Pay raised
an exception.

Cause:
The user's record was missing from the authorize_account_id table. Our code
has some logic to parse the customer id from the authorize error response when
this happens and rewrite the record, but the regexp was out of date.

This change updates the regexp to match the current authorize.net error msg
format and logs some info to make it easier to catch the problem if the format
changes again in the future.

Note:
- Why would a user record be missing in the first place? Should be looked into.
2012-06-18 17:20:08 -07:00
shlurbee
62aecb9acc Record trans_id for freebies in campaign things
Initial campiagn Thing writes were recording an enum value for freebie
campaigns but it actually is useful to include the transaction id (which is
negative for freebies) because it references the freebie's record in the
bid table.

Note: This commit also includes a one-off script for fixing the trans_id
in existing campaign things.
2012-06-18 17:19:56 -07:00
Keith Mitchell
768a664df8 Add another invalid search query code 2012-06-18 23:38:08 +01:00
Keith Mitchell
10301188aa NoneType has no attribute promoted 2012-06-18 23:38:01 +01:00
Keith Mitchell
bba4097d6b Remove invalid/completed TODOs 2012-06-18 23:37:39 +01:00
Keith Mitchell
973005d2df Remove references to deprecated Solr index 2012-06-18 23:37:31 +01:00
Keith Mitchell
3a6f9e6011 Stop sending updates to Solr 2012-06-18 23:34:58 +01:00
Neil Williams
e8a358008f Add mailmap to simplify commit history. 2012-06-18 15:13:56 -07:00
Neil Williams
53fa7e3c5f Clean up and reorganize .gitignore. 2012-06-18 15:13:56 -07:00
Neil Williams
165cd3c62e Delete old scripts, daemontools run files, and configs.
NOTE: if you're using an old-style install with symlinks to any of these
files, please make sure to copy them out of the repo before merging this
commit.
2012-06-18 15:13:56 -07:00
Neil Williams
29e579e078 Clean up r2.lib.helpers and remove unused dependency on webhelpers. 2012-06-18 11:54:37 -07:00
Neil Williams
55edce8fda Clean up a bunch of imports. 2012-06-18 11:54:37 -07:00
Neil Williams
6b821480ab Remove some unused modules. 2012-06-18 11:54:37 -07:00
Neil Williams
5bdf1d4f64 Replace references to deprecated md5 module with hashlib. 2012-06-18 11:54:37 -07:00
Neil Williams
c9c65dd323 Replace references to deprecated sha module with hashlib. 2012-06-18 11:54:36 -07:00
Neil Williams
f3ef607f02 Clean up debug middleware.
* Only add debug middleware to chain when debug is set.
* Remove source check middleware (just use an external validator).
* Make profiler return a profile object that can be examined with
  external tools such as KCachegrind.
2012-06-18 11:54:36 -07:00
Andre D
af83c556f2 Ensure userlist is associated with it's own json template 2012-06-15 19:13:32 -07:00
bsimpson63
5f122af0d4 Add promoted listing to profile pages. 2012-06-15 14:37:20 -07:00
Keith Mitchell
f600449be5 Update wording on moresearchinfo div 2012-06-15 14:37:17 -07:00
Keith Mitchell
fc51afbe07 Add mapped fields to LinkSearchQuery parser 2012-06-15 14:37:14 -07:00
Keith Mitchell
dd2354c84a Whitespace changes in GET_search_reddits 2012-06-15 12:22:35 -07:00
Keith Mitchell
659f0801cc Some subreddits incorrectly filtered from search
Don't remove Subreddits whose creators deleted
their accounts from the search results
2012-06-15 12:22:30 -07:00
Keith Mitchell
6e301e220d Add l2cs to setup.py 2012-06-14 15:26:06 -07:00
Keith Mitchell
5af757ca87 Re-add flair indexing 2012-06-14 15:11:37 -07:00
Keith Mitchell
213dd1e0df Add CLOUDSEARCH_SUBREDDIT endpoints to example.ini 2012-06-14 11:43:11 -07:00
Keith Mitchell
c9244b5335 Fix unicode consistency issues with some searches
Some "related" queries and subreddit searches were
not playing nicely with unicode
2012-06-14 11:42:23 -07:00
Keith Mitchell
49b39adeb8 Some link flair updates weren't triggering search uploads 2012-06-12 16:11:43 -07:00
Keith Mitchell
1a3e1dd2a6 Make unedited link taglines still translatable
In the process, move taglinetext logic to a python file
2012-06-12 16:11:42 -07:00
Keith Mitchell
7bc9df1148 morechildren log notice should notify less often
Now only notifies if user exceeds the "1 request per 2 seconds"
rule in a 30 second period (i.e., 16+ hits in 30 seconds)
2012-06-12 16:11:40 -07:00
Keith Mitchell
3b1ef62c85 Try using new search for 'related' tab 2012-06-12 16:11:38 -07:00
Keith Mitchell
a8d55dd77a Set ratelimits on subreddits 2012-06-12 16:11:36 -07:00
Keith Mitchell
2f56f97713 Migrate Subreddit search to Cloudsearch
This expands upon the upload code in cloudsearch.py

cloudsearch.py's classes and functions have been refactored
to support multiple indices based on different objects.
2012-06-12 16:02:49 -07:00
Keith Mitchell
de7c46e4f4 Revert "Update the search box dropdown with new syntax"
This reverts commit f2c4abf38b6bfd98c34c32956f7b4559883f8f22.
2012-06-12 15:55:34 -07:00
Keith Mitchell
27c31666f3 Use lucene syntax for searches
This uses the l2cs python library to convert
search queries written in "lucene" syntax to
Amazon's CloudSearch syntax

A mouseover blurb on the search results page
shows what the query was parsed as
2012-06-12 15:55:33 -07:00
Neil Williams
2243af7306 Clean out dead last-modified rel code. 2012-06-12 15:48:02 -07:00
Neil Williams
aeb0d3bb7a Add AMQP message for new accounts. 2012-06-12 15:46:04 -07:00