Skip to content

Releases: UN-OCHA/hpc-api-core

Upgrade to Knex v3

30 Aug 07:58
5c39dc2
Compare
Choose a tag to compare

⚠️ BREAKING CHANGES ⚠️

  • HPC-8383: Upgrade knex to latest version (v3.1.0) by @Pl217 in #154

What's Changed

  • Update Postgres image to 14.12 by @Pl217 in #148
  • HPC-8569: Add count function and distinct 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

02 Jul 15:22
8a2a05f
Compare
Choose a tag to compare

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

25 Jun 08:55
7963527
Compare
Choose a tag to compare
  • Introduce project deleting util method, that also allows deleting projects with multiple versions (#119)
  • Add utility method getProjectVersionImplementationStatus (#150)

Remove entitiesAssociation model and its usages

07 Jun 12:35
9228e3a
Compare
Choose a tag to compare

⚠️ BREAKING CHANGES ⚠️

  • Remove entitiesAssociation model (#147)
  • Refactor getAndValidateAllPlanEntities() to stop relying on removed entitiesAssociation model (#147)

Full Changelog: v7.7.0...v8.0.0

Add `isCommentPublic` field to `measurement` model

13 May 10:09
0e47bc1
Compare
Choose a tag to compare
  • Add isCommentPublic to measurement model (#145)

Full Changelog: v7.6.0...v7.7.0

New `legacy` model and change to `planEntity` model

23 Apr 15:33
9ce00ca
Compare
Choose a tag to compare
  • Add legacy model (#132)
  • Remove 'delete' option from endpointLog edit types (#143)
  • Add parentGoverningEntityId field to planEntity model (#144)

Respect provided `version` and allow skipping validation

11 Mar 15:46
509f4e5
Compare
Choose a tag to compare

Respect provided version and allow skipping validation (#140)

Add `visibilityPreferences` to `planVersion` model

06 Mar 09:20
abaa2b4
Compare
Choose a tag to compare

Add visibilityPreferences to planVersion model (#137)

Add new permissions for project comments

05 Mar 14:59
85eaf74
Compare
Choose a tag to compare
  • Add new permissions for project comments (#136)
  • Setup unit tests with Jest and Docker (#26)

Changing models to support new OCT bridges

16 Feb 10:58
bd0865c
Compare
Choose a tag to compare
  • Introduced new OCT System IDs (OCT-CERF, OCT-CBPF and OCT-OCHA) to externalData model (138)
  • Introduced lookup model to support new OCT bridges (138)
  • Added v4 definition to existing reportDetail and reportFile model (138)
  • Changed externalReference model (138)