Needs work
Project:
Drafty
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Sep 2017 at 19:12 UTC
Updated:
22 Aug 2018 at 12:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joseph.olstadthis is a preliminary patch with debug bits in it.
needs cleanup and more testing and more review.
HOWEVER, according to my preliminary tests, it appears to resolve the issue.
Followup tomorrow.
Thanks.
Comment #3
joseph.olstadhere is a patch without all the noise.
Comment #5
joseph.olstadComment #8
joseph.olstadIn my local environment this patch works fine.
not sure why the fails.
see #2911357: Fix tests; update for latest to Entity Translation changes
Comment #9
joseph.olstadsaw an opportunity for improvement.
new patch to follow soon.
Comment #10
joseph.olstadComment #12
joseph.olstadsetting this to RTBC because the errors appear to be unrelated and I'd rather not have this set to 'needs work'
Comment #13
joseph.olstadComment #14
joseph.olstadComment #15
joseph.olstadComment #16
joseph.olstadfixed tests in #2911357-11: Fix tests; update for latest to Entity Translation changes
Comment #17
joseph.olstadComment #18
joseph.olstadThe only change to this that I think this needs before committing is an admin setting to enable or disable this functionality. I would recommend that it be enabled by default.
This is a pretty important functionality for publishers that publish without using deploy. We intentionaly removed deploy and staging from our end servers and replaced it with drafy , access_unpublished and workbench_moderation , this worked great until we upgraded to workbench_moderatoin 3.x . The patch allows our publishers to once again work on drafts of published content and be able to batch publish from /admin/content when they're ready (using the ubiquitous admin_views module, haven't yet tried without it). Batch publishing for publishers is very important for press releases or major events in our case expected organizational changes of our clients that they need to publish all at once so that media and journalists can see exactly at the same moment in time the changes.
For our current client when they have a press release for this type of event there is normally 40000 hits per hour to the site during the first hour of the press release while journalists and media and the general public hit the website for the big changes that get published. Being able to tee up all the drafts before hand and bulk publish them all at once allows for the site to be ready at the exact time . Without the bulk publishing they'd need to open multiple browser windows and tabs and click several dozen times just for one event. It makes sense to have this functionality and it should be enabled by default.
The patch allows publishing new current drafts of currently published content from the /admin/content window, this makes a lot of good sense.
previously it was possible to do this in workbench_moderation 1.x but with drafty revision/moderation history logic fundamentally changed so we wrote this patch to deal with it and it does the job.
Comment #19
joseph.olstadCritical feature request for us!
It could also be considered a Bug , because this WAS possible in workbench_moderation 1.x , so it could be considered a regression in workbench_moderation 3.x (because of the drafty requirement)
Comment #20
joseph.olstadHmm, we should encapsulate this functionality around an if exists('workbench_moderation')
code block.
The code will probably break if using something other than workbench_moderation so it'd be recommended to add the if exists('workbench_moderation') block and probably to the same if statement check to make sure that CFS / CPS is not enabled.
Would have to make sure this won't cause a regression with CFS /CPS or whatever they call that module substitute for workbench_moderation
Comment #21
joseph.olstadhere's a new patch with the module_exists check.
Comment #22
damienmckennaBecause of how important stability is for this module, I'm going to have to request tests. Also, comments need to wrap at character 80.
Comment #23
joseph.olstadI was looking at the possibility of writing a test for this. It would be monstrous. Basically copy pasting the tests from admin_views would get part of it, then would maybe have to merge in some of the existing drafty/workbench_moderation test steps into this new test.
It would be one hell of a monstrous test code. However, drafty, workbench_moderation AND admin_views already have their own tests.
I suggest simply running this patch against the existing tests in workbench_moderation , drafty and admin_views , this is something I could do manually and report the test results.
another test would have to be done without admin_views enabled to see if it works without admin_views. I've looked at the patch 21, can't see any way to break it but there's lots of existing simpletests to run.
as for the comments wrapping at 80, no problem I can update that.
Comment #24
joseph.olstadthis is a bulletproof patch, we've put it into production. Works great.
using
drafty:
7.x-1.0-beta4
with these drafty patches:
#2910310-21: drafty allow publishing current draft from /admin/content page when node already published when Workbench Moderation 7.x-3.x is enabled
#2579205-117: Delete redundant revisions
#2911357-11: Fix tests; update for latest to Entity Translation changes
entity_translation 7.x-1.0-beta7
with these patches:
workbench_moderation 7.x-3.0+5-dev (2017-02-05)
with these patches:
this combination of modules works great provided that all content types are using entity_translation (field translation) instead of content translation. Content translation does not work correctly using this setup, so we upgraded all our content types to entity_translation and it's working out well.
Comment #25
jfcolomer commentedHey Joseph is that bundle of modules and patches doing the trick for you then?
I have been trying https://www.drupal.org/project/workbench_moderation/issues/2218133#comme... and others but still not luck.
The versions I am using at the moment are:
- entity_translation: 7.x-1.0-beta7
- workbench_moderation: 7.x-3.0
- drafty: 7.x-1.0-beta3
Is that still the set up of modules/versions you are working at the moment with?
Does is fix the issue not being able to edit draft translated versions then?
Thanks
Comment #26
joseph.olstadYou can use those same patches against entity_translation 1.0
There are two related patches for entity_translation
Are you also patching core as per the drafty installation instructions or using the workaround drafty sub module?
Comment #27
joseph.olstadYou have admin_views installed?
Also I specified drafty beta4 not drafty beta3
Comment #28
damienmckennaAlso, please test Drafty 1.0-rc1.