Граф коммитов

1557 Коммитов

Автор SHA1 Сообщение Дата
James Socol 6ca38ae60c disable incomprehensibly broken tests. 2011-04-25 16:16:14 -04:00
Erik Rose e672679d72 [bug 640185] Log less in Army of Awesome crons.
Apparently, our log levels are used inconsistently, so we can't just turn up production's log level from DEBUG to INFO.
2011-04-25 12:06:51 -07:00
Erik Rose 6c340fe3a3 [bug 650359] Move shortcut URLs out of .htaccess. 2011-04-22 15:07:31 -07:00
James Socol 0563cd66a7 Fix announcements tests. 2011-04-22 16:46:48 -04:00
Erik Rose 131701d930 [bug 652001] Upgrade to django-tidings 0.1. 2011-04-22 11:01:34 -07:00
James Socol 5e958ad664 Fix JS tests--add waffle to qunit. 2011-04-22 12:02:44 -04:00
James Socol a6927e10f3 Loadtest the usernames API.
Uses a Waffle Sample to make a tunable percentage of requests (start with 1%)
repeatedly hit the username API.
2011-04-22 11:25:18 -04:00
James Socol 5bf66d4581 An API for autocompleting usernames. [bug 650000] 2011-04-22 11:25:18 -04:00
James Socol 774d10b10b Access decorators no longer redirect if Ajaxy. [bug 651254] 2011-04-21 19:34:58 -04:00
James Socol e35bd18ea0 [bug 648138] Fix localized forum preview of new threads. 2011-04-21 18:56:39 -04:00
Paul Craciunoiu e4bc9d1a1a Announcements send emails to people in that group. [bug 650101]
* Email is sent upon saving from the admin.
* Announcements from the future are queued to be emailed around the time they become visible.
* Also do some try/finally as safety for threadlocale default language activation.
2011-04-21 15:32:36 -07:00
Ricky Rosario 6214011ae1 Added `manage.py cleanup` to hourly cron. [bug 651667] 2011-04-21 17:40:33 -04:00
Ricky Rosario ec3859b9e3 Added view for deleting documents and some permissions to protect it. [bug 647449] 2011-04-21 16:54:02 -04:00
Paul Craciunoiu 4de3fdcd4d Refactor group dashboards to be properties of groups.
* Announcements are per group, independent of user's groups.
* Tabs are all about user's groups. Tab titles are group names.
* Add migration for unique group id in GroupDashboard because of OneToOneField.
* Create utils.py to avoid circular imports.
2011-04-20 12:47:01 -07:00
Paul Craciunoiu 30fd9d79e5 * Add group dashboard announcements and refactor announcements tests.
* Post-rebase, added with_save to announcements app as well.
2011-04-20 12:47:01 -07:00
Paul Craciunoiu 681944fd54 [bug 638478] Group locale dashboards. 2011-04-20 12:47:01 -07:00
Ricky Rosario 7eca2353dc Added method for checking unread message count and a context processor for putting it in context. [bug 649992] 2011-04-20 12:45:03 -04:00
Ricky Rosario 3531e4b8f4 Created send_message function for sending private messages. [bug 649995] 2011-04-19 11:03:51 -04:00
Erik Rose c31b07caa1 Change `save` kwarg default on customercare model makers for consistency. 2011-04-18 16:54:39 -07:00
Erik Rose 1176c9bb7e Factor up a pattern I saw in the model makers. 2011-04-18 14:50:25 -07:00
James Socol 00f1fd793e Create Messages app and models.
Message storage based on separate models for Inbox and Outbox.
2011-04-18 15:24:39 -04:00
James Socol e523e9514e Old kb/* redirects moved to the KB. [bug 650303] 2011-04-18 14:48:12 -04:00
James Socol 0d4c2ff36f Fix localized forum preview. [bug 648138] 2011-04-18 14:45:01 -04:00
Ricky Rosario ed4c83e1bf s/notifications_/tidings_/ 2011-04-18 12:15:12 -04:00
Paul Craciunoiu 138a46776c [bug 629470] Validate submission of video/image to gallery. 2011-04-15 15:00:49 -07:00
Paul Craciunoiu eeb2903b12 [bug 623429] Add is_draft field to gallery models. 2011-04-15 15:00:45 -07:00
Paul Craciunoiu 47b9796f26 Add CSS transitions. Cool stuff. 2011-04-15 14:50:54 -07:00
Paul Craciunoiu 733ad3ced2 Change video preview to individual row for consistency and less UI shuffle. 2011-04-15 14:50:54 -07:00
Paul Craciunoiu ae091b2972 Refactor gallery frontend.
* [bug 623431] Remove ImageUploadAsync, VideoUploadAsync - they're not necessary.
* Also subclass them both from MediaForm, sharing some code to make this more maintanable.
* Add GalleryUpload object with plenty of comments and separation of concerns.
* Use jinja macros heavily to make the upload form's HTML more readable
* Consistency in error messages.
* Preliminary File API client-side validation (extension and file size)
* Stub for client side form validation (TODO)
* Need to test for IE (TODO)
* Set-up for CSS transitions, not implemented (TODO)
2011-04-15 14:50:54 -07:00
Paul Craciunoiu 161eecfa1d Fall back to data-title when title is not present for kbox. [bug 649431] 2011-04-15 13:20:40 -07:00
James Socol 4c1fb691e2 Move forum/\d redirects into Kitsune and deprecate. [bug 650349] 2011-04-15 15:31:02 -04:00
James Socol 593127c7f3 Add a deprecated_redirect interstitial view.
sumo.views.deprecated_redirect shows a message informing the user that the
URL has changed and they should update their bookmarks. It takes one required
argument, `url` which is passed directly to `reverse()`. Any additional kwargs
are also passed to `reverse()` as the `kwargs` argument.
2011-04-15 15:30:57 -04:00
Erik Rose bed3d8dfba Missed a spot when making `params` private. Fix and improve test coverage. 2011-04-15 11:23:52 -07:00
Erik Rose 5ef4d3549e Iterate personal dashboard framework.
* Dashboard views are now responsible for passing the active dashboard signature into the template, since only they know the params (like the locale of a LocaleDashboard).
* Tolerate non-dict Dashboard.params values to make views simpler in the common case.
* When choosing active tab, compare the whole "signature" of a dashboard, not just the slug. IOW, take params into account.
* Use class name instead of title in admin menu, since title is only defined on parametrized instances.
* Hash slug instead of class, for consistency with signatures.
* Make Dashboard._params private.
* Get rid of signature_from_params(). We don't need it since I decided it would take the original string-params format. This also lets us make _digest_params() private and an instance method.
2011-04-14 16:05:43 -07:00
Ricky Rosario 121570c69c Make it impossible to remove the only revision of an article. [bug 640008] 2011-04-14 14:09:56 -04:00
Ricky Rosario 69022d5ae0 L10N for article topics.
* Added file with topic strings for l10n, and a command to generate this file.
* Article page now links to article lists by topic (instead of category).
* All non-default locales use their parent's topics for listing.
[bug 623160]
2011-04-14 10:11:03 -04:00
James Socol ae705071a9 Upgrade to Waffle 0.6. [bug 649801] 2011-04-13 18:48:15 -04:00
Erik Rose b60f21df23 Fix errant migration 95 and the test that let it slip through. 2011-04-13 15:36:06 -07:00
Erik Rose 97affba3e5 Fix test indeterminacy. 2011-04-13 15:36:06 -07:00
Erik Rose e1c1743e62 Rename user_dashboard_tabs to personal_dashboard_tabs to match new terminology. 2011-04-13 15:36:06 -07:00
James Socol 6281a56de9 Default to cached_db SESSION_ENGINE [bug 649452] 2011-04-13 17:55:52 -04:00
Erik Rose cfc190fe12 [bug 638477] [bug 649201] Add framework for mapping dashboards to groups.
* Add GroupDashboard model
* Change dashboard_tabs from a macro to a helper so it can get at dashboards(). Rename it "user_dashboard_tabs". Remove explicit references to tabs; look them up from dashboards.user instead.
* Enable Questions dashboard.
2011-04-13 14:36:46 -07:00
Ricky Rosario 26b7148620 All links in bio are now rel="nofollow". [bug 648774] 2011-04-12 17:29:04 -04:00
James Socol 9d91de7ef8 Add ReverseProxyMiddleware to support running in a separate process.
Django's HttpRequest.is_secure() depends on an environment variable, which
is great when we're running with mod_wsgi inside the Apache process and can
rely on SetEnv HTTPS on, but when we're running as an isolated process (via
gunicorn or uWSGI or what have you) that doesn't work.

One of the upstream proxy servers (maybe even Zeus) will set an X-Scheme
header to 'https' or 'http'. With this middleware, we check the header in
is_secure() instead of relying on the environment variable.

I'm leaving this to be installed in settings_local for now, since this is
only for a test.
2011-04-12 16:12:25 -04:00
Ricky Rosario 246eb83d27 Added edit link to document history page. [bug 641510] 2011-04-12 14:07:24 -04:00
James Socol 03a28b3f7a Update vendor. 2011-04-12 10:53:35 -04:00
Erik Rose 5d0a584ab7 Die, relative imports! 2011-04-11 14:40:58 -07:00
Ricky Rosario 0798e61cef Added scripts and dependencies for running jstests on hudson. Also, broke
out compiled test dependencies into tests-compiled.txt.
2011-04-07 16:51:32 -07:00
James Socol da6cc50078 Let Celery manage its own connections. [bug 648126]
Passing the connection to "apply_async" started causing issues with the
latest celery update. Also up the rate limit since this seemed unnecessarily
slow in testing.
2011-04-07 18:49:38 -04:00
Paul Craciunoiu f2c7113931 Hide 'Post a new thread' and Reply box in forums when user cannot post. [bug 645027] 2011-04-07 10:37:01 -07:00