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

1009 Коммитов

Автор SHA1 Сообщение Дата
Erik Rose f7c3725f1d [bug 640646] Stop tweets from infinite-scrolling in a circle.
* jQuery selector for finding the min tweet ID on the page was wrong: it should stick to just top-level tweets.
* Tweet model default ordering was by creation date, which does not jibe with the infinite scrolling's assumption that we can cut a boundary by ID. Changed the model ordering. Also updated the collect_tweets cron to order by ID.
2011-03-14 14:43:01 -07:00
Paul Craciunoiu ef3ca73b05 Include canonical URL for wiki documents. [bug 641402] 2011-03-14 19:59:41 +02:00
Paul Craciunoiu 7ec0a6c1f9 Fall back to English document when visiting English slug of translation. Also add test for this edge case. [bug 641146] 2011-03-14 15:31:10 +02:00
James Socol 9a1f8f9651 Add a missing slash. 2011-03-13 18:19:13 -04:00
Paul Craciunoiu 72b08ce179 [bug 640160] Document tabs on KB Discussion pages. 2011-03-13 14:08:16 +02:00
Paul Craciunoiu a4441a904b Update bleach to 1.0 - vendor lib (py-wikimarkup, bleach) and related kitsune apps. [bug 640013] 2011-03-13 13:49:52 +02:00
Erik Rose 764c740269 [bug 641138] Fix bad links in AAQ flow. 2011-03-11 17:41:18 -08:00
Erik Rose 48cca019e7 Add tests to cover the remaining statuses of the Most Visited Translations readout.
Still probably not comprehensive, but a huge improvement
2011-03-11 11:18:58 -08:00
Erik Rose 89133da83d [bug 639774] Make Most Visited Translations readout classify translations as Needs Review more reliably.
Before, when a revision that needed review was the first-ever revision of a translation, it would show as up to date (green). Now it shows as Needs Review.
2011-03-11 11:18:58 -08:00
Erik Rose 29495f071d [bug 640805] Stop showing unlocalizable articles on Most Visited Translations readout. 2011-03-11 11:18:58 -08:00
Ricky Rosario 79798de1a4 UI for contributor and support forum dashboards. [bug 638475, bug 638476] 2011-03-11 12:04:59 -05:00
James Socol 238e6d946d Answer logging [bug 640954]
* Create Actions for answers to questions.
* Add an AnswerFormatter.
2011-03-11 11:03:24 -05:00
James Socol ab48632ad4 Forums publish replies to activity stream. [bug 640330] 2011-03-11 09:29:42 -05:00
James Socol 6e4ff7d016 New method for storing and formatting actions.
* Drop the `Activity` class and table, replace with `Action`.
* And associated renaming.
* Define the concept of an `ActionFormatter` and a base class.
* Add a README.
2011-03-11 09:29:42 -05:00
Erik Rose fc43a5ce3d [bug 638942] Update Questions app for FF 4 release.
* Implement a one-off {for} switch for alternating between FF3 and FF4 during AAQ.
* Load in new questions_config.

We don't update the question_config product keys ("desktop" -> "fx36", "beta" -> "fx40") because that has all sorts of Consequences that would take longer than we have to sort out. For example, the ability to edit questions about obsolete products without losing data would require access to nonexistent product keys in order to determine the proper extra_fields. Filed bug 639930 about addressing this.
2011-03-10 15:45:20 -08:00
Erik Rose a3cae9f32f [bug 640309] Stop swallowing celery exceptions during tests. 2011-03-10 09:15:35 -08:00
James Socol dabcad0cbe Use AdminPlus instead of custom admin URL hacks. 2011-03-09 11:18:47 -05:00
Ricky Rosario 00f175e3d3 Added missing _ for strings. [bug 617130] 2011-03-09 10:56:18 -05:00
James Socol a37c188fac Show document tabs all the time [bug 639788] 2011-03-09 10:49:03 -05:00
James Socol d786ee074b Update users test for profile.locale. 2011-03-09 10:24:30 -05:00
James Socol 0146678ec3 Add a 'locale' field to user profiles. [bug 638247] 2011-03-08 18:27:25 -05:00
Ricky Rosario 1b03a4de54 Integrated QUnit via django-qunit. Let the js testing begin! [bug 638856] 2011-03-08 17:24:32 -05:00
James Socol a1c8afeecf Try to pick the best language [bug 639818]
Given Accept-Language: en-gb, en;q=0.8, fr-fr;q=0.6, es;q=0.2, don't pick 'es'.
2011-03-08 13:12:56 -05:00
James Socol 6ff3e25730 Use 301 instead of 302 for locale-based redirects.
Per justdave's report, sending 301 may cause browsers to cache the redirect
stopping future changes to Accept-Language from having an effect.
2011-03-08 13:12:18 -05:00
James Socol b0cb526cc9 Accept mixed case in Accept-Language [bug 621389]
* See bug 638787
2011-03-08 13:12:17 -05:00
James Socol a33e4b36b7 Add 'activity' app and Activity model [bug 639526]
* Adds a model representing an activity stream object.
* Includes a mixin to add the bi-directional generic relation.
2011-03-08 11:49:37 -05:00
Paul Craciunoiu a48fa43611 Dashboard of dashboards UI. Skeleton for review dashboard. [bug 638470] 2011-03-08 18:48:08 +02:00
Ricky Rosario 014be0ce9f Added landing pages for Sync and Firefox Home. Includes some refactorings for DRYness. [bug 637334, bug 607988] 2011-03-04 17:55:37 -05:00
Erik Rose 7da71ec366 Merge [bug 634646]. 2011-03-04 13:07:28 -08:00
Erik Rose 8690b469eb Color-code the %-of-top-20-translated graph. 2011-03-04 11:49:48 -08:00
Erik Rose 6c5aac2f30 Add badges to status column of Most Visited L10n Dash.
These make it faster to pick out and prioritize the untranslated articles.
2011-03-04 11:49:48 -08:00
Erik Rose aae620f00c When an untranslated article appears in the Most Visited L10n readout, show Translation Needed in the status column.
Link the new text to the translate view.
2011-03-04 11:49:32 -08:00
Erik Rose 4a64b1d6c2 Include untranslated articles in the Most Visited L10n readout. Show top 20 most visited articles rather than top 10. 2011-03-04 11:49:02 -08:00
Ricky Rosario b4327f4702 Fixed some styling issues.
* Overlap of "...your question has been posted..." message
* Style of the question notifications pages for anonymous uesrs
[bug 637918]
2011-03-04 11:24:19 -05:00
Ricky Rosario 38c9673fa3 Moved landing pages to their own app. [bug 638469] 2011-03-04 09:39:17 -05:00
James Socol 78317b2da3 Create a PostCrash API for Socorro. [bug 631341]
The API is available at /postcrash. There is one required GET parameter: s.

A request without an `s` parameter is a 400.
A request with an `s` parameter that does not return a result is a 404.
A request with an `s` parameter that returns a result is a 200. (Or 304.)

All responses are cached for 24 hours and have Content-type: text/plain.

If an article matching a crash signature is found, its URL isreturned without
a locale. This will cause SUMO to use our Accept-Language localization
fallback when a user visits the URL.
2011-03-03 15:59:52 -05:00
James Socol ebbd99c8c5 Add a Signature model for postcrash. [bug 631341] 2011-03-03 15:59:51 -05:00
James Socol 78df39ade8 Create a permission to delete attachments to answers. [bug 600176]
Adds the default permissions for upload.imageattachment and switches the
views to check for the correct permission. Also ensures that del_image_async
returns JSON and improves test coverage of that view.
2011-03-03 14:54:34 -05:00
Ricky Rosario 69926c59cd Delete redirects when the document they redirect to is deleted. Happens in rebuild_kb() task. [bug 635183] 2011-03-03 11:06:45 -05:00
Erik Rose d33a7942f3 [bug 626799] Update the question reply email. They're now slightly different ("personalized") for each user. Send a different mail to the original asker.
In test_answer_notification, change the person who posts the reply to someone other than the asker so an email gets sent to the asker so we can test it.
2011-03-02 15:24:38 -08:00
Erik Rose 7ae1cbbabe [bug 626799] Update the question solution email. 2011-03-02 15:19:06 -08:00
Erik Rose 65e1c8676b Make EmailUser.is_anonymous() return True, and use it rather than isinstance() tests to determine user anonymity.
I have no idea why we had it returning False before.
2011-03-02 15:19:06 -08:00
Paul Craciunoiu fa13814389 [bug 634345] Upgrade Django to 1.2.5, fix backwards incompatible changes, and flag some AJAX POSTs for update.
* Update to vendor lib required for django and django-taggit.
* Add a note on the auto_delete_files decorator explaining why it's necessary.
2011-03-02 17:41:43 -05:00
James Socol 1d20fa7270 Show the answer and solution counts on questions. [bug 635747]
Put the number of solutions, and number of answers, below the avatar and name
of the person answering a question.

