Releases: UN-OCHA/hpc-api-core
Permission changes for CDM
- Change some of
global
scope permissions (#75)VIEW_OPERATION_DATA
->VIEW_ANY_OPERATION_DATA
VIEW_OPERATION_METADATA
->VIEW_ANY_OPERATION_METADATA
EDIT_FORM_ASSIGNMENT_RAW_DATA
->EDIT_ANY_FORM_ASSIGNMENT_RAW_DATA
EDIT_FORM_ASSIGNMENT_CLEAN_DATA
->EDIT_ANY_FORM_ASSIGNMENT_CLEAN_DATA
- Add new permissions (#75)
EDIT_ASSIGNMENTS_WHEN_REPORTING_WINDOW_CLOSED
EDIT_ASSIGNMENTS_WHEN_REPORTING_WINDOW_PENDING
Add data to SharedLogData
Add API version and commit SHA to log context data (#73)
Add more options to some utility methods
Add sourceProjectId column to track the source of a cloned project
New column sourceProjectId
got added to project
model (#72)
Don't include deleted data by default
When using find
and findOne
on models defined with sequelize, rows which have deletedAt
field different from null
are now excluded by default. New option includeDeleted
should be used to include virtually deleted rows (#70)
Accept empty array parameter in createMany
[BUG FIX]
When passing empty array to createMany
, error is no longer thrown, but empty array returned instead (#69)
Fix type of category.group field in model definitions
Field catagory.group
is now correctly defined as a string, fixing bug where it was defined as branded integer (#68)
Add new data fetching utility methods
Introduce new custom where condition construction
[BREAKING CHANGE]
New custom where
construction is allowing for specifying conditions like ... IS NOT NULL
, WHERE [NOT] IN ...
, LIKE ...
, WHERE BETWEEN...
, <
, >
comparison operators and more, in type-safe manner (#66)