I'm seeing a case where the History tab provided by the moderation-history view displays all transitions as being carried out by the user who first created the content and at the time the content was first created. The core Revision tab shows the correct user and datetime. The screenshot below shows the History and Revision tabs for the same piece of content side by side.

discrepancy

Comments

Barrett created an issue. See original summary.

barrett’s picture

Issue summary: View changes
balsama’s picture

Status: Active » Needs work
StatusFileSize
new10.05 KB
new2.8 KB

Here are two files. 3022898--views.view.moderation_history.yml contains the config for a view that adds the required relationship (and fixed the timestamp as well). You can import it on an existing site.

3022898-3.patch can be used to patch codebases being used for new sites. But this patch will also need to include an annptated Update class to automate the change. So setting to Needs work.

balsama’s picture

StatusFileSize
new7.45 KB

This patch adds a fail test for updated sites that should prove the update path when written. On Travis CI - where Lightning tests its update path, this patch should pass on HEAD and fail on all updates in the matrix.

Travis CI Job (Login Needed): https://travis-ci.com/acquia/lightning-workflow/builds/95969375
Branch name is the issue number.

phenaproxima’s picture

phenaproxima’s picture

Status: Needs work » Fixed

@bendeguz.csirmaz submitted a pull request and I have merged it in e26d755. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.