User tests: Successful: Unsuccessful:
[Workflow] Restore tasks:
and re-add them to backend articles manager)
Pull Request for Issue #21527
All tasks are mapped to 'publish' of AdminController,
make AdminController aware of workflow transitions
by checking if a model extension implements 'runTransition()' Method
and the run the correspoding "from-any-stage" transitions
Go to article manager select some articles and use Toolbar buttons
publish, unpublish, archive, trash
After / if this tested / merged
#21585
Then we may also improve transition selection in the controller
Buttons are in the toolbar and they work
Buttons were removed from the toolbar
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content Libraries |
Title |
|
Labels |
Added:
?
|
Title |
|
What happens when a transition doesn't exist? For example many workflows are not going to have an archived state I'd imagine...
Shouldn't we be checking the existence of the state and the ACL before displaying each button?
What happens when a transition doesn't exist? For example many workflows are not going to have an archived state I'd imagine...
You are asking exactly what i was going to comment about
See my comment in the code
(Future) query DB table #__workflow_transitions (or use API) to get (e.g. transition) [from_stage_id: -1 , condition: ContentComponent::CONDITION_PUBLISHED]
Plus there should be a new task into the AdminController for extensions using workflow, that should handle all custom transitions
It makes sense to add 1 new task button (change state) for every workflow transition from stage -1 (aka (from any stage) this way to avoid having task buttons that are not applicable for all rows
In short this is a band-aid to get old workflow working until we have a more complete solution
yes
and if you have time to do this work in the short term future , then i can close this, since as said above it is a quick fix, i made in 1 hours work to get the old task buttons back
and we can skip testing / using this completely
In my opinion they still should not be any publish/unpublish/trash button anymore, because that is not the way it works. You don't trash articles from everywhere.
There is a more sensitive solution required.
We have some ideas to bring the buttons back in a better fitting way.
they still should not be any publish/unpublish/trash button anymore, because that is not the way it works. You don't trash articles from everywhere.
i understand what you are saying,
but we need to think of the most common case scenario
which would be hide that
i mean we do not want to force workflow UI on all websites when most of them will not need it
plus it will make Joomla look more complex out of the box
We have some ideas to bring the buttons back in a better fitting way.
yes something like adding configuration to mark a transition to appear or not as toolbar button
then i ll close this for now
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-15 16:24:23 |
Closed_By | ⇒ | ggppdk |
Please wait to remove the testing code ...