Commit Graph

2075 Commits

Author SHA1 Message Date
Max Goodman
3423cdc19c Add back gold gift message markdown wrapping.
This enables comment/selfpost styling of the markup in this field.
2012-11-08 16:16:30 -08:00
Neil Williams
13497f6f08 queries: Move /r/all/comments to new query cache (try 3).
The first time we tried to move /r/all/comments to the new query cache,
the row quickly grew to be massive because tombstones were piling up in
the row cache. The row started taking seconds to retrieve after only 12
hours.

We reverted.

We took gc_grace_seconds down to 30 minutes which is relatively safe in
the query cache (prunes can be re-executed without issue and lost
deletes of non-pruned things will be covered by keep_fns).
Additionally, we switched to the leveled compaction strategy for the
relevant column families.

Then we tried this again. This time, things ran fine for three days
before we started seeing out-of-memory issues on the nodes responsible
for this key.  The row size was rather large again.

We reverted.

Now, we're trying again with three more changes, working on the
hypothesis that runaway growth of a hot query can happen because prunes
start failing after a small bad spike.

* tdb_cassandra.max_column_count has been drastically reduced in favor
  of xget for the models that actually need to fetch hugely wide rows.
  This saves memory pressure via materialized thrift buffers in general
  and when the row grows large for whatever reason.

* The pruning behaviour has been tweaked to only prune a portion of the
  extraneous columns if there are a large number.  This should reduce
  the likelihood that prunes will fail after a row has grown too much.

* This query is now in its own column family that is designed to have
  its rowcache disabled.

