~bac/charmworld/tag-constraints

Viewing all changes in revision 483.

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2014-02-11 16:16:43 UTC
  • mfrom: (482.1.8 bug-1278222)
  • Revision ID: tarmac-20140211161643-526srjt5ruxv6ky2
Add an index for db.charms.

Without the proper index, sorting mongo results fail.

* Add setup_mongo_indices and make it idempotent.
* Lots of tests.
* Change migration 'initialize' to call setup_mongo_indices.
* Add a migration for existing dbs.

* Drive by ugliness

The migration scripts, even long-lived ones like test_migrations.py, were
quite dirty lint-wise.  Turns out the Makefile was excluding them explicitly.
Changed the lint target and then had to fix the old scripts.

https://codereview.appspot.com/61720043/

R=jcsackett. Fixes: https://bugs.launchpad.net/bugs/1278222.

Approved by Juju Gui Bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: