Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-119712

Make WC and translations workflow independent

    Details

      Description

      Marketers need to have everything ready before publishing the article. The current behavior does not allow for having multiple translations being created and reviewed in parallel.

       

      The behavior should be the following:

      Scenario A: translations and WC workflows are disabled 

      • When a translation is published, it is merged with the WC immediately

      Scenario B: translations workflow is enabled, WC workflow is disabled

      • Once a translation is submitted for publication, it can be reviewed and when approved,  it is merged with the WC immediately
      • It is possible to submit for publication multiple languages, so the button will only be disabled for languages in the middle of the process. If userA, for example submits the Spanish translation, userB will be able to submit the french one.
      • If a translation is in the way to be reviewed and changes are made and save, the reviewer will see the latest changes.

      Scenario C: translations workflow is disabled, WC workflow is enabled

      • Once a translation is published, if the version of the WC is approved, then a new version of the WC is created and submitted for publication.
      • if the WC is in pending status and a translation is published, it will be added to the specific language and the WC will remain in "pending" status. A reviewer will see the changes already saved + the new translation added.

      Scenario D: translations workflow is enabled, WC workflow is enabled

      • Once a translation is submitted for publication, it can be reviewed and when approved, if the version of the WC is approved, then a new version of the WC is created and submitted for publication.
      • if the WC is in pending status and a translation is approved, it will be added to the specific language and the WC will remain in "pending" status. A reviewer will see the changes already saved + the new translation added.
      • It is possible to submit for publication multiple languages, so the button will only be disabled for languages in the middle of the process. If userA, for example submits the Spanish translation, userB will be able to submit the french one.
      • If a WC is in the way to be reviewed and new translations are approved, the reviewer will see the latest changes.
      • If a translation is in the way to be reviewed and changes are made and save, the reviewer will see the latest changes.

      Test Scenarios

      (Scenarios A and B are covered by tests in LPS-119964)

      ID Test Priority Test Scenarios Covered by Backend (Unit/Integration)? Test to add
      4.6 5 (Scenario C) A new version of a published WC is created and submitted for publication when a new translation is approved for that WC Yes  TranslationsWorkflow#ApproveNewTranslationForPublishedWC
      4.7 5 (Scenario C) A pending WC will be updated with a newly added translation when the translation is approved  Yes TranslationsWorkflow#ViewUpdatedWCSubmissionAfterApprovedTranslation
      4.8 5 (Scenario D) A rejected translation will not appear in a WC that is pending review  Yes TranslationsWorkflow#RejectTranslationsForDraftAndApprovedWC
      4.9 5 (Scenario D) A rejected translation will not appear in a WC that is approved Yes  TranslationsWorkflow#RejectTranslationsForDraftAndApprovedWC
      4.10 5 (Scenario D) An approved translation will appear in addition to whatever other content a WC already has that is pending review Yes  TranslationsWorkflow#ViewUpdatedWCSubmissionAfterApprovedTranslation
      4.11 5 (Scenario D) If user A submits a translation for review, user B cannot submit a translation with the same language for review until user A's submission is approved  No TranslationsWorkflow#UpdateSameTranslationAsAnotherUser

        Attachments

          Activity

            People

            Assignee:
            austin.chiang Austin Chiang
            Reporter:
            pablo.agulla Pablo Agulla
            Engineering Assignee:
            Alicia Garcia
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.3.X
                Master