* 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.
* 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.
* 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.
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.
* 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. :(
* 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.
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.