Commit Graph

25 Commits

Author SHA1 Message Date
Brian Simpson
d990533d0b Upgrade pylons from 0.9.7 to 1.0.
http://pylons-webframework.readthedocs.org/en/latest/upgrading.html

This requires several code changes:
* pylons `config` option must be explicitly passed during setup
* the pylons global has been renamed from `g` to `app_globals`
* the pylons global has been renamed from `c` to `tmpl_context`
* set pylons.strict_tmpl_context = False (instead of pylons.strict_c)
* redirect_to() has been swapped for redirect()
* must implement `ErrorDocuments` middleware ourselves

pylons 1.0 also required an upgrade of routes from 1.11 to 1.12. This
required the following changes:
* set Mapper.minimization = True (the default value changed)
* set Mapper.explicit = False (the default value changed)
2015-09-15 06:35:31 -04:00
Brian Simpson
d846f0609d Update SubscribedSubredditsByAccount backfill.
There's no index on SRMember.c.rel_id so instead sort the query
by SRMember.c.thing2_id (the user's id). Also the timestamp for
writing to C* is updated to an integer timestamp corresponding to
when the dual write was deployed.
2015-06-30 18:41:09 -04:00
Brian Simpson
fb8ca7fcbb Dual write SubscribedSubredditsByAccount and add backfill script. 2015-06-30 18:41:08 -04:00
xiongchiamiov
0702bc4886 Image previews: fix old urls
We've changed the url structure of image previews a number of times, which
breaks everything uploaded prior to the latest version.  This script should
find all preview images that have been uploaded thus far, move them to the
appropriate place, and save an updated and correct storage url in every Link
that uses them.
2015-05-26 11:47:56 -07:00
Brian Simpson
91699b7acd Add backfill script for CommentScoresByLink. 2015-05-12 08:44:11 -04:00
MelissaCole
f05603ad98 Add backfill script for num_gildings
This script will update Account.num_gildings for all gildings in the gold_table
(which is where trans_id like 'X%' in the gold table).
2015-05-06 11:10:39 -07:00
Jordan Milne
28a913c242 Add backfill script for deleted user accounts 2015-03-03 14:26:22 -08:00
Neil Williams
f00e90f0ed zookeeper: Remove obsolete LiveDict class.
This is no longer used since the relevant consumers have switched to
Cassandra as a backing store.
2015-03-02 10:41:07 -08:00
Neil Williams
af09fa8dee Update license headers to 2015.
The highlight of each year for me.
2015-01-08 13:35:03 -08:00
umbrae
ee5ea8ca3c Inbox_counts: corrections on deletes, spams, edits
Conflicts:

	r2/r2/controllers/listingcontroller.py
2014-10-03 11:46:48 -07:00
umbrae
aad94d3f80 Inbox counts: fix typo in backfill script 2014-10-03 11:46:45 -07:00
umbrae
09c98d6dde Inbox counts: Add dark unread counts badge, start writing to inbox_count 2014-10-03 11:46:34 -07:00
Brian Simpson
c18dcac467 Add subreddit gildings backfill script. 2014-06-11 14:39:06 -04:00
Neil Williams
90cfcaaecc Update license headers to 2014.
Ok, now I'm getting some angst in my commit messages like my
predecessors had.  I understand now.  It's a terrible burden.  Why must
the calendar progress?  Why must numbers increment?  The world is
forever turning.

The future is here.

It is 2014.
2014-05-02 16:26:31 -04:00
Neil Williams
5e249f4773 Make all moderators have a modmsgtime attribute.
This attribute can serve as a handy indicator that a user is a moderator
somewhere and can therefore replace the more costly modship lookup in
reddit_base.
2014-01-12 10:08:07 -05:00
Chad Birch
05c06df947 Userpage gildings tab: start writing
Includes backfill script to be run before the other commit that actually
adds the tab
2013-10-22 12:43:19 -06:00
Chad Birch
7722a73d15 Userpage gilded tab: start writing
Includes backfill script to be run before second commit to actually add
tab is deployed.
2013-10-07 15:45:06 -06:00
Andre D
544e4994a5 ModAction: Add a migrate script. 2013-09-18 08:56:55 -04:00
Neil Williams
4303841341 Add ImagesByWikiPage model and start dual-writing.
This model will initially be used to transfer subreddit images (used in
the stylesheet) off to a new system, but is intended to be used for
per-wikipage images in the future as well.
2013-08-19 16:11:50 -07:00
Neil Williams
8af415476b Update and fix license headers for 2013.
Angst!
2013-03-19 20:03:40 -07:00
Roger Ostrander
2ab402c41d Domainban: Use Zookeeper as a backend 2013-01-25 12:35:08 -08:00
Neil Williams
3c3b9e9594 Add per-subreddit gilding listings. 2013-01-14 10:36:50 -08:00
Neil Williams
e028c35676 Add a new listing of gilded comments. 2012-12-14 12:52:36 -08:00
Neil Williams
efa3bb4009 Add migration script for regenerating CommentParticipationByAccount CF. 2012-12-04 11:41:24 -08:00
Neil Williams
68291521b5 Move query_cache scripts to a more general "migrate" directory.
Not just for the query cache anymore!
2012-12-04 11:41:24 -08:00