demos-europe / edt

Enables your PHP application to expose its entities as REST resources using the feature rich JSON:API specification as API. How and to whom your entities are exposed is highly customizable while minimizing boilerplate code.
MIT License
2 stars 1 forks source link

Provide debugging utility to evaluate conditions in Drupal filter #138

Open dresslerdemos opened 3 months ago

dresslerdemos commented 3 months ago

A Drupal filter may contain multiple conditions in various groups. Reading such a filter and interpreting it can become quite difficult.

For cases, in which the data source is accessible, a command (or at least the underlying class) could be provided, that evaluates all conditions in a given Filter against a specific entity ID the data source individually. The output would be the names of the conditions and groups, with a note for each if the condition did match or not. The results for the groups would be determined using the results of the corresponding conditions.