Skip to content

Releases: openmhealth/omh-dsu-ri

v0.1.0

09 Mar 10:39
Compare
Choose a tag to compare

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 the header object. This brings the storage endpoint in line with the omh:header:1.1 schema. The following MongoDB shell method iterates through all data points that have a root user_id property and don't have a header.user_id property, and copies the root property value into the header.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 the oauth_client_details PostgreSQL table from dataPoint to dataPoints. This fixes #3 and #6.