ODM2 / ODM2ControlledVocabularies

A Python/Django web application and REST API for managing the ODM2 Controlled Vocabularies, with SKOS and community moderation features.
http://vocabulary.odm2.org
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

UnitsTypeCV API Call Gives 500 Error #17

Closed horsburgh closed 9 years ago

horsburgh commented 9 years ago

When I try to get the UnitsTypeCV terms via the API, I get a 500 error. For example:

http://vocabulary.odm2.org/api/v1/unitstype/?format=skos

This is affecting my ability to update my Little Bear River data use case. The Python script to automatically populate the CV tables in a blank ODM2 database obviously isn't loading the UnitsTypeCV terms. As an aside, the CV Loader Python script doesn't throw an error either that the web service call failed, so it took me a bit to figure out that it really wasn't a problem with the script, but rather the web service call was failing.

denvaar commented 9 years ago

This was apparently caused by some 'test' requests that were missing some data. There are some inconsistencies in the database between the cv table and the cv request table which is causing the serialization to fail.

_I have updated the server so that it should work_, however I am not going to close this issue until I am certain that we have the correct null/not null settings on each field. selection_029

horsburgh commented 9 years ago

The required fields in the above are correct, and it seems to be working on the server, so @denvaar - close this one when you feel its done.

denvaar commented 9 years ago

Closing issue. I wrote a script to modify all of the tables with correct null/not null values (name required, definition not required.) Also updated Django models to correctly reflect the changes.