Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Add default stages/transitions when creating a new workflow #21963

Merged

Conversation

bembelimen
Copy link
Contributor

Pull Request for Issue #21819 .

Summary of Changes

When creating a new workflow now all default stages (publish, unpublished, trashed, archived) and transitions (unpublish, publish, trash, archive) will be created (instead of only "published").

(And yes, transitions are not translated yet, will come after #21939)

Testing Instructions

  • Go to Content => Workflows
  • Create a new workflow
  • Check the stages created with the workflow
  • Check the transitions created with the workflow

Expected result

  • 4 stages (unpublished, published, trashed, archived)
  • 4 transitions (unpublish, publish, trash, archive)

Actual result

  • only one new stage (published)

@bembelimen bembelimen changed the title [4.0] Workflow translate new workflow stage [4.0] Add default stages/transitions when creating a new workflow Sep 2, 2018
@ghost ghost mentioned this pull request Sep 2, 2018
@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on c2ad939

perfect thanks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21963.

@@ -104,21 +105,64 @@ public function save($data)

$result = parent::save($data);

// Create a default stage
// Create a default stages/transitions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very minor but ==>
Create default stages/transitions

@chmst
Copy link
Contributor

chmst commented Sep 5, 2018

I have tested this item ✅ successfully on 2b68b26


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21963.

@ghost
Copy link

ghost commented Sep 5, 2018

@brianteeman can you please retest?

@zero-24 zero-24 dismissed brianteeman’s stale review September 7, 2018 09:11

Typo has been fixed.

@zero-24 zero-24 added this to the Joomla 4.0 milestone Sep 7, 2018
@zero-24 zero-24 added the RTC This Pull Request is Ready To Commit label Sep 7, 2018
@joomla-cms-bot joomla-cms-bot removed this from the Joomla 4.0 milestone Sep 7, 2018
@zero-24
Copy link
Contributor

zero-24 commented Sep 7, 2018

Moving to RTC as the only change after Brians test was the inline comment changed. Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21963.

@zero-24 zero-24 added this to the Joomla 4.0 milestone Sep 7, 2018
@wilsonge wilsonge merged commit 112859d into joomla:4.0-dev Sep 7, 2018
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 7, 2018
@wilsonge
Copy link
Contributor

wilsonge commented Sep 7, 2018

I'm not convinced by default we should have an archived state in the default flow. but merging for now

brianteeman pushed a commit to brianteeman/joomla-cms that referenced this pull request Sep 8, 2018
…omla#21963)

* Make the new stage from a new workflow translateable

* Create the default workflow stages/transitions when creating a new workflow

* Typo fix
@bembelimen bembelimen deleted the workflow-translate-new-workflow-stage branch December 30, 2018 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants