Skip to content

Releases: uzh/guardian

0.5.0

Choose a tag to compare

@github-actions github-actions released this 14 Jul 20:43
2675962

Added

  • Cache for target uuid to model resolution, so cached validations no longer require a database round trip
  • Indexes on role for guardian_actor_roles and guardian_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_duplicates runs in linearithmic instead of quadratic time
  • ActorRole.find_by_actor and find_by_target use UNION ALL; validation queries use inner joins where applicable
  • clean and delete clear the caches

Removed

  • Redundant single-column indexes that duplicated unique-constraint prefixes

Fixed

  • Version prefix of sexp dependency

0.4.0

Choose a tag to compare

@github-actions github-actions released this 09 Apr 06:07
2091882

Added

  • GitHub Actions for lint-fmt and lint-opam
  • Backend LRU cache for authentication requests

Fixed

  • Typo in the additional_pools argument for the pool initialize function

Changed

  • Updated GitHub Actions
  • Improved performance of the validation function
  • Changed argument from ~matches to ~required for the Permission.is_valid function for better clarity
  • Increased consistency for function outputs: of_string always returns an option, _exn raises exceptions, and _res returns a result

Removed

  • Deprecated start function
  • Removed guardian.opam.locked file; as this is a library, it should not have a lock file

0.3.4

Choose a tag to compare

@github-actions github-actions released this 10 Nov 08:41

Fixed

  • maintenance

0.3.3

Choose a tag to compare

@github-actions github-actions released this 03 Apr 11:41

Fixed

  • support for OCaml 5.x

0.3.2

Choose a tag to compare

@github-actions github-actions released this 21 Mar 09:40

Changed

  • use string preprocessor instead of defining and using sql functions

Deprecated

  • database start function, as no functions need to be defined anymore

0.3.1

Choose a tag to compare

@github-actions github-actions released this 22 Jan 09:57

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

Choose a tag to compare

@github-actions github-actions released this 05 Jul 15:20

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

Choose a tag to compare

@github-actions github-actions released this 30 Mar 06:46

0.1.0

Choose a tag to compare

@github-actions github-actions released this 21 Mar 11:52

💥 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