Releases: UN-OCHA/hpc-api-core
Releases · UN-OCHA/hpc-api-core
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)
Add new permissions for project comments
Changing models to support new OCT bridges
Improvements for deletion
⚠️ BREAKING CHANGES ⚠️
- Method
createToken()
has renamed itsmodels
parameter todatabase
, in order to standardize with other similar usages
This release is focused on improving deletion of plans and entities in auth tables.
- Add new permission
DELETE_ANY_PLAN
, which is granted to HPC and RPM admins - Allow to provide a transaction to
authGrant.create
andauthGrant.update
. This method is heavily-reliant on changes happening in transaction that we now enable specifying external transaction object - Introduce auth target deletion util method
deleteAuthTarget()
and deprecate direct usage ofauthTarget.destroy()