Skip to content
Snippets Groups Projects
Commit e495fde5 authored by Alexandre Dias's avatar Alexandre Dias
Browse files

Merge branch 'ISAICP-9194' into 'develop'

ISAICP-9194: Update solutions workflow (new draft_after_published state and transitions).

See merge request digit/digit-joinup-dev!1699
parents c341e93f b21b93ed
No related branches found
Tags 2.0.1
1 merge request!195Release 2.1.0
...@@ -101,6 +101,7 @@ permissions: ...@@ -101,6 +101,7 @@ permissions:
- 'perform node:pre_moderated workflow save_new_draft transition on any entity' - 'perform node:pre_moderated workflow save_new_draft transition on any entity'
- 'perform solution_workflow workflow archive transition on any entity' - 'perform solution_workflow workflow archive transition on any entity'
- 'perform solution_workflow workflow draft transition on any entity' - 'perform solution_workflow workflow draft transition on any entity'
- 'perform solution_workflow workflow draft_after_published transition on any entity'
- 'perform solution_workflow workflow propose transition on any entity' - 'perform solution_workflow workflow propose transition on any entity'
- 'perform solution_workflow workflow update_validated transition on any entity' - 'perform solution_workflow workflow update_validated transition on any entity'
- 'pin group content' - 'pin group content'
......
...@@ -275,6 +275,7 @@ permissions: ...@@ -275,6 +275,7 @@ permissions:
- 'perform solution_workflow workflow archive transition on any entity' - 'perform solution_workflow workflow archive transition on any entity'
- 'perform solution_workflow workflow blacklist transition on any entity' - 'perform solution_workflow workflow blacklist transition on any entity'
- 'perform solution_workflow workflow draft transition on any entity' - 'perform solution_workflow workflow draft transition on any entity'
- 'perform solution_workflow workflow draft_after_published transition on any entity'
- 'perform solution_workflow workflow needs_update transition on any entity' - 'perform solution_workflow workflow needs_update transition on any entity'
- 'perform solution_workflow workflow propose transition on any entity' - 'perform solution_workflow workflow propose transition on any entity'
- 'perform solution_workflow workflow unarchive transition on any entity' - 'perform solution_workflow workflow unarchive transition on any entity'
......
...@@ -49,24 +49,27 @@ Feature: Solution moderation ...@@ -49,24 +49,27 @@ Feature: Solution moderation
# Facilitator of all the solutions. # Facilitator of all the solutions.
| William Curtis | | | William Curtis | |
Given solution content: Given solution content:
| title | description | logo | owner | contact information | state | | title | description | logo | owner | contact information | state |
| Azure Ship | Azure ship | logo.png | Angelos Agathe | Placide | draft | | Azure Ship | Azure ship | logo.png | Angelos Agathe | Placide | draft |
| The Last Illusion | The Last Illusion | logo.png | Angelos Agathe | Placide | proposed | | The Last Illusion | The Last Illusion | logo.png | Angelos Agathe | Placide | proposed |
| Rose of Doors | Rose of Doors | logo.png | Angelos Agathe | Placide | published | | Rose of Doors | Rose of Doors | logo.png | Angelos Agathe | Placide | published |
| Fire Swords | Fire Swords | logo.png | Angelos Agathe | Placide | archived | | Time Bandit | Time Bandit | logo.png | Angelos Agathe | Placide | draft_after_published |
| The Guardian of the Stream | The Guardian of the Stream | logo.png | Angelos Agathe | Placide | needs update | | Fire Swords | Fire Swords | logo.png | Angelos Agathe | Placide | archived |
| Flames in the Swords | Flames in the Swords | logo.png | Angelos Agathe | Placide | blacklisted | | The Guardian of the Stream | The Guardian of the Stream | logo.png | Angelos Agathe | Placide | needs update |
| Flames in the Swords | Flames in the Swords | logo.png | Angelos Agathe | Placide | blacklisted |
And the following solution user memberships: And the following solution user memberships:
| solution | user | roles | | solution | user | roles |
| Azure Ship | Franklin Walker | owner | | Azure Ship | Franklin Walker | owner |
| The Last Illusion | Franklin Walker | owner | | The Last Illusion | Franklin Walker | owner |
| Rose of Doors | Franklin Walker | owner | | Rose of Doors | Franklin Walker | owner |
| Time Bandit | Franklin Walker | owner |
| Fire Swords | Franklin Walker | owner | | Fire Swords | Franklin Walker | owner |
| The Guardian of the Stream | Franklin Walker | owner | | The Guardian of the Stream | Franklin Walker | owner |
| Flames in the Swords | Franklin Walker | owner | | Flames in the Swords | Franklin Walker | owner |
| Azure Ship | William Curtis | facilitator | | Azure Ship | William Curtis | facilitator |
| The Last Illusion | William Curtis | facilitator | | The Last Illusion | William Curtis | facilitator |
| Rose of Doors | William Curtis | facilitator | | Rose of Doors | William Curtis | facilitator |
| Time Bandit | William Curtis | facilitator |
| Fire Swords | William Curtis | facilitator | | Fire Swords | William Curtis | facilitator |
| The Guardian of the Stream | William Curtis | facilitator | | The Guardian of the Stream | William Curtis | facilitator |
| Flames in the Swords | William Curtis | facilitator | | Flames in the Swords | William Curtis | facilitator |
...@@ -92,27 +95,31 @@ Feature: Solution moderation ...@@ -92,27 +95,31 @@ Feature: Solution moderation
| Azure Ship | Franklin Walker | Save as draft, Propose | | Azure Ship | Franklin Walker | Save as draft, Propose |
| The Last Illusion | Franklin Walker | Propose, Save as draft | | The Last Illusion | Franklin Walker | Propose, Save as draft |
| Rose of Doors | Franklin Walker | Publish, Save as draft, Propose, Archive | | Rose of Doors | Franklin Walker | Publish, Save as draft, Propose, Archive |
| Time Bandit | Franklin Walker | Save as draft, Publish |
| Fire Swords | Franklin Walker | | | Fire Swords | Franklin Walker | |
| The Guardian of the Stream | Franklin Walker | Save as draft, Propose | | The Guardian of the Stream | Franklin Walker | Save as draft, Propose |
| Flames in the Swords | Franklin Walker | Save as draft, Propose | | Flames in the Swords | Franklin Walker | Save as draft, Propose |
# The following solutions do not follow the rule above and should be # The following solutions do not follow the rule above and should be
# testes as shown. # tested as shown.
| Azure Ship | William Curtis | Save as draft, Propose | | Azure Ship | William Curtis | Save as draft, Propose |
| The Last Illusion | William Curtis | Propose, Save as draft | | The Last Illusion | William Curtis | Propose, Save as draft |
| Rose of Doors | William Curtis | Publish, Save as draft, Propose, Archive | | Rose of Doors | William Curtis | Publish, Save as draft, Propose, Archive |
| Time Bandit | William Curtis | Save as draft, Publish |
| Fire Swords | William Curtis | | | Fire Swords | William Curtis | |
| The Guardian of the Stream | William Curtis | Save as draft, Propose | | The Guardian of the Stream | William Curtis | Save as draft, Propose |
| Flames in the Swords | William Curtis | Save as draft, Propose | | Flames in the Swords | William Curtis | Save as draft, Propose |
| Azure Ship | Isabel Banks | | | Azure Ship | Isabel Banks | |
| The Last Illusion | Isabel Banks | | | The Last Illusion | Isabel Banks | |
| Rose of Doors | Isabel Banks | | | Rose of Doors | Isabel Banks | |
| Time Bandit | Isabel Banks | |
| Fire Swords | Isabel Banks | | | Fire Swords | Isabel Banks | |
| The Guardian of the Stream | Isabel Banks | | | The Guardian of the Stream | Isabel Banks | |
| Flames in the Swords | Isabel Banks | | | Flames in the Swords | Isabel Banks | |
| Azure Ship | Tyrone Underwood | Save as draft, Propose, Publish | | Azure Ship | Tyrone Underwood | Save as draft, Propose, Publish |
| The Last Illusion | Tyrone Underwood | Propose, Save as draft, Publish, Request changes | | The Last Illusion | Tyrone Underwood | Propose, Save as draft, Publish, Request changes |
| Rose of Doors | Tyrone Underwood | Publish, Save as draft, Propose, Request changes, Blacklist, Archive | | Rose of Doors | Tyrone Underwood | Publish, Save as draft, Propose, Request changes, Blacklist, Archive |
| Time Bandit | Tyrone Underwood | Save as draft, Publish |
| Fire Swords | Tyrone Underwood | Unarchive | | Fire Swords | Tyrone Underwood | Unarchive |
| The Guardian of the Stream | Tyrone Underwood | Save as draft, Propose, Publish | | The Guardian of the Stream | Tyrone Underwood | Save as draft, Propose, Publish |
| Flames in the Swords | Tyrone Underwood | Save as draft, Propose, Publish | | Flames in the Swords | Tyrone Underwood | Save as draft, Propose, Publish |
......
...@@ -23,6 +23,8 @@ solution_workflow: ...@@ -23,6 +23,8 @@ solution_workflow:
published: published:
label: Published label: Published
published: true published: true
draft_after_published:
label: Draft
needs_update: needs_update:
label: Needs update label: Needs update
blacklisted: blacklisted:
...@@ -33,8 +35,14 @@ solution_workflow: ...@@ -33,8 +35,14 @@ solution_workflow:
transitions: transitions:
draft: draft:
label: Save as draft label: Save as draft
from: [ __new__, draft, proposed, published, needs_update, blacklisted ] from: [ __new__, draft, proposed, needs_update, blacklisted ]
to: draft to: draft
# This state is meant to allow facilitators to publish changes directly
# to a solution that has already been approved before (by a moderator).
draft_after_published:
label: Save as draft
from: [ draft_after_published, published ]
to: draft_after_published
propose: propose:
label: Propose label: Propose
from: [ __new__, draft, proposed, published, needs_update, blacklisted ] from: [ __new__, draft, proposed, published, needs_update, blacklisted ]
...@@ -47,7 +55,7 @@ solution_workflow: ...@@ -47,7 +55,7 @@ solution_workflow:
# But cannot approve proposed changes. # But cannot approve proposed changes.
update_validated: update_validated:
label: Publish label: Publish
from: [ published ] from: [ draft_after_published, published ]
to: published to: published
needs_update: needs_update:
label: Request changes label: Request changes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment