Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Pombola is a parliamentary monitoring (PMO) platform; its biggest instance is Mzalendo, a volunteer run project whose mission is to "keep an eye on the Kenyan Parliament".
branch: master

Fix elasticsearch version mismatch, which caused errors on reindexing

In edd6682 I upgraded elasticsearch, but didn't take into
account that the newer elasticsearch is only for Elasticsearch 1; we have
to stay on a version in the 0.4 series since we use Elasticsearch 0.9 on
our servers:

  https://github.com/elasticsearch/elasticsearch-py#compatibility

This was causing the errors:

  org.elasticsearch.indices.InvalidTypeNameException: mapping type name [_mapping] can't start with '_'

... on reindexing; this is due to the URLs used when putting a mapping
having changed between Elasticsearch 0.9 and later versions,
e.g. compare:

  http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/indices-put-mapping.html
  http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-put-mapping.html

Thanks to Matthew Somerville for explaining what was going on here.

Fixes #1584
latest commit 705754cc78
Mark Longair mhl authored
Failed to load latest commit information.
bin Update the Vagrantfile such that you can switch between countries
commonlib @ 4e67698 Add commonlib at a version that includes output-on-error
conf Also generate nightly Popolo JSON exports for Kuvakazim and Mzalendo
design_related Delete the theme in this repo as it is now hosted elsewhere.
docs Remember to add a note about actually running core_fix_sayit_speakers
pombola ZA: Reduce queries used on the organisation detail page
web Delete stock down.default.html, instead generate it as part of deploy
.gitignore Merge branch 'switch-to-pipeline'
.gitmodules Add commonlib at a version that includes output-on-error
.travis.yml Turn off gcc optimizations for faster compilation of numpy and lxml
LICENSE.txt License
README.md Switch to Poplus mailing list
deployment_notes.md Rename references to Mzalendo the project to Pombola.
improvement_notes.md Rename references to Mzalendo the project to Pombola.
manage.py Correct a silly mistake in manage.py
requirements.txt Fix elasticsearch version mismatch, which caused errors on reindexing
run-tests Add tests to check the home page contexts in each variant
run_selenium_tests.bash Shift test scripts to match Django 1.4 directory structure.
run_tests_za.bash Merge branch 'master' into issues/766-split-out-place-search

README.md

Pombola

This web app allows you to store and share information on public figures, especially politicians.

Please see the Operations Manual which covers all aspects of running a Pombola site.

For an overview of the system please see the files in docs/ - especially OVERVIEW.md

Community

Please join the Mzalendo Users Google group for discussion about running Pombola-based websites. This is also where announcements etc will be made.

https://groups.google.com/forum/?fromgroups=#!forum/mzalendo-users

There is also the Poplus mailing list for some of the code used to make the site. This includes MapIt (for the boundaries), PopIt (a person data storage engine that Pombola will be changed to use in the future), and SayIt (a speech data storage system, similarly):

https://groups.google.com/forum/#!forum/poplus

Installing

Please see docs/INSTALL.txt

To change your site's look and feel please see the styling notes.

Troubleshooting

Please see docs/TROUBLESHOOTING.md file

Future

The Pombola codebase was originally written for the Kenyan site mzalendo.com. It has since been modified to support other sites around the world, notably several in Africa.

We want the code to be easy to use for other installations, but currently there are some rough edges.

We also intend to replace the core app's models with an external data store. This will be done using PopIt which is a project that we are currently working on.

Something went wrong with that request. Please try again.