This is the first release of the storage endpoint. It takes the previous unreleased code and adds stability and tooling to serves as a foundation for future work. Specifically, this release:
- Adds support for Docker Compose and updates installation instructions accordingly
- Adds support scripts for pushing to Docker Hub
- Adds Travis support
- Replaces embedded schema Java classes with a dependency on the latest Java Schema SDK
- Fixes #3 and #6, both issues related to an incorrect resource ID setting
- Updates repository code to work against the latest header schema
- Upgrades Gradle and project dependencies to latest stable versions
Migrating
If you were using the code before this point, you need to
-
Move or copy the
user_id
property in any existing Mongo data point documents from the root of the document to theheader
object. This brings the storage endpoint in line with theomh:header:1.1
schema. The following MongoDB shell method iterates through all data points that have a rootuser_id
property and don't have aheader.user_id
property, and copies the root property value into theheader.user_id
property.db.dataPoint.find().snapshot().forEach( function (document) { db.dataPoint.update( { _id: document._id, "user_id": { $exists: true }, "header.user_id": { $exists: false } }, { $set: { "header.user_id": document.user_id } } ); } );
-
Update the
resource_ids
column in theoauth_client_details
PostgreSQL table fromdataPoint
todataPoints
. This fixes #3 and #6.