[PUBTSKCONF-5] Revert logic introduced by PUBTSKCONF-2 Created: 26/Apr/23  Updated: 26/Apr/23  Resolved: 26/Apr/23

Status: Closed
Project: Publication Task Configuration
Component/s: None
Affects Version/s: 6.1.1
Fix Version/s: 6.1.2

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Richard Gange
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.75h
Original Estimate: Not Specified

Issue Links:
relation
supersession
supersedes PUBTSKCONF-4 Missing requestor throws null pointer Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

PUBTSKCONF-2 added the ability to check for auto-approve as a subgroup. However, the changes create an issue with the SSO module and tasks which are missing a requestor.

Revert the changes made in PUBTSKCONF-2. A better approach is to configure a second action which does not call workflow but publishes immediately.

Workaround
You can configure another publish action on the pages app which does not call workflow.

There will be a new publish action in the actionbar called "Approved publish" or something similar. Limit the action by role so that way not all users have access to it.

Using a decoration:

subApps:
  browser:
    actions:
      approvedPublish:
        label: Approved publish
        icon: icon-publish
        $type: jcrCommandAction
        command: publish
        catalog: default
        availability:
          writePermissionRequired: true
          access:
            roles:
              publisher: publisher
          rules:
            notDeleted: &notDeleted
              $type: jcrIsNotDeletedRule
            isPublishable: &isPublishable
              $type: jcrPublishableRule

    actionbar:
      sections:
        - name: crud
          groups:
            - name: publish
              items: !override
                - name: publish
                - name: approvedPublish
                - name: publishRecursive
                - name: unpublish

Generated at Mon Feb 12 10:32:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.