PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-25666

Introduce new workflow states for models that are not versioned to be able tell when a publish action is the first one

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 4 results 

      Description

      There are several cases where we would need the information whether an entity (blog entry or message boards post) has just been created (i.e. added) or just updated. To solve this, we need two draft states, one that can be used before the entity is first published and a second when we're putting the entity back to draft from an already published state.

      Entities with a display date in the future will need two additional states to mark a future add or a future update. These states are between the draft states and the publish state. In this case, the background process checking for future display dates will change the state to published when the time comes.

        Issue Links

          Activity

          Hide
          Michael Saechang added a comment -

          Committed on:
          Portal 6.2.x GIT ID: bbaa3e3b5c63eb4fa5ffda3e48877f3cde58df79.

          Show
          Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: bbaa3e3b5c63eb4fa5ffda3e48877f3cde58df79.
          Hide
          Koor Gai added a comment -

          PASSED Manual Testing using the following steps:

          Blogs
          1. Add blog portlet to page
          2. Add blog entry and save as draft
          3. Publish the entry
          4. Click Edit
          5. Save as Draft
          6. Click <<Back
          7. Assert blog entry displays as a draft
          8. Click Edit
          9. Assert the blog entry is published

          Message boards
          1. Add the Message Boards portlet to page.
          2. Create a new Thread
          3 .Save as Draft
          4. Publish
          5. Click Edit
          6. Save as Draft
          7. Click <<Back
          8. Assert message displays as a draft
          9. Click Edit > Publish the message
          10. Assert the message is published
          11. Click Reply
          12. After filling "Subject" and "Body" fields click on the "Publish" button
          13. Reply again to previous Thread
          14. After filling "Subject" and "Body" fields click on the "Save as Draft" button
          15. Click <<Back
          16. Assert second reply message displays as a draft
          17. Click Edit for second reply > Publish button
          18. Assert the message is published

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x CE GIT ID: 6c9e7fe207e249a675df09752b429c5deb8267ea.

          Show
          Koor Gai added a comment - PASSED Manual Testing using the following steps: Blogs 1. Add blog portlet to page 2. Add blog entry and save as draft 3. Publish the entry 4. Click Edit 5. Save as Draft 6. Click <<Back 7. Assert blog entry displays as a draft 8. Click Edit 9. Assert the blog entry is published Message boards 1. Add the Message Boards portlet to page. 2. Create a new Thread 3 .Save as Draft 4. Publish 5. Click Edit 6. Save as Draft 7. Click <<Back 8. Assert message displays as a draft 9. Click Edit > Publish the message 10. Assert the message is published 11. Click Reply 12. After filling "Subject" and "Body" fields click on the "Publish" button 13. Reply again to previous Thread 14. After filling "Subject" and "Body" fields click on the "Save as Draft" button 15. Click <<Back 16. Assert second reply message displays as a draft 17. Click Edit for second reply > Publish button 18. Assert the message is published Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x CE GIT ID: 6c9e7fe207e249a675df09752b429c5deb8267ea.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 37 weeks, 3 days ago

                Development

                  Structure Helper Panel