Commits on May 16, 2012
Commits on May 15, 2012
  1. [bug 752519, 752517] Filter and Boost ES fixes

    willkg committed May 8, 2012
    Prefixes all the fields making it easier to apply boosts on a model-field
    level and makes it less likely filters will interfere with each other.
    Reimplement query_fields so that the code is in kitsune rather than in
    Split _search_suggestions in the new_question view so that we can do
    ES-specific things in the ES version of the view.
    Add some AAQ tests that make sure the new_question view isn't totally
    dying in an unhandled way.
    Removed weights because they were using the wrong keys which means that
    they weren't having any effect. The weight keys were wrong. e.g. a weight
    specified "title" but since we're querying with "title__text" it needed to
    specify "title__text".
    I also updated to an elasticutils sumo branch rev that has some tweaks
    to the weight code which makes it clearer.
    Also added some debugging.
    Fixed the result template to be more generic making it easier for our
    increasingly divergent ES and Sphinx code.
    Fixes the model field so it's not stored in the index--that was silly.
    "store" should only be used for data that will be highlighted. Otherwise
    we pull it from the source.
    Removed question_id and thread_id from the mapping--they were never used.
  2. [bug 748410] New landing pages.

    rlr committed May 11, 2012
    New landing pages at /firefox, /ask, /products, /participate, /feedback
    and /kb.
  3. Remove no longer used variables.

    rlr committed May 11, 2012
Commits on May 14, 2012
Commits on May 10, 2012
  1. [Bug 574402] Time zone adjustment.

    berkerpeksag committed with rlr Feb 20, 2012
    If the user has a timezone set in the profile, stick that into the session
    and adjust all times when using the datetimeformat helper.
Commits on May 9, 2012
  1. [bug 753429] bleach summaries

    willkg committed May 9, 2012
  2. Improve a11y: empty alt-attribute

    icaaq committed with rlr May 8, 2012
    Instead of hearing "firefox Need help with firefox?" you now hear "Need
    help with firefox?
  3. Added myself to AUTHORS

    Curlified committed with rlr May 8, 2012
Commits on May 8, 2012
  1. First pass at better contributor docs

    willkg committed May 4, 2012
    * fixed some typos
    * add hacking howto, contact us, and contributor docs
    * added an AUTHORS file
    The hacking howto probably doesn't work, but it's close. It needs someone
    to go through it and fix issues in the docs and in the code to make it
    work better.
Commits on May 7, 2012
  1. [bug 748359] Collect statsd data for AoA metrics.

    rlr committed May 7, 2012
    That sounds confusing. I basically just added some statsd calls
    to look for patterns of cache hits and misses.
Commits on Apr 30, 2012
  1. [bug 750371] Update django sha.

    rlr committed Apr 30, 2012
Commits on Apr 29, 2012
  1. Improve the tabflow

    icaaq committed with rlr Apr 24, 2012
    Keyboard users navigate between interactive elements via the Tab key.
    Every anchor element creates a tab stop, so redundant links within a
    module can create an inefficient overall tab flow, making navigating
    with the Tab key a real drag for keyboard users.
Commits on Apr 27, 2012
  1. [bug 749598] instrument indexing tasks

    willkg committed Apr 27, 2012
    This adds statsd calls to the indexing tasks so we can get a handle on
    how much live indexing we're doing.
Commits on Apr 26, 2012
  1. Add a note about this stupid test

    willkg committed Apr 26, 2012
  2. [bug 746609] Rewrite ES index code unify doctype

    willkg committed Apr 24, 2012
    This is kind of intense. It reworks all the indexing and searching
    code so that we're using a single ES doctype in the index. Documents
    can be distinguished by their 'model' field which indicates which
    model they derive from.
    This pulls in a change to elasticutils that adds a get_doctype()
    to S. Previously the doctype was based on cls._meta.db_table and that
    made a unified doctype difficult.
    I added a .search() method to SearchMixin. This is the class method
    to use to get an S that is tuned for that model.
    I changed a bunch of tests to use the new .search() rather than building
    their own S or Sphilastic.
    Additionally, this does some minor cleanup of related code.
    One thing this doesn't do is rework how the AAQ suggestions work. That's
    still a single function that does its thing. Need to keep an eye on that
    when we make future changes so we make sure it doesn't break.
  3. [bug 729697] Add index browsing admin page of awesome

    willkg committed Apr 23, 2012
    This adds an elasticsearch index browser to the admin. This will make it
    **way** easier to debug certain classes of problems that require answers
    to questions such as:
    * "Did xyz get updated in the index?"
    * "What the hell did we put in the index and does it bite?"
  4. [bug 706948] Pass question id instead of instance to task.

    rlr committed Apr 26, 2012
    We were passing a question to a celery task that might not
    run for a while and then calling save on that instance.
    This may lead to stale data overwriting newer data. It might
    explain the increase in incidence of the no-replies issues
    recently, as celery seems to be getting backlogged more
Commits on Apr 24, 2012
Commits on Apr 21, 2012
Commits on Apr 20, 2012
  1. Comment out meh test

    willkg committed Apr 20, 2012
    This test fails if you go to a different timezone. Since it's a Sphinx
    test and it's only testing oedipus functionality which isn't going
    to change between now and when we ditch Sphinx, I'm just going to comment
    it out.
  2. Fix refresh calls to only refresh WRITE_INDEX

    willkg committed Apr 20, 2012
    Previously I think we were refreshing _all_ the indexes which seems
    kind of stupid. Now we just refresh the WRITE_INDEX which is the
    only index we write to. Further, we make sure refresh calls only
    sleep for a second.
  3. [741801] Fix Sphinx and ES tests to skip

    willkg committed Apr 19, 2012
    If sphinx isn't installed or configured, then this will skip tests that
    require it.
    Previously, it would only skip tests if SPHINX_SEARCHD or SPHINX_INDEXER
    weren't defined in settings, but since they are defined in, that
    was never the case unless you explicitly undefine them in
    Now it also looks to see if the set paths exist and if not, it skips them.
    This fixes the ES test case, too. Moves the ElasticTestCase class it from
    the sumo app to the search app and fixes it so it checks to see if ES is
    running and if not, skips ES related tests.