Problem/Motivation

RevisionsOverviewDeriver creates local task for version history which usually appears along "View" and "Edit" tasks. Those usually use canonical as base route. RevisionsOverviewDeriver uses edit_form. This causes it's local task to disappear in many cases.

Proposed resolution

Use "entity.$entity_type_id.canonical" instead of "entity.$entity_type_id.edit_form".

Comments

slashrsm created an issue. See original summary.

slashrsm’s picture

Status: Active » Needs review
Issue tags: +Needs tests

Patch. This needs to be tested IMO.

slashrsm’s picture

StatusFileSize
new697 bytes

Meh...

dawehner’s picture

That one looks just perfect!

slashrsm’s picture

Status: Needs review » Needs work

We need to add tests.

CTaPByK’s picture

Assigned: Unassigned » CTaPByK
Status: Needs work » Needs review
StatusFileSize
new2.42 KB
new1.74 KB

I upgrade existing test RevisionRouteAccessTest, also i fix file entity_module_test.links.task.yml, i made mistake in this file yesterday...sorry for that. Test with patch is green in my localhost and test-only patch fails with error: Call to a member function click() on null.

sanja_m’s picture

Status: Needs review » Reviewed & tested by the community

I think it's OK, RTBC.

slashrsm’s picture

+1 Tried tests locally. Test only patch fails and full patch passes.

  • dawehner committed 881f388 on 8.x-1.x authored by CTaPByK
    Issue #2709489 by CTaPByK, slashrsm: RevisionsOverviewDeriver uses wrong...
dawehner’s picture

Issue tags: -Needs tests

Thank you!

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

.

  • dawehner committed 881f388 on 8.x-2.x authored by CTaPByK
    Issue #2709489 by CTaPByK, slashrsm: RevisionsOverviewDeriver uses wrong...

Status: Fixed » Closed (fixed)

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

The last submitted patch, 3: 2709489_1.patch, failed testing.

The last submitted patch, 6: 2709489-6.patch, failed testing.

Status: Closed (fixed) » Needs work

The last submitted patch, 6: test-only-2709489-6.patch, failed testing.

berdir’s picture

Status: Needs work » Closed (fixed)

Too late testbot.