Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ericduran’s picture

Diff support seems good to me.

We don't use Revisioning but we do plan on adding SPS support for previewing diff on the site.

With the SPS work we're going to add State Machine (3.x) support which is very different then the Revisioning module. That being said I'm ok adding support for both.

reubenavery’s picture

Status: Active » Needs review
FileSize
12.31 KB

Here's a first go at it.

Still to-do, would like to incorporate Diff to see differences between revisions.

das-peter’s picture

First tests with patch are promising.
I assume vast parts originate from node, correct?
Re-rolled & I've found some coding standard issues as well as missing registration of paths as admin paths.
Attached patch contains the cleanup as well as the registration as admin paths.

seanB’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good! Applies perfect and adds the tab as expected.

bircher’s picture

+1 RTBC for #3

malcomio’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
2.26 KB

As I noted on #2390565: Revisions overview should show published state the revisions tab should display the published state - here's an updated patch that does it.

I've also removed some of the duplication in the date generation.

malcomio’s picture

malcomio’s picture

Looks like something went wrong with the previous patch generation - here's a revised patch.

malcomio’s picture

Status: Needs review » Needs work

In the previous patch, the published column is missing a header.

malcomio’s picture

Another issue is that reverting to a specific revision does not take effect until there is an explicit save action via the edit form.

malcomio’s picture

New patch with table headers correct, and revision ID added - given that the scheduler asks for the revision ID, it helps editors to know what that ID is.

Not sure about the best way to handle my comment in #10 about requiring an explicit save action for the revision to take effect.

malcomio’s picture

Status: Needs work » Needs review
ivansf’s picture

Last patch fails because pages.inc wasn't included

malcomio’s picture

Patches on top of patches, yuk...

Here's another attempt.

ivansf’s picture

Status: Needs review » Reviewed & tested by the community

Tested and it works just fine.

I used a clean installation and Media 2.0-dev too for selecting files.

skorzh’s picture

hmm.. the patch works good, but if I remove revision, file added in revision didn't remove from the file system. So even If I've removed file with all revisions, all files added in revisions not removed from file system.

Can anyone also check it?

malcomio’s picture

Good point - I hadn't tested deleting revisions, because the site we're using this on has a policy of wanting to store all old revisions for audit trail purposes.

I doubt I'll have time to work on this at the moment...

Kenneth Lancaster’s picture

Great patch! It works and may become very useful to a big project we are working on. If we look to implementing this more we may try and extend this more and submit some more features for it. I am also interested in incorporating the Diff module as well, and on the revisions page, it might be cool to have thumbnails if the file is an image. Anyway, right now I am getting this error:

Notice: Undefined index: new_revision in file_entity_revisions_form_file_entity_edit_alter()

which is this line of the file_entity_revisions.module:

'#default_value' => ($file_options['new_revision'] === 'new_revision'),

I'll look at this some more and make sure I did not enter something wrong. Thanks.

damianrobinson’s picture

This patch is also rolled into the patch here: https://www.drupal.org/node/2267943 which now includes workflow functionality.