GeoNode fixtures

Bug #972213 reported by Ben Wyss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
Ben Wyss

Bug Description

Back in the day some code was committed to the GeoNode api relating to fixtures (https://github.com/gem/FaultedEarth-Django/commit/31ba35085e536b6a8a0758e7df1e6565a6693e98 ). There was no documentation added for fixtures. Now we need to go back and see:
    a) what was done regarding fixtures,
    b) understand if more work needs to be done to make fixtures usable,
    c) understand how to use fixtures to maintain the database data when a database rebuild is preformed.
    d) document document document

currently a lot of the GeoNode documentation (GEM customizations/configuration) is done in blog form at openquake.org. perhaps we should re-think this approach? Maybe it should be added to the GeoNode api README?

Tags: geonode ui
Revision history for this message
Ben Wyss (bmwyss) wrote :

The fixtures file was out of sync with the database schema. Once the fixtures file was updated (and placed in the appropriate path) they were loaded correctly.

One can also manually load data with fixtures with:

python ./manage.py loaddata /var/lib/geonode/src/GeoNodePy/geonode/observations/migrations/fe_fixtures.json

Changed in openquake:
status: New → Confirmed
Revision history for this message
Ben Wyss (bmwyss) wrote :
Changed in openquake:
assignee: nobody → Ben Wyss (bmwyss)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.