User Story

As an authenticated user
I want to be able to use the Drupal OOTB workflow
So that I can save drafts and have my work reviewed before it's published

Description 

Acceptance Criteria

AC 1 - Author
Given I’m an author
When I use the workflow
Then I can use the Create new draft transition
And the Needs review transition

AC 2 - Approver
Given I’m an approver
When I use the workflow
Then I can use the Create new draft transition
And the Needs review transition
And the Publish
And the Archive transition

AC 4 - Workflow applies to
Given I’m an admin
When I look at where the workflow is applied
Then i see it is applied to:

  • Custom block types

  • Media types

  • Content types

Transition name

Transition from

Role

Create new draft

  • Draft

  • Published

  • Archived

  • Author

  • Approver

Needs review

  • Draft

  • Needs review

  • Author

  • Approver

Publish

  • Draft

  • Needs review

  • Approver

Archive

  • Draft

  • Needs review

  • Published

  • Approver

Comments

alex.skrypnyk created an issue. See original summary.

alex.skrypnyk’s picture

Issue summary: View changes
fionamorrison23’s picture

Assigned: Unassigned » joshua1234511
Issue tags: +civictheme-release-1.7
alex.skrypnyk’s picture

alex.skrypnyk’s picture

alex.skrypnyk’s picture

We also need to namespace the editorial workflow with `civictheme_` prefix, so it becomes `civictheme_editorial`.

But there is an issue with https://www.drupal.org/project/drupal/issues/3088534 that assumes `editorial` workflow for the view installed by the install profile.

We need to do the following:
1. Identify where the view is installed from - standard profile or workflow moderation module etc.
2. Update this view to use `civictheme_editorial` workflow and update all filters.
3. Export the view and ship it as `config/install` config (required config since this becomes a core CivicTheme's feature).

We may also need to create an update hook for existing editorial workflows, but it would be more consistent to simply apply the configuration shipped in `config/install` to the existing site and overwrite their existing view config.

  • 7fe2648b committed on 1.x
    Issue #3415754 by joshua1234511: Add publishing workflow (#1210)
    
alex.skrypnyk’s picture

Assigned: joshua1234511 » sonam.chaturvedi
Status: Active » Needs review

alex.skrypnyk’s picture

Status: Needs review » Fixed

Implemented, tested and merged. Will be released in 1.7

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.