Skip to content

Change isDataLoaderCompatibleExecution in DataLoaderDispatcherInstrumentation to protected #1590

@drupalspring

Description

@drupalspring

How about changing isDataLoaderCompatibleExecution() in DataLoaderDispatcherInstrumentation to protected such that subclass can override it ?

My use-case is that I have a CustomExecutionStrategy which will delegate to different ExecutionStrategy dynamically . But when I delegate to AsyncExecutionStrategy , as the QueryStrategy in the ExecutionContext is still CustomExecutionStrategy , it causes the aggressively batching cannot be enabled as isDataLoaderCompatibleExecution() simply check for the ExecutionStrategy in the ExecutionContext is AsyncExecutionStrategy or not to enable aggressively batching . Hence I would like to override it to provide my own logic to decide when to enable aggressively batching

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions