Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Also, see what can be done with integrating with Diff and Revisioning contrib modules.
Comment | File | Size | Author |
---|---|---|---|
#14 | files_ought_to_have_a-2097975-14.patch | 14.26 KB | malcomio |
#11 | files_ought_to_have_a-2097975-11.patch | 6.81 KB | malcomio |
#8 | file_revision_tab-2097975-7.patch | 12.94 KB | malcomio |
#7 | files_ought_to_have_a-2097975-6.patch | 6.81 KB | malcomio |
#6 | interdiff-2097975-3-6.txt | 2.26 KB | malcomio |
Comments
Comment #1
ericduran CreditAttribution: ericduran commentedDiff 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.
Comment #2
reubenavery CreditAttribution: reubenavery commentedHere's a first go at it.
Still to-do, would like to incorporate Diff to see differences between revisions.
Comment #3
das-peter CreditAttribution: das-peter commentedFirst 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.
Comment #4
seanBPatch looks good! Applies perfect and adds the tab as expected.
Comment #5
bircher+1 RTBC for #3
Comment #6
malcomio CreditAttribution: malcomio commentedAs 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.
Comment #7
malcomio CreditAttribution: malcomio commentedComment #8
malcomio CreditAttribution: malcomio commentedLooks like something went wrong with the previous patch generation - here's a revised patch.
Comment #9
malcomio CreditAttribution: malcomio commentedIn the previous patch, the published column is missing a header.
Comment #10
malcomio CreditAttribution: malcomio commentedAnother issue is that reverting to a specific revision does not take effect until there is an explicit save action via the edit form.
Comment #11
malcomio CreditAttribution: malcomio commentedNew 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.
Comment #12
malcomio CreditAttribution: malcomio commentedComment #13
ivansf CreditAttribution: ivansf commentedLast patch fails because pages.inc wasn't included
Comment #14
malcomio CreditAttribution: malcomio commentedPatches on top of patches, yuk...
Here's another attempt.
Comment #15
ivansf CreditAttribution: ivansf commentedTested and it works just fine.
I used a clean installation and Media 2.0-dev too for selecting files.
Comment #16
skorzhhmm.. 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?
Comment #17
malcomio CreditAttribution: malcomio commentedGood 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...
Comment #18
Kenneth Lancaster CreditAttribution: Kenneth Lancaster commentedGreat 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.
Comment #19
damianrobinson CreditAttribution: damianrobinson commentedThis patch is also rolled into the patch here: https://www.drupal.org/node/2267943 which now includes workflow functionality.