Add support for the whereBetween method in the Drupal\fluent\Collection class.
Ensure it interfaces properly with ContentEntityInterface instances.
Write tests to ensure the method works correctly when called on a collection of paragraphs or nodes.

Issue fork fluent-3395878

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dmouse created an issue. See original summary.

dmouse’s picture

tguerineau made their first commit to this issue’s fork.

tguerineau’s picture

Hi,

I've been working on the issue described here and have made progress in implementing the feature. Below is a brief overview of the changes and updates made:

1. Implementation Details: whereBetween method added in the src/Collection.php file.

2. Manual testing that I made (using Devel module):

  • Conducted tests with collections of nodes, ensuring that the method works as expected, particularly for fields within nodes.
  • Verified the functionality with non-entity items to ensure broad applicability.
  • Tests included various scenarios, including fields with simple values and more complex structures like paragraphs.
  • All tests indicate that the method behaves correctly.

3. Automated Tests: Unfortunately, I am currently facing issues with my test environment, which has prevented me from creating automated tests for these changes.

4. Merge Request: I have created a Merge Request (MR) with the code for the implemented method.

Thank you for considering these updates, and I look forward to your feedback.