A Hydra-based Rails Engine that extends an application, adding the ability to Create, Read, Update and Destroy (CRUD) objects (based on Hydra::Works) and providing a generator for defining object types with custom workflows, views, access controls, etc.
Other
15
stars
27
forks
source link
Allow workflow states to suppress visibility #1028
Configuration for workflow states should allow suppression of objects in that state.
Expected behavior
If a workflow configures that objects in state A are suppressed, then any objects in that state will not be visible to public users even if object.visiblity == PUBLIC. For logged in users, visibility will be dependent on their role in the workflow.
New Work
update workflow configuration to be allow states to set suppressed=TRUE|FALSE (exact syntax TBD)
update solr indexing to add suppressed flag (This is a solr supported feature, but I couldn't find the doc with a quick search.)
update abilities for roles that includes a check of the suppressed flag
* public users never see any object that are suppressed
* admins can see all objects even if suppressed
UI badge that indicates the object is suppressed that shows to right of visibility badge on show pages and in lists
Descriptive summary
Version: 0.7.x
Configuration for workflow states should allow suppression of objects in that state.
Expected behavior
If a workflow configures that objects in state A are suppressed, then any objects in that state will not be visible to public users even if
object.visiblity == PUBLIC
. For logged in users, visibility will be dependent on their role in the workflow.New Work
suppressed=TRUE|FALSE
(exact syntax TBD)Related work
TBD