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

456 Коммитов

Автор SHA1 Сообщение Дата
Ricky Rosario 8b25e69b2e [bug 864876] Remove password blacklisting code. 2013-04-24 01:07:00 -04:00
Berker Peksag 4ad1693fcd [Bug 864856] Remove chat app. 2013-04-23 20:09:51 -04:00
Ricky Rosario a399cb8a76 [bug 668794][bug 846801] Add new locales: az, sw 2013-04-17 15:39:23 -04:00
Ricky Rosario ac0b3bd6a7 [bug 851207] Fix locale code casing of sr-Latn and sr-Cyrl. 2013-04-09 12:56:03 -04:00
Will Kahn-Greene 9a2c323930 [bug 831005] Update to elasticutils master tip
* add document_id to index
* update to elasticutils master tip -- this picks up pyelasticsearch
  and ditches pyes
* nix get_indexing_es (it was dumb)
* remove bunch of now-unused settings (also dumb)
* tweak test scaffolding -- this should make tests run faster
  for kitsune in a VM and on slower machines
* clean up docs

Note: This doesn't remove pyes. For the purposes of making this easier
to review, that'll get done in a future commit.

Note: This adds a new field to the mapping, but it's only used in indexing
and it's obviously a string. Thus it's ok for ES to infer what it is
and we don't have to do the "change the mapping" two-step dance.
2013-03-28 14:29:51 -04:00
Mike Cooper 1baf7ae3d2 Refactor some rickshaw code to be reusable. 2013-03-25 13:53:44 -07:00
Ricky Rosario 76812dd16b remove StaySecureMiddleware
We now have HSTS so this is not needed anymore.
2013-03-25 16:18:25 -04:00
Rehan Dalal 9f183e8364 [bug 818027] Mobile get involved page 2013-03-21 14:18:48 -04:00
Mike Cooper ed37a08961 Add a custom hover control for bar charts.
I'm going to try and get this accepted up stream at some point.
2013-03-19 10:20:26 -07:00
Mike Cooper f50155d302 Move about:support add-on to AMO.
* URL for the add-on is now a setting, to change it easily.
* AMO will provide automatic updates to the add-on. We could have done
  this in SUMO, but it is not trivial.
* The url used here will automatically point to the latest version.
* Remove the old add-on from the media directory.t
* Add docs about the add-on.
* The version of the add-on in AMO will work on -dev and -stage.
2013-03-18 12:59:40 -07:00
Rehan Dalal 92ea9bf5d9 Revert "Revert [bug 839930] Update to Tweepy 2.0"
This reverts commit 0a4e2416f3.
2013-03-18 10:58:45 -04:00
Ricky Rosario 0a4e2416f3 Revert "[bug 839930] Update to Tweepy 2.0"
This reverts commit bdd158f293.
2013-03-18 09:56:23 -04:00
Rehan Dalal bdd158f293 [bug 839930] Update to Tweepy 2.0 2013-03-18 09:28:42 -04:00
Ricky Rosario ac8df91774 Add kadmin to JINGO_EXCLUDE_APPS 2013-03-18 09:19:22 -04:00
Ricky Rosario 9ebf604ae7 Exclude waffle app from jingo loader. 2013-03-17 10:33:15 -04:00
Ricky Rosario e5e242d493 [bug 839139] Convert last email to jinja2 and use jingo.Loader. 2013-03-16 11:31:47 -04:00
Rehan Dalal 40e7909bb5 [bug 810529] Implement new get involved page 2013-03-14 10:35:18 -04:00
Will Kahn-Greene 89a4e73753 [bug 839157] l10n remaining email templates
* l10n-ifies the remaining email templates
* adds locale-aware emails_with_users_and_watches
* add rest of email templates to DOMAIN_METHODS
2013-03-12 13:25:08 -04:00
Mike Cooper eb13e3a1fd [Bug 847874] Plot topic activity over time.
* Updates elasticutils to add support for histograms.
* Shows volume of questions, broken down by topic.
* Pulls data from ES.
* Configurable date range and bucket size.
* Can reorder and hide topics on the graph.

This commit adds a customized version of jQuery UI. This version of
jQuery UI has the Sortable and Datepicker features. It also has a small
tweak because datepickers were erroring out.

We already have jQuery UI, yes, but it is customized to be a subset.
Adding things after the fact is a PITA, so @rdalal suggested I just make
a new bundle that had what I need in it. It gets bundled with
jingo-minify anyways.
2013-03-11 16:28:40 -07:00
Will Kahn-Greene 3457aa1f47 [bug 846386] l10n the kb email templates
* overhaul code to support setting the right locale for each user
  for each email sent
* convert kb email templates from Django to Jinja2
2013-03-04 13:53:37 -05:00
Will Kahn-Greene 074d9b3360 Add autoescape extension to Jinja config
We need this for email templates.
2013-03-04 13:53:37 -05:00
Ricky Rosario f483dd5688 [bug 694941] Add UI to insert images in the contributor forums.
(/forums)
2013-03-01 15:48:27 -05:00
Ricky Rosario 7b825d447d [bug 840966] Migrate to Django's built-in XFrame middleware and decorators 2013-02-27 17:39:20 -05:00
Ricky Rosario 657e86100e [bug 840966] Add missing X-* awesome middlewares from commonware. 2013-02-27 17:39:20 -05:00
Ricky Rosario a7dc51d4ab [bug 840966] Update commonware to v0.4.2
Also added django-statsd because the graphite related middleware moved
to that lib.
2013-02-27 17:39:20 -05:00
Will Kahn-Greene 9d6de121f0 [bug 845582] Implement ReadOnlyBackend
Instead of wiping out all AUTHENTICATION_BACKENDS which kicks up tons
of errors, this changes read_only_mode to use the brand new
ReadOnlyBackend which categorically rejects everything.
2013-02-27 10:02:56 -05:00
Rehan Dalal 5f89c69540 Update jingo-minify to latest version 2013-02-26 12:19:30 -05:00
Berker Peksag e907c54754 [bug 821043] Change password disabling to use User.set_unusable_password() r=willkg 2013-02-15 17:08:00 -05:00
Mike Cooper e43b16dedd [Bug 827650] Localize AAQ flow
* Stage two of the ES index change.
* Opt questions app into l10n extraction.
* Opt in per locale for AAQ via settings.py. Locales that aren't opted
  in will still go to the a KB article about getting help. Currentl set
  to en-US, pt-BR, and the xx testing locale.
