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.3] Workflow Transitions #39325

Merged
merged 9 commits into from Dec 14, 2022
Merged

[4.3] Workflow Transitions #39325

merged 9 commits into from Dec 14, 2022

Conversation

brianteeman
Copy link
Contributor

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

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.
@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.3-dev labels Nov 28, 2022
@brianteeman brianteeman changed the title [4.2] Workflow Transitions [4.3] Workflow Transitions Nov 28, 2022
@viocassel
Copy link
Contributor

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.

1 similar comment
@jwaisner
Copy link
Member

jwaisner commented Dec 8, 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.

@jwaisner
Copy link
Member

jwaisner commented Dec 8, 2022

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Dec 8, 2022
@obuisard
Copy link
Contributor

obuisard commented Dec 11, 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

@brianteeman
Copy link
Contributor Author

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

@obuisard
Copy link
Contributor

obuisard commented Dec 11, 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!

@brianteeman
Copy link
Contributor Author

will do boss

@brianteeman
Copy link
Contributor Author

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.

@obuisard
Copy link
Contributor

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?

@brianteeman
Copy link
Contributor Author

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

@obuisard
Copy link
Contributor

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

Ok, I can do that.

obuisard and others added 3 commits December 12, 2022 15:06
* Update TransitionField.php

Extend Groupedlist rather than List

* Update TransitionField.php

Removed spaces

* Update TransitionField.php

Test if items are present before creating a group
@brianteeman
Copy link
Contributor Author

This will need you tests

@obuisard
Copy link
Contributor

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.

@obuisard
Copy link
Contributor

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

@obuisard
Copy link
Contributor

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

@viocassel
Copy link
Contributor

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.

@obuisard obuisard added this to the Joomla! 4.3.0 milestone Dec 14, 2022
@obuisard obuisard merged commit 3a11508 into joomla:4.3-dev Dec 14, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Dec 14, 2022
@obuisard
Copy link
Contributor

Thank you Brian @brianteeman !

@brianteeman
Copy link
Contributor Author

thx

@Quy
Copy link
Contributor

Quy commented Jan 5, 2023

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

39325-workflow

@Quy Quy mentioned this pull request Jan 20, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants