User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This PR prevents the trashing of workflows/stages when articles are assigned to them
Create different stages/workflows and articles assigned to them. Then try to trash the articles
Error messages when an article is in the workflow/stage
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings Libraries Front End Plugins |
Labels |
Added:
?
?
|
Title |
|
Labels |
Added:
?
|
I don't get this String either.
Don't we want lang strings, xml and params to use the wording stages rather than states?
I.e.
instead of
PLG_CONTENT_JOOMLA_FIELD_CHECK_STATES_WORKFLOW_LABEL
use
PLG_CONTENT_JOOMLA_FIELD_CHECK_STAGES_WORKFLOW_LABEL
(same for DESC)
and for
if (!$this->params->def('check_states_workflow', 1))
rather
if (!$this->params->def('check_stages_workflow', 1))
therefore instead of
name="check_states_workflow"
rather
name="check_stages_workflow"
??
I indeed can't delete a stage, but I can delete a condition transition.
Is that expected?
Resolved conflicts from that one JM
Remains eventual modification for the field name
if (!$this->params->def('check_states_workflow', 1))
rather
if (!$this->params->def('check_stages_workflow', 1))
therefore instead of
name="check_states_workflow"
rather
name="check_stages_workflow"
That param needs to be removed to use the component parameter anyhow as per my comment
Category | Administration Language & Strings Libraries Front End Plugins | ⇒ | Administration com_content Language & Strings Libraries Front End Plugins |
Category | Administration Language & Strings Libraries Front End Plugins com_content | ⇒ | Administration com_content com_workflow Language & Strings Libraries Front End Plugins |
Apply PR by Patchtester got The file marked for modification does not exist: libraries/src/Workflow/WorkflowServiceTrait.php
@franz-wohlkoenig This file also was introduced by #21585
@franz-wohlkoenig This works on CA but requires manual installation of nightly build zip. This bug should be reported to CA.
the Bug is that Nightly Build used by CA isn't the Nightly Build at https://developer.joomla.org/nightly-builds.html?
@franz-wohlkoenig I don't know exactly where bug is occurring but as you can see manual install on CA using zip from https://developer.joomla.org/nightly-builds.html is not equal to creating new site on https://launch.joomla.org/.
I have tested this item
Installed sample data
Changed an article to "archive"
Trashed the stage called "archive"
--- this has no impact on the article even though it is trashed (similar to #21752
Empty the trash - expected behaviour is to get a warning about it being used
Actual behaviour is
Error 0: 0 You can't delete the default item.
Hello,
is it the "default" stage? Because this will be checked before the number is counted.
No
The problem is, that the sample data are not migrated, I guess.
If not done in this PR, it has to go further imho: whether there are or not articles assigned to the default Joomla workflow with its stages and transitions, it should NEVER be modified/trashed/deleted/whatever.
Why? There is imho no reason to add this restrictions. I think we should not fall back and have the old and the new system implemented but we should look for a modern/better solution... Some user just don't need the default workflow, so why bother them?
sorry to be so direct, but i'm afraid that few users really needs an advanced "workflow" or whatever you call what we have now in staging
Agree with @alikon
Some user just don't need the default workflow, so why bother them?
It would be much more bothering for users who don't need custom workflows.
People needing custom workflows would know what they do and not use the default one, in the same way as we are not forced to use custom fields and totally ignore that feature.
You can't compare fields with workflow as it is somwthing on top of an extension. While a workflow is part of the extension.
You can't compare fields with workflow as it is somwthing on top of an extension. While a workflow is part of the extension.
Alas... But in any case it does not make it necessary to allow deletion of the default workflow, used or not.
And to be able to choose a default state/stage (whatever you call it) when using save2copy with a specific parameter.
I have tested this item
What I've done:
expected result:
Can't trash the assigned workflow
actual result:
workflow can be trashed
I have tested this item
testing steps:
-> Error message appeared: "This item is in use by the component."
I'll do another review tomorrow. It's changed a lot since I first reviewed this
I have tested this item
@bembelimen done ;-)
I have tested this item
1. testing steps:
created new custom workflow
created new article
used batch-function to assign the created workflow to the new created article
tried to delete this workflow
-> Error message appeared: "This item is in use by the component."
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after two successful tests. @bembelimen please resolve conflicting Files, thanks.
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-12-11 00:17:01 |
Closed_By | ⇒ | wilsonge |
Thanks :)
unable to test due to 500 error