(combined-permissions-for-object permissions entity)
Given a sequence of permissions of the form {:create ^Bool :modify ^Bool :protected-fields [^String] :writable-fields [^String]}
produces a single permission of the same form that is a combination of these, where:
Therefore, we assume that permissions are keys that open certain gates instead of closing them. If someone has write permissions to something it trumps all the lesser permissions.
Given a sequence of permissions of the form {:create ^Bool :modify ^Bool :protected-fields [^String] :writable-fields [^String]} produces a single permission of the same form that is a combination of these, where: 1. create and modify are the most permissive of all the permissions 2. protected-fields is an intersection of all protected fields (again, most permissive models) 3. writable-fields is an union of all writable-fields, most permissive model. Therefore, we assume that permissions are keys that open certain gates instead of closing them. If someone has write permissions to something it trumps all the lesser permissions.
(compute-rel-objs-to-fetch config input entities-by-name snapshot)
Creates a map of {:umbrella [uuid1, uuid2, ...], :brick [buuid1, buudi2, ...]}. The map represents all objects that should be fetched to have the input data complete.
Creates a map of {:umbrella [uuid1, uuid2, ...], :brick [buuid1, buudi2, ...]}. The map represents all objects that should be fetched to have the input data complete.
(internal-push-transaction config
incoming-json
internal-user
snapshot
entities-by-name
scoped-push-input-for-user)
(internal-push-transaction config
incoming-json
internal-user
snapshot
entities-by-name
scoped-push-input-for-user
now)
(push-transaction config
incoming-json
internal-user
snapshot
entities-by-name
scoping-edn)
(push-transaction config
incoming-json
internal-user
snapshot
entities-by-name
scoping-edn
now)
(push-transaction config
incoming-json
internal-user
snapshot
entities-by-name
original-scoping-edn
push-output
rejections
cached-snapshot-tags)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close