Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !226

WIP: simulation: add 'frozen' state in causality workflow for documents that are no longer simulated.

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Kazuhiko Shiozaki requested to merge no_longer_simulated_state into master Jan 26, 2017
  • Overview 3
  • Commits 2
  • Pipelines 0
  • Changes 11
  • erp5_base: add frozen state and freeze transition in delivery_causality_workflow.
  • ERP5/mixin/rule.py: do nothing in _updateSimulation() if causality_state is 'frozen'.

Background :

The purpose I need this is to delete simulation trees (and avoid regeneration of simulation tree of course) for old enough documents whith we no longer want to handle at all. Since the consistency with simulation is tracked by causality_state, I choose it as the place to declare no-longer-simulated. And I choose frozen as the state id and freeze as the transition id and also give Add portal content permission to nobody and Modify portal content permission to Manager only.

But there may be use cases where we simply want to abandon simulation but still wants to modify or add sub documents etc. If so, the id of the new state and the transition should be different (but what ?).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: no_longer_simulated_state
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7