The access check for our "Execute pending tasks" action/route uses a special _search_api_tasks tag for triggering our custom ExecuteTasksAccessCheck service for checking the access (i.e., whether there even are any tasks).

As I've now read (and probably suspected before), this is way too complicated. We should refactor this to just use an access method on the controller itself, referenced with _custom_access in the router definition, and get rid of the separate service.

Comments

drunken monkey created an issue. See original summary.

idebr’s picture

Status: Active » Needs review

Attached patch refactors access to the search_api.execute_tasks route to a _custom_access callback on the Controller.

idebr’s picture

  • drunken monkey committed e02704a on 8.x-1.x authored by idebr
    Issue #2971619 by idebr, drunken monkey: Refactored the access check for...
drunken monkey’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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