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

1042 Коммитов

Автор SHA1 Сообщение Дата
Erik Rose 131701d930 [bug 652001] Upgrade to django-tidings 0.1. 2011-04-22 11:01:34 -07: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 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 0d4c2ff36f Fix localized forum preview. [bug 648138] 2011-04-18 14:45:01 -04:00
Paul Craciunoiu eeb2903b12 [bug 623429] Add is_draft field to gallery models. 2011-04-15 15:00:45 -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
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
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
Erik Rose 5d0a584ab7 Die, relative imports! 2011-04-11 14:40:58 -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
Ricky Rosario 494a9ba671 Added canonical url to contributor forums. [bug 644343] 2011-04-07 09:34:27 -07:00
Ricky Rosario 27cc897a40 Added canonical url to questions and answers templates. [bug 644341] 2011-04-07 09:34:27 -07:00
Ricky Rosario aa7159278e Added rel="canonical" to user profile page. [bug 644340] 2011-04-07 09:34:27 -07:00
James Socol 55b2d0b230 Make ActionMixin work and use it. [bug 646674] 2011-04-06 17:48:59 -04:00
James Socol 588796c400 Basic search gets questions with helpful replies [bug 633338]
Change the default basic search questions filter from "is_solved" to
"has_helpful".
2011-04-01 11:34:43 -04:00
James Socol 20818db279 Make 'Reply' links in the forums quote the post. [bug 634600] 2011-04-01 11:33:59 -04:00
Ricky Rosario 37c49a38d8 Fixed issue with untranslated and translated but unreviewed documents.
* If there is a translation, always redirect even if not approved
* If there is no translation, only show translate tab that takes you straight to the translate page in the locale you are currently browsing
[bug 646603]
2011-03-31 18:43:50 -04:00
Ricky Rosario 6bb965fd2f Changed English to YOUR_LOCALE for the cases when we want the locale language to be included and not a translation of English. [bug 631459] 2011-03-31 17:44:22 -04:00
Erik Rose d98e4d6728 Move notifications app into its own repo, and rename it "tidings". 2011-03-31 11:16:22 -07:00
Ricky Rosario e399eb22b1 Fixed title. [bug 641780] 2011-03-30 19:31:57 -04:00
Ricky Rosario ceb2b7b66d Updated mobile AAQ [bug 646086] 2011-03-29 15:51:59 -04:00
Ricky Rosario d54664ee43 Move top contributors query to a cronjob. [bug 645709] 2011-03-28 19:16:04 -04:00
Ricky Rosario 579e0fa68f Fixed positioned the Help With selector on preview and review pages. [bug 643197] 2011-03-28 15:50:43 -04:00
Paul Craciunoiu 429dd80ac7 Oops. Site.objects.get_current() should be patched in just-added profile test. 2011-03-28 12:04:56 +01:00