Releases: UN-OCHA/hpc-api-core
Releases · UN-OCHA/hpc-api-core
Upgrade to Knex v3
⚠️ BREAKING CHANGES ⚠️
What's Changed
- Update Postgres image to 14.12 by @Pl217 in #148
- HPC-8569: Add
count
function anddistinct
option to models library by @manelcecs in #152 - HPC-8569: Export 'FieldsOfModel' by @manelcecs in #153
Full Changelog: v8.2.0...v9.0.0
Allow for read-only replica DB connection
Adds support for read-replication. Assumes master and replica DB are on separate servers, but if connection to replica isn't passed, the models behave just like before (#141).
Will use master DB for write operations and for transactions and replica DB should be only used for read-only operations.
Add more utility methods
Remove entitiesAssociation model and its usages
⚠️ BREAKING CHANGES ⚠️
- Remove
entitiesAssociation
model (#147) - Refactor
getAndValidateAllPlanEntities()
to stop relying on removedentitiesAssociation
model (#147)
Full Changelog: v7.7.0...v8.0.0
Add `isCommentPublic` field to `measurement` model
- Add isCommentPublic to measurement model (#145)
Full Changelog: v7.6.0...v7.7.0
New `legacy` model and change to `planEntity` model
Respect provided `version` and allow skipping validation
Respect provided version
and allow skipping validation (#140)
Add `visibilityPreferences` to `planVersion` model
Add visibilityPreferences
to planVersion
model (#137)