[PP-1] Make the conditions in joins in dynamic queries use Condition objects in the Views module

Created on 10 February 2024, 9 months ago

Problem/Motivation

The conditions in joins in dynamic queries can be and are mostly SQL strings. The conditions can also be a Condition object, like they are in Select queries. The problem is that MongoDB does not support SQL strings.

// MongoDB does not support SQL string conditions.
$connection = \Drupal::database();
$query = $connection->select('node', 'n');
$query->join('inner', 'comment', 'c', '[n].[nid] = [c].[nid]');

In πŸ“Œ Make the conditions in joins in dynamic queries use Condition objects Needs review we changed it all modules with the exception of the views module. This issue is about doing the same for the views module.

Proposed resolution

Make the conditions in joins in dynamic queries use Condition objects in the Views module

Merge request link

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

None

Release notes snippet

TBD

πŸ“Œ Task
Status

Postponed

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 11 hours ago

Created by

πŸ‡³πŸ‡±Netherlands daffie

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

Comments & Activities

Production build 0.71.5 2024