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

Permission system done right.

Abierto
#381 0 comentarios 0 reacciones 0 asignados Ver en GitHub
blog
Lenguaje dominante
HTML
Estrellas
10
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.