? ?
avatar brianteeman
brianteeman
14 Oct 2019

Steps to reproduce the issue

Create an article and save it
Edit the article and change its state from unpublished to published
Use versions to compare the two

Expected result

Translated row called
image

Actual result

image

avatar brianteeman brianteeman - open - 14 Oct 2019
avatar joomla-cms-bot joomla-cms-bot - change - 14 Oct 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Oct 2019
avatar richard67
richard67 - comment - 15 Oct 2019

Could be caused by #26295 ? If so: I will make a PR anyway for making com_contenthistory compatible with real null dates, but this can’t be merged before PR’s for nulldates for all other components relevant for content history have been merged.

avatar richard67
richard67 - comment - 15 Oct 2019

I’ll check this tonight German time and make PR if it is the nulldate thing causing this.

avatar brianteeman
brianteeman - comment - 15 Oct 2019

Completely unrelated - this is nothing to do with dates

avatar richard67
richard67 - comment - 15 Oct 2019

I see ... well, if you discover for com_contenthistory or somewhere else some issues which are or might be related to dates, let me know.

avatar wilsonge wilsonge - change - 23 Jan 2020
Labels Added: ?
avatar wilsonge wilsonge - labeled - 23 Jan 2020
avatar alikon
alikon - comment - 12 Jun 2020

is this still an issue with the workflow v3?

avatar brianteeman
brianteeman - comment - 12 Jun 2020

Yes it is still a problem.
menu

avatar brianteeman
brianteeman - comment - 12 Jun 2020

it looks like the change is not being written to the db until you close the article?

avatar bembelimen
bembelimen - comment - 23 Oct 2020

The problem is how the workflow is implemented. The flow is the following:

  1. article gets saved
  2. workflow adjust the article based on the given plugins (transition)

Now the history is written in step 1, so it does not get the updated values.

The solution would be either to write the history after execution of the workflow or to update the history entry when transition is through.

avatar Quy Quy - change - 23 Oct 2020
Labels Added: ?
avatar Quy Quy - labeled - 23 Oct 2020
avatar brianteeman
brianteeman - comment - 24 Oct 2020

@bembelimen the reason isnt that important. What matters is that without the content history the workflow loses a major bit of functionality. Arguably its more importnat with workflows than before

avatar HLeithner
HLeithner - comment - 24 Oct 2020

OK I looked at it, 2 problems one solution.

As benjamin already said the history is saved before the workflow triggers.
Solution for this, we trigger the history save a secondtime after the workflow finished adding a "version note" -> "Workflow"

Second problem, we can't revert a version and shouldn't if the workflow is active, so solution for this.
Deactivate the revert button (functionality) in the version history if workflow is active.
It's not possible to revert all workflow plugin actions even if we can revert the stage doesn't mean that the article is in the right state. Like reverting to an stage after a plugin triggered an unrepeatable action.

avatar brianteeman
brianteeman - comment - 24 Oct 2020

Second problem, we can't revert a version and shouldn't if the workflow is active, so solution for this.

why?

Editor submits a new version. Admin check it and says no so they need to revert to the previous version

avatar wilsonge
wilsonge - comment - 18 Dec 2020

Editor submits a new version. Admin check it and says no so they need to revert to the previous version

In this case if the article is already published the editor version is also live before admin review. If the article isn't live then state won't have changed. If the state has changed between the new version and the admin publishing then you're reverting multiple versions and potentially yes you wouldn't see a rollback. Potentially I guess if there is a path in workflow to revert the workflow state maybe we should execute it (or else not allow the rollback??) But kinda unsure on that

avatar joomdonation
joomdonation - comment - 8 Apr 2021

Hello

Do we have any plan with this Release Blocker issue? Do we still want to store Status and Featured of article into version history when workflow is enabled? I just look at it and think that the following might be solution:

  • Revert PR #31518 so that Status and Featured still be stored into version history.
  • Add method onWorkflowAfterTransition into Behaviour - Versionable plugin (same with other workflow plugins). The purpose of that method is that it can get Status and Featured from the workflow and update these values to latest version history of the item being saved

Could that be solution for this issue? I don't have experience with Workflow and it's code, so I could be wrong. Just trying to move forward with the remaining Release Blocker issues.

avatar rdeutz
rdeutz - comment - 25 Apr 2021

@bembelimen can you look at this and share your thoughts please.

avatar bembelimen
bembelimen - comment - 25 Apr 2021

My opinion is still the same: Values managed by the workflow should not be changeable by the versioning. Otherwise you can publish items without having the permission (as transitions).
The correct solution would be to implement a workflow rollback (if needed at all) and not a pseudo solution which works against the whole workflow concept.
This are two worlds: workflow disabled and workflow enabled.
So my opinion is: #31518 is the proper fix and in the future we can enhance it. But again: enabling the workflow is now a decision which is made by the admin and therefore he is changing the world and have new behaviours.

avatar joomdonation
joomdonation - comment - 25 Apr 2021

If so, can we remove Release Blocker label for this issue and move forward?

avatar brianteeman
brianteeman - comment - 25 Apr 2021

Might as well remove versions if workflow is enabled then as by design you are saying they are not compatible with each other

avatar brianteeman
brianteeman - comment - 25 Apr 2021

or document it as a known limitation when working with versions and workkflow

avatar joomdonation
joomdonation - comment - 25 Apr 2021

or document it as a known limitation when working with versions and workkflow

That could work, I think. We can live with this limitation for now and wait for real life usages feedback. If users ask for a fix , we can re-visit this later.

avatar richard67
richard67 - comment - 25 Apr 2021

or document it as a known limitation when working with versions and workkflow

@bembelimen Do you think you can find the time to write such documentation? ?

avatar richard67
richard67 - comment - 25 Apr 2021

Thanks @bembelimen .

@brianteeman Is that sufficient to close the issue, or if not, can we at least remove the "Release Blocker" label?

avatar brianteeman
brianteeman - comment - 25 Apr 2021

Thanks @bembelimen

@richard67 definitely enough for removing release blocker. Would like to see it recorded as a "known issue" somehow if possible

avatar richard67 richard67 - change - 25 Apr 2021
Labels Removed: ?
avatar richard67 richard67 - unlabeled - 25 Apr 2021
avatar brianteeman brianteeman - change - 25 Apr 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-04-25 15:43:53
Closed_By brianteeman
avatar brianteeman brianteeman - close - 25 Apr 2021
avatar brianteeman
brianteeman - comment - 25 Apr 2021

Not really for me to say but if I was a new joomla user with no experience of ever using anything other than j4 but just switched on workflow and saw this problem then that would not be the place i would go. But I guess I would see it where @bembelimen wrote it. So maybe just leave it as it is.

Add a Comment

Login with GitHub to post a comment