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
Neil Williams
cbadfdd0c2
Add AMQP message when usertext edited.
2012-06-12 15:46:04 -07:00
Neil Williams
9e47bb6db7
Dual-write last modified for user page listings.
2012-06-12 15:46:04 -07:00
Neil Williams
fa1a065249
Dual-write last modified timestamp for comments pages.
2012-06-12 15:46:04 -07:00
Max Goodman
66d0d4f627
Move https buttons to S3 for now.
2012-06-12 15:36:31 -07:00
Max Goodman
491e91f019
Switch button static file references to use relative URLs.
2012-06-12 15:36:31 -07:00
Max Goodman
8b4f584f76
Move plugin Makefile extensions to Makefile.plugin include.
2012-06-12 15:36:31 -07:00
Max Goodman
cdd8177622
Speed up Makefile by combining python portions.
2012-06-12 15:36:31 -07:00
Max Goodman
c20ca4e5d5
Remove mangled js output symlinks.
...
Fixes issue with JS files / names falling out of sync.
2012-06-12 15:36:31 -07:00
Max Goodman
ea9d33177c
Clean up plugin static buildstamps when make cleaning static.
2012-06-12 15:36:31 -07:00
Max Goodman
2f47f89566
Move api extension utils to r2.config.extensions.
2012-06-12 15:36:31 -07:00
Max Goodman
473ee2c9bb
Move ConfigValueParser into its own module
...
This enables plugin __init__.py files to import ConfigValue without
app_globals and its dependency on pyx modules.
2012-06-12 15:36:31 -07:00
Max Goodman
b90e55a59f
Remove pyx-dependent imports from r2.config.
2012-06-12 15:36:31 -07:00
Max Goodman
6a861eb17d
Add def catch-all to NullJsonTemplate.
...
This fixes AttributeErrors when trying to render about pages as .json.
2012-06-12 15:36:31 -07:00
Max Goodman
7468c1bbb8
Add "learn more" link to first visit text.
2012-06-12 15:36:31 -07:00