Problem/Motivation

Log 2.x added support for revisions of log entities, and used the Entity API module's RevisionRouteProvider to build the /log/%/revisions route.

https://git.drupalcode.org/project/log/-/commit/a061d7ba3498cf6393f77144...

At the time, Drupal core only provided a revisions overview route for nodes, but since then core has expanded to provide a generalized RevisionHtmlRouteProvider for any revisionable entity type (#2350939: Implement a generic revision UI).

Proposed resolution

Let's start using core's route provider instead of Entity API's.

Remaining tasks

  1. Add revision_data_table to log entity type definition.
  2. Use Drupal core RevisionHtmlRouteProvider.
  3. Open MR.

User interface changes

None.

API changes

None.

Data model changes

None.

Issue fork log-3600574

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

m.stenta created an issue. See original summary.

m.stenta’s picture

In testing this, I ran into the following issue (originally discovered by @paul121): #3596981: Uncaught PHP Exception: revision_translation_affected not found

We will need to add revision_data_table to the Log entity type definition, and provide an update hook for existing installs.

m.stenta’s picture

Issue summary: View changes
m.stenta’s picture

Status: Active » Needs review

  • m.stenta committed dd0f71ce on 4.x
    Issue #3600574: Use Drupal core RevisionHtmlRouteProvider
    
m.stenta’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

m.stenta’s picture

This change was not enough... now the revisions tab is showing "Access denied", because Drupal core's routes use different access checking than Entity API's.

I opened a follow-up issue to fix this: #3601012: Fix access to log entity revisions