Releases: uzh/guardian
Releases · uzh/guardian
Release list
0.5.0
Added
- Cache for target uuid to model resolution, so cached validations no longer require a database round trip
- Indexes on
roleforguardian_actor_rolesandguardian_actor_role_targets
Changed
- Cache invalidation for a single actor now bumps a per-actor generation (and a global epoch for full clears) instead of scanning the whole cache; keys are snapshotted when a validation starts so an invalidation that races an in-flight validation is not lost
- Role permission changes invalidate the cache in one step instead of querying and clearing all affected actors
PermissionOnTarget.remove_duplicatesruns in linearithmic instead of quadratic timeActorRole.find_by_actorandfind_by_targetuseUNION ALL; validation queries use inner joins where applicablecleananddeleteclear the caches
Removed
- Redundant single-column indexes that duplicated unique-constraint prefixes
Fixed
- Version prefix of sexp dependency
0.4.0
Added
- GitHub Actions for
lint-fmtandlint-opam - Backend LRU cache for authentication requests
Fixed
- Typo in the
additional_poolsargument for the poolinitializefunction
Changed
- Updated GitHub Actions
- Improved performance of the validation function
- Changed argument from
~matchesto~requiredfor thePermission.is_validfunction for better clarity - Increased consistency for function outputs:
of_stringalways returns anoption,_exnraises exceptions, and_resreturns aresult
Removed
- Deprecated
startfunction - Removed
guardian.opam.lockedfile; as this is a library, it should not have a lock file
0.3.4
0.3.3
0.3.2
Changed
- use string preprocessor instead of defining and using sql functions
Deprecated
- database
startfunction, as no functions need to be defined anymore
0.3.1
Added
- role assingment base structure for specifiying which role can assign which ones
Removed
- old unused database tables
Fixed
- package deprecation warnings
0.2.0
Added
- helper functions on backend for integrated guardian usage
Changed
- extract roles into separate table
- rework relations
- combine "find checker" functions
- optimised validate function
0.1.1
0.1.0
💥 The start of using the changelog. Preparations for our version 0.1.0.
Added
- deployment for new releases and documentation
Changed
- typified the guardian library