? Language Change Documentation Required PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
28 Nov 2022

Recently there have been several people posting that they don't understand Workflows. I was reviewing my notes from the Workflows presentation I gave this year at JoomlaDay fr and I realised that we can easily remove one area of confusion.

Summary of Changes

Add a title to the options so that it is clear what they are for. It was confusing before because the displayed value is a stage but the options are a transition.

Bizaarely we must have realised this before because the Action button already adds some clarification by saying "Run Transitions"
image

NOTE: If you are using the workflow from the sample data the problems this PR fixes are more obvious

Testing Instructions

  1. Enable workflows
  2. in the article list view click on the stage
  3. in the article edit view click on the workflow

Actual result BEFORE applying this Pull Request

In the list view it is not clear that there are two different things in the list - current stage name and transitions
image

In the article view it says Workflow but it should say Workflow Stage and it is not clear that there are two different things in the list - current stage name and transitions
image

Expected result AFTER applying this Pull Request

Article List View
image

Article Edit View
image

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:
    screenshots will need updating

  • No documentation changes for manual.joomla.org needed

avatar brianteeman brianteeman - open - 28 Nov 2022
avatar brianteeman brianteeman - change - 28 Nov 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Nov 2022
Category Administration Language & Strings Layout Libraries
avatar brianteeman brianteeman - change - 28 Nov 2022
Title
[4.2] Workflow Transitions
[4.3] Workflow Transitions
avatar brianteeman brianteeman - edited - 28 Nov 2022
avatar brianteeman brianteeman - change - 28 Nov 2022
Labels Added: Language Change PR-4.3-dev
avatar viocassel viocassel - test_item - 29 Nov 2022 - Tested successfully
avatar viocassel
viocassel - comment - 29 Nov 2022

I have tested this item successfully on cf92a8d


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

avatar jwaisner jwaisner - test_item - 8 Dec 2022 - Tested successfully
avatar jwaisner
jwaisner - comment - 8 Dec 2022

I have tested this item successfully on cf92a8d


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

avatar jwaisner jwaisner - change - 8 Dec 2022
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 8 Dec 2022

RTC


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

avatar obuisard
obuisard - comment - 11 Dec 2022

I did not catch this one in time, but the TransitionField could have been modified to extend GroupediistField rather than ListField, where grouping of options is handled more elegantly and would prevent the hard coding of OPTGROUP

avatar brianteeman
brianteeman - comment - 11 Dec 2022

Do you want me to look at updating this pr with that?

avatar obuisard
obuisard - comment - 11 Dec 2022

Do you want me to look at updating this pr with that?

Actually, that would be great! Your code is perfectly valid, but since the core is the reference in terms of coding and use of the API, I would prefer we use the available tools we have. Thank you, Brian!

avatar brianteeman
brianteeman - comment - 11 Dec 2022

will do boss

avatar brianteeman brianteeman - change - 12 Dec 2022
Labels Added: ? Documentation Required
avatar brianteeman
brianteeman - comment - 12 Dec 2022

Having looked at the code I am going to pass on making the change myself and stick with my pr. Feel free of course to reject it and to submit your own.

avatar obuisard
obuisard - comment - 12 Dec 2022

Having looked at the code I am going to pass on making the change myself and stick with my pr. Feel free of course to reject it and to submit your own.

@brianteeman I do not want to close this PR because of the work that you put into it and the user benefits.
However, I still think the TransitionField.php should be updated.
There are 5 lines of code to modify and 2 to remove.
I can modify your file and commit the changes so we can save ourselves some time. Ok with you?

avatar brianteeman
brianteeman - comment - 12 Dec 2022

I would prefer it if you did it as a pr to my branch

avatar obuisard
obuisard - comment - 12 Dec 2022

I would prefer it if you did it as a pr to my branch

Ok, I can do that.

avatar brianteeman
brianteeman - comment - 12 Dec 2022

This will need you tests

avatar obuisard obuisard - test_item - 12 Dec 2022 - Tested successfully
avatar obuisard
obuisard - comment - 12 Dec 2022

I have tested this item successfully on 9cbbc25


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

avatar obuisard
obuisard - comment - 12 Dec 2022

Jacob @jwaisner, would you mind testing the PR once more as the Transition field has been updated to extend Groupedlist? Thank you very much!

avatar obuisard
obuisard - comment - 14 Dec 2022

Vio @viocassel, we need a new test for this updated PR, do you mind re-testing? Thank you!

avatar viocassel viocassel - test_item - 14 Dec 2022 - Tested successfully
avatar viocassel
viocassel - comment - 14 Dec 2022

I have tested this item successfully on 9cbbc25

👍


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

avatar obuisard obuisard - change - 14 Dec 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-12-14 20:58:21
Closed_By obuisard
avatar obuisard obuisard - close - 14 Dec 2022
avatar obuisard obuisard - merge - 14 Dec 2022
avatar obuisard
obuisard - comment - 14 Dec 2022

Thank you Brian @brianteeman !

avatar brianteeman
brianteeman - comment - 14 Dec 2022

thx

avatar Quy
Quy - comment - 5 Jan 2023

@brianteeman Can you please look into this for the frontend? Thanks.

39325-workflow

Add a Comment

Login with GitHub to post a comment