Not the prettiest thing ever but it does the job until we can get some love
and time from UX.
2011-03-02 15:33:48 -05:00
Ricky Rosario e968756b64 Added option for using a different email template/subject during registration. Using the option for AAQ. [bug 627914] 2011-03-02 14:50:20 -05:00
Paul Craciunoiu 2cc7a3af74 [bug 629773] Localize 'ago' in AoA tweet. 2011-02-28 17:41:17 -08:00
Erik Rose 674e6ed48f Switch _get_tweets() to the uncached manager so filter changes take the user's replies into account immediately. 2011-02-28 16:52:08 -08:00
Erik Rose 0dec600a7d [bug 624472] Add filters to Army of Awesome landing page.
* Move the "busy" spinner outside the Refresh button (but still close enough to catch the eye after clicking Refresh) so we can re-use it for Filter menu changes.
* Grey out hidden tweets when they show up in using the All filter.
2011-02-28 16:28:58 -08:00
Erik Rose 602144100c Massage customercare models to make tweet replies more traversible.
Tweet now uses tweet_id as its pkey. The surrogate key wasn't really useful, and this makes it simple to turn reply_to into a Django ForeignKey so we can traverse it for the Answered and Unanswered filters. Cascading deletes are okay for replies; it doesn't make sense (UI or otherwise) to hang onto replies to tweets we no longer have.
2011-02-28 16:28:57 -08:00
Paul Craciunoiu 5df7e82d56 [bug 636316] AAQ search does not include wiki documents if no categories are excluded.
Solution: ignore exclude filter if no values are excluded. Sphinx seems to eagerly exclude *everything*, the opposite of what we want.
2011-02-28 10:57:50 -08:00
Ricky Rosario b3ac8df5c4 Added bottom close link and close on overlay click to the Additional System Details modal. [bug 635750] 2011-02-25 12:21:01 -05:00
Ricky Rosario be5e64c0f7 Fixed invalid svg 2011-02-24 11:08:57 -05:00
Paul Craciunoiu 9ae7975462 AAQ Mobile tests. 2011-02-23 16:11:51 -08:00
Paul Craciunoiu d48d3ce683 Email confirmation template turns mobile. 2011-02-23 14:33:48 -08:00
Ricky Rosario d8693fa582 Don't show selections/change when we are already showing the form 2011-02-23 14:33:48 -08:00
Paul Craciunoiu c0809df138 * Clean up some unnecessary CSS
* Pass 'host' to aaq_search_form.
* Fix no-JS 'Go' in footer.
2011-02-23 14:33:48 -08:00
Ricky Rosario 1c459fb7d2 Prettified desktop AAQ with icons.
* Fixed home page to use product logo sprite
* Need the wiki_syntax styles to be last so they don't get overriden easily
* Tweak so only div.selections renders when it is needed
2011-02-23 14:33:48 -08:00
Paul Craciunoiu 21ef2fc630 [bug 635912] Mobile login/registration, styling of most things... TODO below:
* Confirmation email
* Post-AAQ page for already active users is the DESKTOP question, what to do??
* First-step icons
* OS/Fxver/plugins
* (optional?) One-line Ask bar (like search box, submit label is "Ask")
* mobile tests
2011-02-23 14:33:48 -08:00
Ricky Rosario 47c4433bd6 Added AAQ mobile template.
* Done with mobile/new_question.html general structure.
* TODO: lots of CSS, new_question_login.html, confirm_email.html
2011-02-23 14:33:47 -08:00
Paul Craciunoiu 29f9bd8d6e [bug 635997] Add macros for login and register forms and use them. 2011-02-23 14:33:47 -08:00
James Socol 3c8619d11e Make test_translate_rejected_parent less fragile [bug 634461]
Still asserts the existence of the notice, including both the
DOM element and the text, but does not insist that the text be
in any particular language.
2011-02-22 11:01:42 -05:00
Paul Craciunoiu c697b73b4f [bug 602057] Delete user upon registration if sending email fails. 2011-02-18 12:03:32 -08:00
Paul Craciunoiu c362bf4fbf [bug 626638] Catch SMTP exception in password reset form. 2011-02-17 18:02:54 -08:00
Paul Craciunoiu 211b95e048 [bug 625737, 624755] Catch SMTPExceptions during registration and resendconfirmation and let the user know. 2011-02-17 16:04:52 -08:00
James Socol 86c930b512 Admin view with the current schema version. [bug 635043] 2011-02-17 18:36:47 -05:00
Fred Wenzel 4aeb3c4f58 Fixed awkward linebreak. 2011-02-17 15:26:22 -08:00
Fred Wenzel 8dac105b96 Remove tweets button for Army of Awesome. Bug 624464. 2011-02-17 15:16:28 -08:00
Paul Craciunoiu 9cf8a1e050 Video does not need to have a set width/height. Only flash fallback does. 2011-02-17 13:11:10 -08:00
Paul Craciunoiu 3d21eb80c3 [bug 632415] Liberate syntax styling to wiki_syntax.css and style Table of Contents.
Also clean up unnecessary call in wiki.views.py [bug 632165]
And style document properly: #wiki-doc and #doc-content stuff.
Fix showfor JS to use <ul> properly.
2011-02-17 13:11:09 -08:00
Ricky Rosario b98f42048d Created document template for mobile, liberated article voting js for
reuse. [bug 632415]
2011-02-17 13:11:09 -08:00
Erik Rose 2193a653dd Add some docstrings to Dashboard readouts. 2011-02-17 13:09:45 -08:00
Erik Rose a46c5dadb5 [bug 626143] Make "123 of 456" localizable on L10n Dashboard.
Change the markup so it's less tricky for localizers.
2011-02-17 13:09:33 -08:00
James Socol 804c7993ec Remove EventWatch model and table. [bug 632184] 2011-02-16 15:08:28 -05:00
James Socol 3c3c1a37bc Accept non-ASCII titles in notification emails. [bug 634608] 2011-02-16 12:11:55 -05:00
Ricky Rosario cd6e88ebe1 Implemented search results for mobile. [bug 632413] 2011-02-15 16:33:40 -05:00
Erik Rose a2d94c8040 [bug 633628] Add admin UIs for Watch and WatchFilter for QA.
Also add a unicode representation for WatchFilters so they show up in the admin UI informatively.
2011-02-14 12:39:01 -08:00
Ricky Rosario a1fd7ef506 Implemented mobile templates for desktop and mobile landing pages. Common
Questions section require wiki documents created:
* Desktop home for mobile - Common Questions
* Mobile home for mobile - Common Questions

[bug 631622, bug 631624]
2011-02-11 17:23:32 -05:00
James Socol 46ef0388dc Fix KBforums. 2011-02-11 14:20:54 -05:00
James Socol 4ba117b8ed Fix the rookie mistake. [bug 633037] 2011-02-10 18:52:49 -05:00
Paul Craciunoiu 904deaaab6 [bug 624427] Avoid IOError due to race between image deletion and thumbnail generation. 2011-02-10 13:06:09 -08:00
Ricky Rosario dfaa7c6967 Don't show reply button if question is locked. [bug 633015] 2011-02-10 13:16:16 -05:00
James Socol afd32a70e1 Answers should use their own created date. [bug 633011] 2011-02-10 12:51:18 -05:00
Erik Rose b1b4935acd [bug 623961] Switch to SQL-based migrations for notifications. 2011-02-09 17:06:56 -08:00
Ricky Rosario 7ed3ab799c Fixed style of subscribe to changes button. [bug 632849] 2011-02-09 15:05:49 -05:00
Paul Craciunoiu 201474c335 [bug 631618] Base mobile template with header and footer. Footer could potentially be shared with AMO.
Also update to a new revision from django-moz-header.
2011-02-09 11:28:22 -08:00
James Socol fe2f9981a8 Temporary admin for EventWatches. 2011-02-08 13:43:45 -05:00
James Socol fe725af920 migrate_watches management command [bug 623961] 2011-02-08 13:43:45 -05:00
Ricky Rosario 95d65a0f6a Enabled mobile views and templates. Thanks to jbalogh's django-mobility. [bug 631617] 2011-02-08 12:15:57 -05:00
Erik Rose c28c1aa858 [bug 630116] Compare email addresses case-insensitively when de-duping. 2011-02-07 19:02:20 -08:00
Paul Craciunoiu 24a13e54fd [bug 623982, bug 629520] Anonymous watches. Delete watch when delivery fails.
* Add an is_active column.
* Add stub implementation for confirmation email.
* Update .notify() to send a confirmation email and raise an ActivationRequestFailed exception if the email message fails to send.
* Add function Event._activation_email, which receives a watch and an email and returns an EmailMessage.
* Make questions anonymous watches work, add extra views for confirming/unsubscribing from watches.
* Add Event.get_activation_url() for use in email templates.
* Add Event.get_watch_description() for events to describe their watches in string form. This comes in handy when sending out emails, to explain why the receiver is getting this.
* Catch SMTPRecipientsRefused exception and show message about it.
* Update wiki tests.
2011-02-07 17:15:46 -08:00
Erik Rose fc33d57eeb [bug 623960] Delete dead code from old notification system.
Leave EventWatch there for the moment so migrations can use it.
2011-02-07 14:29:21 -08:00
Erik Rose 598af656f1 Add NotificationsMixin to model classes that can be watched. Rely on Django cascading deletes to remove watches to deleted objects. 2011-02-07 14:24:15 -08:00
Erik Rose dd08a1a845 [bug 628752] Port wiki app to new notification system. 2011-02-07 14:24:15 -08:00
Paul Craciunoiu 7a91f72626 [bug 627451] Claim anonymous watches upon user activation.
Add a task and fire it off on user activation, i.e. after we know email is valid.
2011-02-07 13:40:46 -08:00
Ricky Rosario dc4091b07a Added `link-btn` CSS class for buttons that are styled to look like links. Fixes bug 632041. 2011-02-07 12:16:37 -05:00
James Socol 4b247e21d6 Make test_generate_thumbnail_twice less brittle. [bug 628367] 2011-02-04 18:16:51 -05:00
Paul Craciunoiu 3b6bcc13b4 [bug 628751] Question ported to new notifications API.
* QuestionEvent abstraction for common __init__() stuff
* QuestionReplyEvent, QuestionSolvedEvent for new answers/new solutions.
* WatchQuestionForm tests, also don't allow logged-in users to override what email the notification goes to. (I.e. improve WatchQuestionForm validation)
* Update templates to reflect new notification.
2011-02-04 12:37:22 -08:00
Ricky Rosario 58817ce195 Re-themed the questions pages. [bug 623904] 2011-02-04 13:35:31 -05:00
James Socol a340b2d840 Add L10n comment to template recursion. [bug 624416] 2011-02-03 18:28:42 -05:00
James Socol 5670dc779c Link to media upload from gallery pages. [bug 629410] 2011-02-03 18:28:41 -05:00