Status does not reflect translation revision

Created on 18 May 2023, about 1 year ago

I'd like to preface this by saying I'm not sure if this is an actual bug, or just a difference in our expectation vs how it works by design.

Problem/Motivation

The "Status" section (e.g. "Draft Authored by joe.bloggs 45 minutes ago") at the top of the moderation sidebar does not reflect the status/author/timestamp for the current translation being viewed.

Steps to reproduce

  1. As user "joe.bloggs", create a page in the site's default language (e.g. English) and publish it.
  2. The status reads: "Published Authored by joe.bloggs 1 minute ago" (correct)
  3. As user "jane.doe", create a translation in another language (e.g. German) and save as "Draft".
  4. The status on the German translation page reads: "Draft Authored by jane.doe 1 minute ago" (correct)
  5. Navigate to the English version of the page, the status reads: "Published Authored by jane.doe 1 minute ago" (incorrect author/time)

Our preference would be that:

  • On the English version of the page, the status should read: "Published Authored by joe.bloggs 1 minute ago"
  • On the German version of the page, the status should read: "Draft Authored by jane.doe 1 minute ago"

Proposed resolution

Update which revision is used to provide the Status information.

Remaining tasks

Decide if this is actually a bug, or by design.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom a.hover

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @a.hover
  • πŸ‡¬πŸ‡§United Kingdom a.hover

    Attached is a patch created to resolve the issues we're seeing.
    We still use the original $entity value for everything else since this seems to be correct in all other cases.
    The identified $entity_latest revision is used for the status info.

Production build 0.69.0 2024