Commits on Dec 21, 2011
  1. @willkg @erikrose

    Fix pagination problems with search.

    This is a cherry pick of d03353c backported to next.
    
    * Paginating wasn't working correctly for questios or forum post search
      results.  The pages would get generated, but all results would be
      shown on every page.  A typo was preventing the question_s and
      discussion_s from picking up the sliced s.
    * Also, this changes type_ to kind so it's less built-inny
    * Quoting the comment I modified and added to:
    
      If we're doing elasticsearch, then we need to update
      the _s variables to point to the sliced versions of
      S so that, when we iterate over them in the
      following list comp, we hang onto the version that
      does the query, so we can call excerpt() on it
      later.
    
      We only need to do this with elasticsearch.  For Sphinx,
      search_s at this point is an ObjectResults and not an S
      because we've already acquired object_ids on it.  Thus
      if we update the _s variables, we'd be pointing to the
      ObjectResults and not the S and then excerpting breaks.
    
    * This tests that excerpting works for elasticsearch.  If it works then
      it means that we're excerpting with the same S that we did the query
      with.
    willkg committed with erikrose Dec 15, 2011
Commits on Dec 20, 2011
  1. @rlr

    [bug 712301] fx9 default.

    rlr committed Dec 20, 2011
Commits on Dec 14, 2011
  1. Make sure NOT NULL columns are not NULL.

    James Socol committed Dec 14, 2011
  2. Upgrade Waffle and add setting.

    James Socol committed Dec 14, 2011
  3. @berkerpeksag @rlr
  4. @rlr

    [Bug 708776] Improved handling of redis errors.

    * Record redis errors to statsd.
    * Removed KarmaAction.objects since it depended on redis being
    available at import time and wouldn't recover otherwise.
    rlr committed Dec 13, 2011
Commits on Dec 13, 2011
  1. @willkg

    Fix flag in settings_test

    This makes the flag in settings_test.py match settings.py.
    willkg committed Dec 9, 2011
  2. @willkg

    [bug 690086] tweak vendor.rst language

    This tweaks the language to make it clearer that the vendor stuff
    is in the kitsune repository and not a separate one.
    
    It also turns a caveat thing into a warning so it shows up better.
    willkg committed Dec 13, 2011
  3. @willkg

    Change ES_TIMEOUT to 5

    The default is 1, but that kicks up a lot of timeout issues.  So we're
    raising it to 5.
    willkg committed Dec 13, 2011
  4. @willkg

    [bug 710279] Fix test_creator_nums_redis test

    KarmaManager() gets created before we stomp on the REDIS_BACKENDS settings
    with REDIS_TEST_BACKENDS.  This switches all that testy stuff around to use
    settings_test.py which stomps on everything before modules get imported.
    willkg committed Dec 13, 2011
  5. @readevalprint

    [bug 706237] Karma graph

    readevalprint committed Dec 2, 2011
  6. @rlr
Commits on Dec 12, 2011
  1. @rlr
Commits on Dec 9, 2011
  1. @readevalprint

    rm ipython

    readevalprint committed Dec 9, 2011
  2. @erikrose
  3. @erikrose

    [bug 694979] [bug 698474] [bug 698475] [bug 706638] Add optional, exp…

    …erimental support for ElasticSearch.
    
    The advanced search works, but the front-page search and the searching from within the questions app are still buggy (returning 0 results). Thus, we'll leave the waffle flags off for now.
    erikrose committed Dec 9, 2011
  4. @erikrose

    Have different dispatch UIDs for the 2 wiki signal handlers.

    This couldn't ever have caused a problem, though, since they'd never have been fired as a result of the same event anyway.
    erikrose committed Dec 9, 2011
  5. @erikrose

    Rename a var.

    erikrose committed Dec 9, 2011
  6. @erikrose

    Set USE_ELASTIC to False by default so it doesn't immediately kick in…

    … in production.
    
    We should manually run esreindex and only then turn this on.
    erikrose committed Dec 9, 2011
  7. @erikrose
  8. @erikrose

    Remove unused consts.

    erikrose committed Dec 9, 2011
  9. @willkg

    Fix indexing so it does it in order by id

    This makes my 5% much closer to Erik's 5% so it's easier to do development
    and compare notes when indexing only a percentage of the db.
    willkg committed Dec 9, 2011
  10. @willkg
  11. @willkg
  12. @willkg

    Add docs for --percent

    willkg committed Dec 9, 2011
Commits on Dec 8, 2011
  1. @willkg

    Handle ES TimeoutError

    ES has a tendency to kick up TimeoutErrors often.  This changes the code so
    that if ES does kick up a timeout error, then we throw up a "Woah, Search
    is like totally unavailable" message rather than kicking up the Django
    error page.
    willkg committed Dec 8, 2011
  2. @willkg

    Bunch o' fixes

    * fixes excerpts so that they work in oepipus and elasticutils
    * tweaks the bleach call so that it drops blockquotes--this fixes the
      occasionally weirdly indented search result
    * fixes tests so that the results we're getting match the results we're
      getting
    willkg committed Dec 8, 2011
  3. @erikrose @willkg
  4. @rlr
  5. @erikrose
  6. @erikrose
  7. @erikrose
  8. @willkg

    Fix answer indexing and dispatch_uids

    * answer indexing was so hosed.  this fixes that.  and also adds a note
      to the test case pointing out that it's not sufficient in this case.
    * dispatch_uids need to be unique--this fixes that.
    willkg committed Dec 8, 2011
  9. @willkg

    Change elastic indexing of forum threads

    In elastic we now base the index on Thread and not Post.  That causes
    problems with Oedipus, so we do some fancy waffling to deal with that.
    
    Additionally, in elastic, we index a single Thread and all its Posts
    as a single document rather than as separate documents.  This change
    is to work around not being able to do a group_by like thing in elastic.
    willkg committed Dec 7, 2011
  10. @willkg

    Rework question indexing

    Instead of having a document in the index for every Question AND Answer, we
    now have a single document for a Question and all its answers all packaged
    up and tied with a ribbon.
    
    The one thing that changes slightly data-structure wise is the answer_creator
    field.  This changes it to be a list of strings.  I'm not entirely sure if
    that'll work, but we can make it work later.  Maybe with a big enough
    hammer.
    willkg committed Dec 7, 2011