First of all, thanks for this awesome set of modules.
Having tried them for the first time a little bit ago, the one thing I really thought the WB Moderation could use was the ability to visually see the changes between two revisions. I think if this module can somehow utilize the Diff(http://drupal.org/project/diff) module it would make it even greater.
Here is a sample of the visual comparison diff provides: http://test.tschannen.net/node/8/revisions/view/18/19
I'd also be happy to help with this. I can work on it and submit a patch or whatever, though I thought it'd be best to make a post to make sure no one else has started on this already. Thanks again!
Comments
Comment #1
moreorless CreditAttribution: moreorless commentedI second the motion. A diff-like comparison of revisions would be a big bonus for Workbench. The current method of shuffling between the revisions is not real user friendly.
Thanks also for the work you have put into these modules. They look to have great potential. Workflow is a critical factor for many sites but the implementation is still rather immature in Drupal 7. Hopefully Workbench will address this.
Comment #2
michaellander CreditAttribution: michaellander commentedI've got diff working. I'm working on using jquery to add checkboxes and the ability to 'compare'. Though it may be more ideal to not use jquery for that part, I just don't really know the best way to do it. I'll post a patch in the coming days.
Comment #3
binford2k CreditAttribution: binford2k commentedsubscribe.
Comment #4
binford2k CreditAttribution: binford2k commentedHey Mike, how's that patch coming?
Comment #5
michaellander CreditAttribution: michaellander commentedbinford, I'm hopefully *fingers crossed* going to have time to finish it tonight. It's honestly a rather simple patch. I've really just need to finish the jquery submit stuff. It may end up being a proof of concept for now. Some decisions will need to be made from the maintainers if we want to go with my approach, or if they want to move the diff script into their own module rather than relying on the Diff module for the additional feature.
Comment #6
binford2k CreditAttribution: binford2k commentedThe diff menu handlers work fine, so it's really just a matter of exposing that functionality in the UI. I wouldn't use jquery to do it. Add it to the forms using FAPI. You can see how it's done right in the diff module.
Right now I'm using the inline diff block and it works really well, but I'd like the ability to choose arbitrary left/right revisions too.
Comment #7
michaellander CreditAttribution: michaellander commentedYeah, but it's exposing it to the UI that I'm unsure how to do.
Comment #8
BenK CreditAttribution: BenK commentedSubscribing
Comment #9
muriqui CreditAttribution: muriqui commentedsubscribe
Comment #10
stevectorIf we do integrate directly with the Diff module we will have to account for colliding uses of hook_menu_alter() that cause node/%nid/revisions to break on unmoderated content types.
#1089834: Call to undefined function node_revision_overview()
Comment #11
BenK CreditAttribution: BenK commentedAny more progress on this?
--Ben
Comment #12
Taxoman CreditAttribution: Taxoman commentedSubscribing
Comment #13
bforchhammer CreditAttribution: bforchhammer commentedDiff would be useful. Subscribing.
Comment #14
varunarora CreditAttribution: varunarora commentedDear Steve, as you are aware Diff is currently clashing with Workbench moderation. If you could come up with an alternative to using node/%node/revisions in the hook_alter_menu() to avoid this clash, I would sincerely appreciate it!
Varun
Comment #15
Taxoman CreditAttribution: Taxoman commentedComment #16
Jeremy CreditAttribution: Jeremy commentedSubscribe.
Comment #17
nrambeck CreditAttribution: nrambeck commentedsubscribe
Comment #18
eriknewby CreditAttribution: eriknewby commentedman this would be great!
Comment #19
robeano CreditAttribution: robeano commentedI am marking this critical but not a blocker for a 1.0 release.
Comment #20
chiebert CreditAttribution: chiebert commentedsub
Comment #21
stevectorI'm working on this now and I'm running into a bit of a UI blocker. I thought I'd be repurposing the Diff column from the Diff UI as a column in the Workbench Moderation UI. This approach would yield a form within a form which is invalid HTML. See these screenshots.
http://drupal.org/files/wbm_ui_skitched.jpg
http://drupal.org/files/diff_ui_skitched.jpg
I'm not committed to reusing the Diff UI as is since the double radio buttons can be confusing so I'm open to suggestion. A new UX designer at Palantir, Patrick Grady, suggested making the rows themselves clickable (possibly with a hidden checkbox). This reminded me of Views Bulk Operations which does something similar. I'd be willing to convert this page to a View but that doesn't solve the form within a form problem.
Perhaps the the mini moderation form needs to be moved of of the table if Diff is on. Or maybe it's just always outside of the table.
Comment #22
Dave ReidMake a sub-tab off of the moderate local task called 'Diff' and put the diff code there until we can figure out a better way to do or clean this up.
node/%node/moderate
node/%node/moderate/moderate
node/%node/moderate/diff
I have code that does this already for scheduling if you need it.
Can we reserve critical for things that absolutely break workbench suite and use major instead for things we really want to get done?
Comment #23
stevectorOn it.
Comment #24
stevectorSo this gets the job done in the way #22 describes. I'm not crazy about using module_exists(). I don't see a way around it beside making this functionality a sub/spinoff module that depends on diff.
Comment #25
Refineo CreditAttribution: Refineo commentedsubscribe
Comment #26
j.slemmer CreditAttribution: j.slemmer commentedsub.
Comment #27
mariancalinro CreditAttribution: mariancalinro commentedI tested #24, and it was working for me, i could get to the diff page.
Comment #28
stevectorComment #29
knaffles CreditAttribution: knaffles commentedsubscribe
Comment #30
stijndm CreditAttribution: stijndm commentedTested #24. Works like a charm, although it would be nice if the Diff page was also part of hook_admin_path.
Comment #31
derjochenmeyer CreditAttribution: derjochenmeyer commentedPatch #24 works.
Here is a quick idea how the diff tab functionality could be integrated with the moderate tab.
Comment #32
colan+1 for the idea in #31!
Comment #33
RyanPrice CreditAttribution: RyanPrice commentedsubscribing. Is this planned for incorporation into a future release now?
Comment #34
Désiré CreditAttribution: Désiré commentedPatch #24 works here. -> RTBC +1
Comment #35
Taxoman CreditAttribution: Taxoman commentedEach revision can have its own "revision note" (the field that is only visible in edit view and not on node display) - it would be very practical if those notes were displayed either after selecting in that drop-down box _before_ clicking on compare, or even in the very drop-down menu itself? (Maybe this should be a subsequent new/separate feature request and not hold up this issue from being committed, though.)
Comment #36
rogical CreditAttribution: rogical commented+1 very much need.
Comment #37
Z2222 CreditAttribution: Z2222 commentedHas this feature been added in the dev version? In Drupal 7.9 with Workbench Moderation 7.x-1.1, I'm getting this error when enabling the Diff Module:
I'm trying to find some way to have a diff feature without the error.
Thanks
Comment #38
nrambeck CreditAttribution: nrambeck commentedCohen, I'm not sure what's causing that error, but try this. Disable the Workbench Moderation module, then enable the Diff module. If that succeeds, try re-enabling the Workbench Moderation module. Hope that works.
Comment #39
mfer CreditAttribution: mfer commentedThe patch for this is from August. Any word on the hold up on getting this in?
Comment #40
mfer CreditAttribution: mfer commentedI'm also setting this to a bug. When workbench moderation is enabled the UI for doing diffs is removed via workbench_moderation_menu_alter(). This is a bug.
Comment #41
RyanPrice CreditAttribution: RyanPrice commentedI'll echo @mfer's comments - any word on when this is being rolled into a release?
Comment #42
stevectorI've committed #24 and opened another issue in 2.x for a more thorough UI integration. #1404642: Better diff integration
Comment #43
fasdalf@fasdalf.ru CreditAttribution: fasdalf@fasdalf.ru commentedUpdated to 7.x-1.x-dev (January 14). Got an error on unused (not draft, not current public) revision view at /node%/revisions/%/view:
PHP and Drupal are in Russian language.
Comment #44
fasdalf@fasdalf.ru CreditAttribution: fasdalf@fasdalf.ru commentedForgot to change status.
Comment #45
fasdalf@fasdalf.ru CreditAttribution: fasdalf@fasdalf.ru commentedIt's EVA module. EVA+diff works, EVA+workbench_moderation works. EVA+diff+workbench_moderation fails.
Comment #47
jwilson3Not sure why this got closed, its not fixed yet!
Rerolled patch adding functionality requested in #30, so that the diff comparison page will use the admin theme, if you have one!
This "works for me" but i would also second incorporating this functionality *directly* into the workbench moderation revisions listing page, as requested in #31. Heck i might just keep working on this a bit now to see if i can figure it out.
Comment #49
jwilson3#facepalm...this did get fixed (it helps to check the latest dev).
Here's an add-on patch that *just* adds the request in #30...
Comment #50
jwilson3Was having issues getting my own patch to work predictably.
I've updated it and this version should work now.
Comment #51
iStryker CreditAttribution: iStryker commented@jwilson - Next time, do not reopen a previous fixed & committed issue. Instead open a new issue that references the previous one. The patch you created does not include the changes from the previous patch. There should be only 1 patch per issue. This makes it easier to track, apply and test.
I have created a new issue. #1786604: Add missing admin paths. Please create a new patch for that issue (I would but then I would be stealing your credit). If you do not like the name and/or description of it, change that too.
Comment #52
jwilson3Sorry 'bout that iStryker. Normally I would have done as you say in a new issue... but i originally thought this issue was closed by accident. After I realized it was actually fixed, it was just a gut-reaction to try to correct my stupid patch with one that worked. I'll try to do better next time, and follow the proper workflow (that i already know, of course ;).
Comment #55
JeebsUK CreditAttribution: JeebsUK commentedDo the previous comments from #51 and #52 mean that this is actually fixed? Just trying to follow this issue. Thanks!
Comment #56
rv0 CreditAttribution: rv0 commentedSure it's fixed and it works..
The testbot re-opened it due to the patches posted 3 years ago.
Comment #57
mtiminer CreditAttribution: mtiminer commentedHi All, sorry i'm a newbie here. Does this Diff-like enhancement work in the currently published 7x-1.4? or do i have to use the dev version and then apply the patch?
Comment #58
RyanPrice CreditAttribution: RyanPrice as a volunteer commented@mtiminer Its in the latest release, no need to apply patches yourself.
Comment #59
antonio.estevez CreditAttribution: antonio.estevez commentedIt seems like only the title and body are diffed... is there support for the comparison of field values too?
Comment #60
thedut CreditAttribution: thedut commented@antonio.estevez : I have have just tested : yes it supports the comparison of field values too.