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

1009 Коммитов

Автор SHA1 Сообщение Дата
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
Paul Craciunoiu 6e2ba3cdf1 Use request.locale to set profile.locale when registering new user. [bug 644386] 2011-03-28 11:28:52 +01:00
Paul Craciunoiu e906d7d329 Undefined count, forgotten variable name in posts.html template for forums. [bug 644463] 2011-03-28 11:05:55 +01:00
Ricky Rosario ec34023e28 Added missings tests for redirect urls. [bug 623977] 2011-03-24 20:41:19 -04:00
Ricky Rosario 429fc47a08 Made FF4 the default (first) version. [bug 644699] 2011-03-24 14:56:06 -04:00
Erik Rose 23580bb06a [bug 644396] Decouple notifications app from SUMO.
* Make several SUMO-centric substitutions (of reverse(), ModelBase, etc.) customizable through settings.
* Don't freak out if there's no `uncached` manager.
2011-03-24 10:57:50 -07:00
Erik Rose 3312272008 Stop depending on urlparams() helper from SUMO.
A simple append will suffice, since all secrets are just letters--URL-safe.
2011-03-24 10:57:50 -07:00
James Socol f64e2da110 Add User-agent to disengaged robots. [bug 644327] 2011-03-23 17:24:35 -04:00
James Socol 786d1274f4 Add msgctxt to Review dashboard. [bug 644195] 2011-03-23 13:34:51 -04:00
Ricky Rosario 98b1ee2b48 Hide not-yet-ready dashboards. [bug 643580] 2011-03-23 11:49:31 -04:00
Paul Craciunoiu 27269aa8d8 Add stats tests for customercare. Fix problem that seems to be happening on prod. [bug 643688] 2011-03-22 12:32:27 +02:00
James Socol 545190a533 Verify connection to message broker. [bug 643559]
Establish a connection to the message broker (RabbitMQ) as part of
/services/monitor. It has a 2-second timeout.
2011-03-21 17:37:16 -04:00
Paul Craciunoiu a91a5a3b72 Rename document-only save buttons for clarity. [bug 643389] 2011-03-21 18:56:42 +02:00
Paul Craciunoiu 7ca103f466 Notify anonymous user of email error when watching questions. [bug 629518] 2011-03-21 18:16:05 +02:00
Paul Craciunoiu 5191b25c0a Add 'Templates' to the localization dashboard. [bug 621896]
* Copy over most of MostVisitedTranslationsReadout's functionality, while only changing the query fetching the list of documents. Abstract to common _most_visited_query_and_params
* Add 'Templates' to the overview section in color.
* File bug to optimize select query later.
2011-03-21 17:36:54 +02:00
Ricky Rosario f0fae3ed40 "My profile" now shows the dashboard tabs. Replaced Profile link with a Dashboard link. [bug 643407] 2011-03-21 11:21:57 -04:00
Paul Craciunoiu 22a313fafa Redirect sidebar dashboard actions to where they came from. [bug 632105] 2011-03-21 16:37:51 +02:00
Erik Rose 46ded7af41 [bug 643004] Add unsubscribe links to questions notifications. 2011-03-18 15:06:58 -07:00
Erik Rose 87700cd940 [bug 642606] Add unsubscribe links to notifications in kbforums and forums apps.
Also...
* Add starts_with() assertion helper.
* Add emails_with_users_and_watches() convenience function to notifications.
* Remove leading line breaks from emails.
2011-03-18 15:01:37 -07:00
Erik Rose c85fa1dfc8 [bug 599028] Support unsubscribe links in notifications app. Implement them for all wiki notifications.
* Add unsubscribe view to notifications app. Currently depends on Jingo and a template called "base.html".
* Rename get_watch_description() to description_of_watch(). Trying to get away from get_* functions and name them (shorter, better-flowing) nouns (unambiguously) instead.
* Stop using easy-to-misidentify letters like I and l in secrets.
* Add a secret to the default value of watch() so unsubscribing in a test requires actual secret data.
2011-03-18 11:02:00 -07:00
Erik Rose 872469e253 Spruce up some docs, formatting, and PEP 8 deviations. 2011-03-18 11:01:39 -07:00
Erik Rose da4781c900 Rename merge() to collate().
The name "merge" has been endlessly confusing.
2011-03-18 11:01:39 -07:00
Erik Rose 88d97e43d5 Fix a bunch of check.py complaints. 2011-03-17 14:57:24 -07:00
James Socol c98bb4865e Add a Profile admin section. [bug 640148] 2011-03-17 15:52:49 -04:00
Paul Craciunoiu 067c97bc7c [bug 638472] Announcements app, used in review/questions dashboards.
* Announcement model + migration.
* Model utils: get_for_group, get_side_wide, is_visible
* Site-wide announcements are in no group.
* Minimally formatted and styled for review/question dashboards.
2011-03-17 19:19:49 +02:00
Paul Craciunoiu 9923a65648 Watch locale for discussion forums. [bug 629735]
* Add NewPostInLocale and NewThreadInLocale events, union them on .fire() with the existing NewPostEvent, NewThreadEvent.
* Refactor email sending as new_post_mails, new_thread_mails.
* Helper for is_watching_discussion_locale(user, locale)
* Moved _clean_next_url to -> sumo.utils.get_next_url as redirect logic.
* Use get_next_url in watch_locale view to redirect back to dashboard/document discuss pages.
2011-03-17 16:02:12 +02:00
Paul Craciunoiu 82534ed5d2 Update mock to 0.7.0. 2011-03-17 15:58:41 +02:00
Ricky Rosario ad0845a4c8 Implemented Customer Care banner. It is displayed when ?ref=aoa is present on an article. [bug 594813] 2011-03-16 16:31:42 -04:00
Ricky Rosario 20efe76b8b Added top section for warnings to landing pages. [bug 638819] 2011-03-16 13:00:24 -04:00
James Socol 47d0cd8756 Optimize forums.views.posts.
* select_related() for author and updated_by.
* extra() to select author post counts. They don't hit the cache for some
  reason.
* has_perm_or_owns can now compare PK==FK to skip a query.
* has_perm_or_owns bail early on anonymous users.
2011-03-16 11:40:35 -04:00
James Socol 6e0bb51ae4 Optimize forums.views.threads.
* select_related() for last_post, creator, and last_post__author
* Add count param to Paginator to skip expensive joins in SELECT COUNT(*)
2011-03-16 11:40:34 -04:00
James Socol d308ca1854 Optimize forums.view.forums.
* Use select_related() to get last_post and last_post__author in one query.
* Use extra() to tack on the number of threads.

With a warm cache, before: 35 queries. after: 19.
2011-03-16 11:40:34 -04:00
Paul Craciunoiu 75601cb446 Show who last replied in a list of questions. [bug 635187] 2011-03-15 15:02:04 +02:00
Ricky Rosario 60af826a80 Initialize keywords and summary correctly when translation based on unapproved revision. [bug 638525] 2011-03-14 19:26:36 -04:00