Permalink
Commits on Aug 24, 2017
  1. Don't serve requests for the kenyan-politicians instance

    chrismytton committed Aug 24, 2017
    This instance contains some _very_ out of date data, which we get
    occasional emails about complaining.
    
    As a quick fix I've added a list of `ignoredInstances` which will return
    a 410 error.
Commits on Oct 6, 2016
Commits on Feb 25, 2016
  1. The python-requests version on pluto is old, and json is just an attr…

    mhl committed with PopIt Feb 25, 2016
    …ibute
  2. Add a script to delete old mirrored Pombola instances

    mhl committed with mhl Feb 24, 2016
    This will look through all those databases that begin with
    one of:
    
      popit_kenyan-politicians_
      popit_staging_kenyan-politicians_
      popit_za-peoples-assembly_
      popit_staging_za-peoples-assembly_
    
    It will skip any that:
    
     * Have a timestamp within the last three days
     * Are currently in use for the corresponding popit instance
    
    Any other database will be removed.  It will remove both:
    
     * The mongodb database
     * The Elasticsearch index of the same name
Commits on Aug 27, 2015
  1. Revert "Prevent new instances from being created"

    chrismytton committed Aug 27, 2015
    This reverts commit 28b7cff.
Commits on Aug 20, 2015
  1. Merge pull request #849 from mysociety/disable-new-instance-creation

    chrismytton committed Aug 20, 2015
    Disable new instance creation
  2. Remove link to instance creation on instance list

    chrismytton committed Aug 20, 2015
  3. Prevent new instances from being created

    chrismytton committed Aug 20, 2015
    This redirects the instances creation page to a message about instance
    creation being disabled.
Commits on Apr 29, 2015
  1. Display which org the membership was on behalf of

    chrismytton committed Apr 29, 2015
    If a membership has an on_behalf_of_id property then use this to
    retrieve the organization that the membership was on behalf of.
Commits on Apr 22, 2015
  1. Merge pull request #371 from mysociety/mocha

    chrismytton committed Apr 22, 2015
    Switch to Mocha test framework
  2. Explicitly specify the required jshint version

    chrismytton committed Apr 22, 2015
  3. Start and stop test app server at top level

    chrismytton committed Apr 22, 2015
    Mocha allows you to put before and after blocks outside describe blocks,
    which makes them run globally. This means that the app server is started
    before the tests are run, then shutdown at the end. This makes it easier
    to write UI tests without having to worry about starting and stopping
    the server in each test.
  4. Rewrite browser tests using new zombie API

    chrismytton committed Apr 22, 2015
    Also rename the test so it's an actual test for the homepage.
  5. Increase timeout on UI tests

    chrismytton committed Apr 22, 2015
  6. Remove migration tool and related code

    chrismytton committed Apr 22, 2015
    Now that Every Politician exists we no longer need the migration tool.
    The implementation is buggy and the tests don't consistently pass under
    mocha, so now seems like the perfect opportunity to get rid of it.
  7. Use latest mocha release

    chrismytton committed Apr 21, 2015
  8. Remove nodeunit from package.json

    chrismytton committed Apr 21, 2015
    We've switched to mocha now, so nodeunit is no longer needed.
  9. Run a full 'make' on travis before running tests

    chrismytton committed Apr 21, 2015
    This ensures that the node_modules are installed correctly, as that's no
    longer done as part of `make test`
  10. Use mocha-jshint for linting

    chrismytton committed Apr 21, 2015
    Rather than manually running jshint from the Makefile before the tests
    are run we instead run it as part of the tests so the output is inline
    with the rest of the tests, rather than separate.
  11. Remove cruft from the Makefile

    chrismytton committed Apr 21, 2015
    There's a lot of unused bits of the Makefile so remove them in an
    attempt to make it easier to comprehend.
  12. Port test/auth.js to mocha

    chrismytton committed Apr 21, 2015
  13. Remove old test files

    chrismytton committed Apr 21, 2015
  14. Fix failing zombie.js tests

    chrismytton committed Apr 21, 2015
    The pre-packaged assets were returning a 404 for some reason. In the
    future we should definitely run the tests against the compressed
    production assets. But for now we need to run them against the
    development version to make the tests pass.
  15. Fix broken test

    chrismytton committed Apr 21, 2015
    This was causing jshint to fail.
  16. Upgrade to zombie.js 3.1.1

    chrismytton committed Apr 21, 2015
  17. Start adding new browser tests using zombie

    struan committed with chrismytton Dec 12, 2014
    Add a simple test for zombie to make sure it works
  18. Try and speed up tests

    chrismytton committed with chrismytton Jul 1, 2014