dry-python / dry-python/dry-python.github.io

Permission system done right.

Open
#381 0 comments 0 reactions 0 assignees View on GitHub
blog
Dominant language
HTML
Stars
10
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Permission is an ideal example of the context contract additional rules and composition.

We have a nested story with a more strict permission rule than the wrapper story.

`user` has its place in each context contract and we attach different permission validation to it in each contract.

When the `user` will be assigned in the wrapper story, we'll run all its permission validators from all nested stories. So we'll fail early.

Some nested stories will run in the `Celery` task because of the `Delegate` feature. We can fail **that** early.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.