In preparing to add File Level metadata to Dataverse these are notes on several places where experience has shown that the API could be improved.
-
Current (4/2016) handling of FITS metadata includes:
- Extra information in the file description field which shows up on the cards
- The addition of a
FITS file
tag
-
Reference document for the File level metadata BRD
- Django 1.9 application with two databases:
- Legacy database with readonly access via unmanaged models. Both Django models (models.py) and related migrations have "managed" set to
False
'managed': False
- Default database holding django specific tables (e.g. auth_user, django_content_type, etc)
- Legacy database with readonly access via unmanaged models. Both Django models (models.py) and related migrations have "managed" set to
- For testing I want to re-create the legacy database tables. In other words, during
python manage.py test
, tell Django to set "managed" toTrue
- There are several excellent blog posts on how to set "managed" to
True
during tests:
- There are several excellent blog posts on how to set "managed" to
- http://blog.birdhouse.org/2015/03/25/django-unit-tests-against-unmanaged-databases/
Notes for IQSS/dataverse#2290
- In another release: add categories, tags, and/or restrictions
- Log into the "Miniverse" administrative control panel:
- Go to the "installations" section:
- Click "ADD INSTALLATION" (top right corner)
- Go from a gsonObject object -> String -> jsonObjectBuilder
public static JsonObjectBuilder convertGsonObjectToJsonObjectBuilder(String successMsg, JsonObject gsonObject) {
JsonObjectBuilder jsonObjectBuilder = Json.createObjectBuilder();
jsonObjectBuilder.add("message", successMsg);
JsonReader jsonReader = Json.createReader(new StringReader(gsonObject.toString()));
javax.json.JsonObject object = jsonReader.readObject();
jsonObjectBuilder.add("files", object.get("files"));
INSERT into setting VALUES (':GeoconnectCreateEditMaps', 'true');
INSERT into setting VALUES (':GeoconnectViewMaps', 'true');
INSERT into setting VALUES (':GeoconnectDebug', 'true');
OlderNewer