As content editor / developer, we are not able to identified revision id on revision form.. so we needed the revision id on the revision form/Motivation

Steps to reproduce

Goto any content node -> select revision tab ->check the revisions

Proposed resolution

Add revision id to the revision form

Example:
Any below example:
form contains information about date-time and user name with revision message, but for better understanding we required date-time; revision id and user name with revision message
current form looks like:

current-fom

proposed form will look like:

proposed-form

Issue fork diff-3338468

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mayurgajar created an issue. See original summary.

mayurgajar’s picture

Issue summary: View changes
mayurgajar’s picture

StatusFileSize
new168.92 KB

Proposed form looks like:
added below image:

mayurgajar’s picture

Issue summary: View changes
mayurgajar’s picture

StatusFileSize
new1004 bytes

Added patch for this feature request.

Along with date, we now able to see the revision id on the rows.

mayurgajar’s picture

Assigned: mayurgajar » Unassigned
Status: Active » Needs review
blanca.esqueda’s picture

Addressed the same thing but having revision id in it's own columns similar as D7
Please find the patch attached, also moved the diff button at the top.

Status: Needs review » Needs work

The last submitted patch, 7: diff-display_revision_id-3338468-7.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

silvi.addweb made their first commit to this issue’s fork.

silvi.addweb’s picture

Status: Needs work » Needs review

Raised MR for the same.

acbramley changed the visibility of the branch 8.x-1.x to hidden.

rajdip_755’s picture

StatusFileSize
new74.37 KB
new83.61 KB

Hi @silvi.addweb, I have tried to applied your MR as a patch to the latest version of the module v1.7.0 . It's successfully added the revison ID in the table. But can you explain what is the need to add the following lines.

if ($revision_count > 1) {
      $build['submit'] = array(
        '#type' => 'submit',
        '#button_type' => 'primary',
        '#value' => t('Compare selected revisions'),
        '#attributes' => array(
          'class' => array(
            'diff-button',
          ),
        ),
      );
    }

For this changes the Compare selected revisions button are coming twice side by side, which is not looking good. In the latest versions of this module there is a feature to show this button at the top of the table if there are more than 5 revisions. So that I think we should not add these lines in this PR.

I'm attaching here the screenshot of the UI before and after applying the changes of the MR.

Thanks !

rajdip_755’s picture

Status: Needs review » Needs work
rajdip_755’s picture

Hi, @silvi.addweb, could you please look into #13? If the requested changes seem feasible, we can proceed with them.