Download & Extend

Make node/%node/revisions/%/* local tasks

Project:Drupal core
Version:8.x-dev
Component:node system
Category:task
Priority:normal
Assigned:boombatower
Status:needs review

Issue Summary

Just as node/%node is a parent item for view, edit, delete so should node/%node/revisions/% be the parent for view, revert, delete.

Comments

#1

Assigned to:Anonymous» boombatower
Status:active» needs review
AttachmentSizeStatusTest resultOperations
1108888-node-revisions.patch1.71 KBIdlePASSED: [[SimpleTest]]: [MySQL] 29,389 pass(es).View details | Re-test

#2

Not sure if delete should be included since it isn't for node/%node/delete.

#3

Re-rolled against current head. I left delete included, although I agree that it's removal should be considered for consistency.

AttachmentSizeStatusTest resultOperations
1108888-node-revisions-rev2.patch1.44 KBIdleFAILED: [[SimpleTest]]: [MySQL] 46,554 pass(es), 19 fail(s), and 26 exception(s).View details | Re-test

#4

re-rolled with bugfix.

AttachmentSizeStatusTest resultOperations
1108888-node-revisions-rev3.patch1.51 KBIdlePASSED: [[SimpleTest]]: [MySQL] 46,606 pass(es).View details | Re-test

#5

Here's another option for consideration - rather than making the revisions actions local tasks, I put them as local actions.

AttachmentSizeStatusTest resultOperations
1108888-node-revisions-rev4.patch1.52 KBIdlePASSED: [[SimpleTest]]: [MySQL] 50,012 pass(es).View details | Re-test

#6

Status:needs review» needs work

The last submitted patch, 1108888-node-revisions-rev4.patch, failed testing.

#7

Status:needs work» needs review

#4: 1108888-node-revisions-rev3.patch queued for re-testing.

#8

#5: 1108888-node-revisions-rev4.patch queued for re-testing.

#9

Status:needs review» needs work

The last submitted patch, 1108888-node-revisions-rev4.patch, failed testing.

#10

Status:needs work» needs review

#4: 1108888-node-revisions-rev3.patch queued for re-testing.

#11

#5: 1108888-node-revisions-rev4.patch queued for re-testing.

#12

#5: 1108888-node-revisions-rev4.patch queued for re-testing.

#13

Status:needs review» reviewed & tested by the community

Patch applies correctly.

#14

#5: 1108888-node-revisions-rev4.patch queued for re-testing.

#15

Status:reviewed & tested by the community» needs review

Hm, can someone take a screenshot of what this does? I can't quite parse it from the description, nor from reading the code.

#16

Changed two cases of MENU_LOCAL_ACTION in patch to MENU_LOCAL_TASK
Shorter tab labels would be good with hover over for extra description.

AttachmentSizeStatusTest resultOperations
node_revisions-1108888-16.patch1.51 KBIdleFAILED: [[SimpleTest]]: [MySQL] 52,568 pass(es), 141 fail(s), and 28 exception(s).View details | Re-test
revsion_tabs.png12.44 KBIgnoredNoneNone

#17

Status:needs review» needs work

The last submitted patch, node_revisions-1108888-16.patch, failed testing.

#18

Status:needs work» needs review

Here are before and after shots:

Before:
drupal-node_rev_local_tasks_before-110888.png

After the patch in #4:
drupal-node_rev_local_tasks_after_comment_4-110888.png

After the patch in #5:
drupal-node_rev_local_tasks_after_comment_5-110888.png

After the patch in #16:
drupal-node_rev_local_tasks_after_comment_16-110888.png

After seeing these images, a quick comparison of the patches in #4 & #16 indicates that #16 is a re-roll of #4.

AttachmentSizeStatusTest resultOperations
drupal-node_rev_local_tasks_before-110888.png32.87 KBIgnoredNoneNone
drupal-node_rev_local_tasks_after_comment_4-110888.png35.08 KBIgnoredNoneNone
drupal-node_rev_local_tasks_after_comment_5-110888.png35.04 KBIgnoredNoneNone
drupal-node_rev_local_tasks_after_comment_16-110888.png35.08 KBIgnoredNoneNone
nobody click here