* Made the search suggestions in AAQ locale aware.
* Learned that we can't actually use Nose's test generators, because all
  of our tests inherit from unittest.TestCase. :(
2013-02-14 13:33:15 -08:00
Mike Cooper 6b48e8f90e [Bug 827650] Step one of questions index change.
Update the ES_WRITE_INDEXES to a new value, and make the indexing
changes to add locales to the Question model.
2013-02-14 13:33:15 -08:00
Ricky Rosario f3cdce55cf Revert "Revert "Remove webtrends settings.""
This reverts commit 8f28ee260d.
2013-02-07 13:54:37 -05:00
Ricky Rosario a91434f8cb Revert "Revert "[bug 825616] Use Google Analytics for document views.""
This reverts commit 2763cdee3c.
2013-02-07 13:54:37 -05:00
Ricky Rosario ddc97f36b4 Revert "Revert "[bug 825610] Add pyOpenSSL to compiled requirements.""
This reverts commit 603d15f9d5.
2013-02-07 13:54:37 -05:00
Ricky Rosario 557af75863 mobile-new is the new mobile 2013-02-07 12:48:04 -05:00
Rehan Dalal aa5d309134 [bug 804156] Mobile private messaging 2013-02-07 12:41:06 -05:00
Will Kahn-Greene aafecc8f92 [bug #827649] l10n email templates for users and questions
* add the .ltxt domain so email template strings get extracted.

  this only affects jinja templates. the ones that are still
  django templates fail silently during extraction and never make
  it to the .pot file which is fine.

* convert users app and questions app emails from Django to Jinja
  with the exception of apps/users/templates/users/emails/pw_reset.ltxt
  because that template is rendered by Django's PasswordResetForm
  and thus it has to be a Django template until we change Kitsune
  so that jingo overrides the Django templating stuff.

* add required unsubscribe_text macro.

* fix question and answer model makers to create a user with a
  profile.

* create new sumo.email_utils library which simplifies dealing with
  email templates.

* fix all the places in the users and questions apps where we were
  rendering email templates using Django things to use Jingo things
  and use the correct locale.
2013-02-07 12:19:40 -05:00
Ricky Rosario ab0df7cc05 [bug 826787] Track answer votes in Google Analytics. 2013-02-06 19:43:43 -05:00
Mike Cooper 1eeaabc3da Enable extraction for the AAQ code. 2013-02-06 16:04:02 -08:00
Tobbi afa1905a38 [bug 837515] Don't complete closing tags and curly brackets in editor 2013-02-06 09:28:13 -05:00
Ricky Rosario b297047bfb Remove more of old mobile leftovers. 2013-02-05 18:13:19 -05:00
Ricky Rosario ba7d134435 [bug 837796] Add missing comma #facepalm 2013-02-04 15:54:37 -05:00
Ricky Rosario a8c8bdad52 [bug 831618] Add article read tracking in Google Analytics. 2013-01-30 16:16:08 -05:00
Will Kahn-Greene 96e39acce3 PEP-8 pass on settings.py
Mostly did this to kick jenkins into redoing my tests.
2013-01-29 17:53:11 -05:00
Will Kahn-Greene 9d7bda844e Add xx locale for testing
This adds:

1. xx locale which is Pirate
2. scripts/poxx.py which translates a .po file into Pirate
3. scripts/test_locale.sh which extracts strings and runs poxx.py

The xx locale is set up so that it doesn't show up in the language
chooser lists, but you can explicitly specify it in the url:

    http://localhost:8000/xx/home

The locale is only available translated locally--it will show up
as English on -dev, -stage, and -prod. It'll show up as English
if you don't run scripts/test_locale.sh.
2013-01-28 17:57:04 -05:00
Ricky Rosario e7b0d34ffb [bug 834050] Add aaq.js to new mobile.
We were missing the scripts for populating the hidden fieldsi
(useragent, os, version) in AAQ.
2013-01-24 19:50:45 -05:00
Will Kahn-Greene 0e398c8d27 [bug 796987] Change page size from 20 to 10 2013-01-23 10:22:06 -05:00
Ricky Rosario 603d15f9d5 Revert "[bug 825610] Add pyOpenSSL to compiled requirements."
This reverts commit 34cb418a73.
2013-01-22 14:17:38 -05:00
Ricky Rosario 2763cdee3c Revert "[bug 825616] Use Google Analytics for document views."
This reverts commit d407735223.
2013-01-22 14:17:33 -05:00
Ricky Rosario 8f28ee260d Revert "Remove webtrends settings."
This reverts commit 23d6f6e39d.
2013-01-22 14:17:25 -05:00
Ricky Rosario 23d6f6e39d Remove webtrends settings. 2013-01-20 12:37:50 -05:00