policykit / policykit

Toolkit for building governance in your online community
http://policykit.org
MIT License
130 stars 24 forks source link

Data models for PolicyTemplates and Policy components #591

Closed leijie-wang closed 1 year ago

leijie-wang commented 1 year ago

A draft version of the PolicyTemplate class and its components (CustomAction, Procedure, and Execution). All models can be reduced to a JSON object and the most basic unit is the Execution and Filter. I did not change the Policy class at this stage.

Some problems still need to be fixed: 1) how to specify the "when" condition of an Execution? 2) do we need to create a new GovernableAction for posting messages and initiating votes to represent the generic action independent of the platform? 3) the reference to Execution for success code blocks is limited because there might be multiple executions for the success code blocks.