Until now the context hierarchy, that is, the relationship between contexts, was a simple tree. Every context had just a single parent. While this hierarchy model applies to a lot of use cases and applications, it does not cover all of them. Recently we have had the need to use the RBAC library in a couple of projects where a simple tree was not enough, and we needed a full DAG to model the context hierarchy. The reason for that was that a given context needed to be related to more than one parent context at the same time.
rbac_context
table will no longer store the parent-child relationship between contexts, because that relationship now needs to be able to model a M x N type of relationship.rbac_context_parent
in the database schema below, will be added to model the M x N parent-child context relationshiprbac_context_parent
table,
** Migrate the existing parent-child relationships from the rbac_context
to the rbac_context_parent
table.
** Drop the parent_id
column from rbac_context
table.Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close