SDR + Views : results not ordered as expected if date filter greater than 03-31-2024

Created on 26 February 2024, 10 months ago
Updated 18 April 2024, 8 months ago

Problem/Motivation

  • I create a content type with a Smart Date Range field (unlimited values), where Allow reccurring date values is checked and Months to extend equals to 24.
  • I create a new content (see content form attached) called L'ARBRE. When I save it, the results displayed are correct (see node display attached).
  • I create a view with a simple display (see views display attached), which has a contextual filter on Smart Date Range field (format YYYY-MM-DD).

If the filter date is less than or equal to 2024-03-31, the result is always correct, whatever the date (see Views result 1 attached).
if the filter date is greater than or equal to 2024-04-01, the event appears at the bottom of the list (see Views result 2 attached) and does not appear at all if it is a Friday (see Views result 3 attached), i.e. the last day of the selected days in the SDR advanced fieldset.
This issue does not occur if All day is unchecked.

Steps to reproduce

  1. Create a content type with a SDR field a described above.
  2. Create a new content (see content form attached).
  3. Create a view with a display (see views display attached).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: works as designed

Version

4.0

Component

Smart Date Recur

Created by

🇫🇷France brulain

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

Comments & Activities

  • Issue created by @brulain
  • 🇫🇷France brulain

    Hi,
    Do you need more informations ?
    Best.

  • 🇮🇳India aman1248

    Need More Info Regarding the Time in the view on filter

  • 🇫🇷France brulain

    Hi,
    In the form, the "All day" checkbox is checked, so we cannot provide time: as shown on the first print screen, the time field is disabled.

  • 🇨🇦Canada mandclu

    @brulain I can understand why having the output not in the order you expect is not ideal, but I hardly think that justifies filing this as a major bug.

    I would suggest revisiting your view configuration. Based on the issue summary, it isn't entirely clear how you expect the entries to be sorted, except that it should apparently match the first set of results.

    Have you tried making the date field the primary sort key?

  • 🇫🇷France brulain

    @mandclu Thanks for your answer.

    I can understand why having the output not in the order you expect is not ideal

    Not only the order: as I mentionned above, it doesn't appear at all on Friday.

    I would suggest revisiting your view configuration. Based on the issue summary, it isn't entirely clear how you expect the entries to be sorted, except that it should apparently match the first set of results.

    Have you tried making the date field the primary sort key?

    I made another very simple display, with the exact same result (see simple display attached).

    I am not sure you really looked at my post. If so, tell me if you need any other information to move forward.

  • 🇫🇷France brulain

    Hi,

    Very weird: since April 1st, everything is working properly again.
    You can close this issue.

    Best.

  • Status changed to Closed: works as designed 8 months ago
Production build 0.71.5 2024