Why bother shoehorning this query into this data model, you say? It's a
canary for extreme scaling of other queries.  If we can't fix this
problem for this query, we should re-evaluate the whole data model.
2012-11-08 15:08:58 -08:00
Neil Williams
2d2a8d887b Remove unused last-modified check from GET_stylesheet.
We no longer write to the old last modified system for stylesheets
anyway, so there's no point in checking.  S3 handles last modified for
the staticized stylesheets anyway.
2012-11-08 15:04:25 -08:00
Neil Williams
65368b9abb Add a script to detect regressions in code quality.
This script will determine if changes from the upstream branch to the
current branch have caused any additional reports from pep8, pep257, and
pyflakes.
2012-11-08 15:04:25 -08:00
Neil Williams
e3952a5555 Add script for cleaning up the static files bucket on S3. 2012-11-08 15:04:25 -08:00
Max Goodman
440cb664ac Move gold prices to configuration parameters. 2012-11-08 10:12:51 -08:00
Max Goodman
4bf2c0e886 Tweak gold styling fonts to include Bitstream Charter. 2012-11-08 10:12:51 -08:00
Max Goodman
a900e4e325 Shiny new gold info page. 2012-11-08 10:12:51 -08:00
Max Goodman
9a401df67f Add gold coin icons for comment gilding. 2012-11-08 10:12:51 -08:00
Neil Williams
b3bb35131e gold: New feature: Comment gilding.
This feature adds a "give gold" button beneath each comment. You can
give a month of gold to the user who created the comment. An icon is
added to comments that've inspired gold gifting.
2012-11-08 10:12:51 -08:00
bsimpson63
1f72971e5d Save/unsave for comments. 2012-11-08 10:12:51 -08:00
bsimpson63
029890fdb4 Add gold body class if c.user.gold. 2012-11-08 10:12:50 -08:00
Max Goodman
f52f223bcc Add temporary bundled copy of less.js.
This is for use until we have less.js packaged in production.
2012-11-08 10:12:50 -08:00
Max Goodman
0b88e33b59 Add support for LESS compiled stylesheets. 2012-11-08 10:12:50 -08:00
Max Goodman
81e61ff085 Add md template util.
This breaks the _() step out of the existing _md() template util for
conveniently inserting markdown that has already been translated.
2012-11-08 10:12:50 -08:00
Max Goodman
0ac2ebb726 Ditch additional_css for template def overloading. 2012-11-08 10:12:50 -08:00
Max Goodman
3b6eba97f8 Clean up client side rate_limit code. 2012-11-08 10:12:50 -08:00
Max Goodman
7fd0c04956 Display message when a form is ratelimited. 2012-11-08 10:12:50 -08:00
bsimpson63
54d6ae3ef7 UserController can filter saves by subreddit. 2012-11-08 12:14:11 -05:00
bsimpson63
858c7c264a Remove old CassandraSave and CassandraHide. 2012-11-08 12:12:45 -05:00
bsimpson63
6fb9f5a09f Dual write LinkSavesByAccount, LinkHidesByAccount. 2012-11-08 12:10:41 -05:00
bsimpson63
c997435b65 New Cassandra saves and hides. 2012-11-08 12:10:41 -05:00
bsimpson63
8a360a78ed Remove unused SavesByAccount. 2012-11-08 12:05:51 -05:00
bsimpson63
d2c5e6afa1 Delete merge conflict remnants. 2012-11-03 20:52:57 -04:00
bsimpson63
2e9939c165 Delete QueryishList. 2012-11-02 11:04:57 -04:00
bsimpson63
42ed57a24c Delete the jury system. 2012-11-02 11:04:57 -04:00
bsimpson63
a96995954c Simplify VSrCanBan. 2012-11-02 11:01:25 -04:00
bsimpson63
dff7c87a3c Stop using end_trial to set verdict on remove/approve. 2012-11-02 11:01:11 -04:00
Ricky Ramirez
d0f6b6fb5b comment_tree: Fix message filters for admins. 2012-11-01 17:27:05 -04:00
bsimpson63
0a081f34f5 Show gold_creddits balance on user page. 2012-11-01 17:27:05 -04:00
bsimpson63
86c55959ae Remove unneeded import from promo. 2012-11-01 17:27:05 -04:00
bsimpson63
4edee08546 Move PromotionLog to r2.models.promo from r2.lib.promote. 2012-11-01 17:27:05 -04:00
bsimpson63
4ebf2898dd Remove unneeded memoize from promote.py. 2012-11-01 17:27:05 -04:00
bsimpson63
dcc73cd52a Move get_promote_srid from r2.lib.promote to r2.models.promo. 2012-11-01 17:27:04 -04:00
bsimpson63
b18fffae00 Rename STATUS to PROMOTE_STATUS and move to r2.models.promo. 2012-11-01 17:27:04 -04:00
bsimpson63
5a0fbb5c8f promote.py: Remove unused CAMPAIGN object. 2012-11-01 17:27:04 -04:00
bsimpson63
8a0020c9fb Promote controller users keep_fn to skip deleted links. 2012-11-01 17:27:04 -04:00
bsimpson63
bbe091c599 Move onchange out of set_promote_status. 2012-11-01 17:27:04 -04:00
bsimpson63
7ba1d9dde5 Stop writing to old promoted link queries. 2012-11-01 17:27:04 -04:00
bsimpson63
cac918e423 Read promoted link queries from UserQueryCache. 2012-11-01 17:27:04 -04:00
bsimpson63
31c3cbcd33 Add UserQueryCache queries for promoted links and dual write. 2012-11-01 16:31:07 -04:00
bsimpson63
dd46b66fd7 Only one way to get_transactions. 2012-11-01 16:31:01 -04:00
bsimpson63
63d9877b90 Don't create campaigns attribute for new promoted links. 2012-11-01 16:30:54 -04:00
bsimpson63
c3dd44d59b Clean out unused stuff from promote. 2012-11-01 16:30:47 -04:00
bsimpson63
ac7b6d6916 Stop passing around indx, use PromoCampaigns. 2012-11-01 16:30:40 -04:00
bsimpson63
89a65e9eb1 Get rid of editable_add_props.
It was doing too much, and also the last place where the campaigns dict
attribute was still put onto promoted links.
2012-11-01 16:30:32 -04:00
Keith Mitchell
152c79c62c Make the /health/ads check more useful 2012-11-01 10:47:32 -07:00
Keith Mitchell
9bcf690e99 Remove unused PromoteDates code 2012-10-29 12:32:27 -07:00
Keith Mitchell
f49d997ea9 Remove unused VBid validator 2012-10-29 12:32:22 -07:00
Keith Mitchell
658b8ce0bd MinimalController: str has no attribute append
MinimalController calls set_content_type(), which
in some cases references c.response_wrappers. However,
MinimalController was not setting c.response_wrappers to
a list, which caused an error.
2012-10-29 12:32:11 -07:00