Add Date range filters for Scheduled content

Created on 27 January 2025, about 2 months ago

Problem/Motivation

Steps to reproduce

The existing filtering options in the "Scheduled Content" tabs are limited, making it difficult for users to find specific content efficiently. For example, admins cannot filter by date range, which is a common use case when managing content schedules or approvals. This results in frustration and added time spent sifting through large volumes of content.

Proposed resolution

The filtering options in the "Scheduled Content" tabs could really use an upgrade! Adding filters like a date range picker would be a game-changer, making it way easier to sort through and find content by specific time periods. This would save a ton of time for admins managing a lot of scheduled or moderated content.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.2

Component

Code

Created by

🇮🇳India anjaliprasannan

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

Merge Requests

Comments & Activities

  • Issue created by @anjaliprasannan
  • Merge request !226Date range filter. → (Open) created by Unnamed author
  • 🇮🇳India anjaliprasannan

    Created MR. Please review.

    Screenshot:

  • Pipeline finished with Success
    about 2 months ago
    Total: 637s
    #407270
  • 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan

    I have reviewed the !226 Mr and its Working Fine as per the issue requirement.
    i have attached the Screenshot For reference.

    Suggestion :
    i have one more suggestion can we include the Date selector for the range filter so we can easily filter the data.
    also added the Screenshot For the what kind of popup we can add.

  • 🇬🇧United Kingdom jonathan1055

    Hi @anjaliprasannan thanks for working on this, it is a good idea. Thank you also @prem suthar for the feedback, yes it should definitely use thr calendar pop-up.

    Three other points:

    • This change should be done for the views of all of the built-in entity types that Scheduler supports, so that would be Media, Commerce Products and Taxonomy Terms
    • The user scheduled views should also match the filters of the main admin view, so that would be Node and Media (because there are no user views for Product or Term)
    • New features should have test coverage, to prove they work. You can add new tests in tests/src/Functional/SchedulerViewsAccessTest.php
  • 🇬🇧United Kingdom jonathan1055

    You have created the filter for "authored on" but it would be equally likely that you would want to filter by the date for scheduled publishing/unpublishing. But adding that as a separate box would make the UI clumsy. It is possible to have a modular type of filter, where you choose a date (authored on, publish on, unpublish on, etc) then pick the condition and the date(s). That would give lots of flexibility and increased functionality.

  • 🇮🇳India anjaliprasannan

    @prem suthar The date picker issue is already reported in [PP-2] Use form element of type date instead textfield when selecting a date in an exposed filter Needs work and once it is fixed it would appear as date selecter.

    @jonathan1055 covered the point 1 in the commit. working on test case.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 4485s
    #408150
  • Pipeline finished with Failed
    about 1 month ago
    Total: 488s
    #409548
  • Pipeline finished with Failed
    about 1 month ago
    Total: 282s
    #409558
  • Pipeline finished with Failed
    about 1 month ago
    Total: 401s
    #409562
  • Pipeline finished with Failed
    about 1 month ago
    Total: 593s
    #409565
  • Pipeline finished with Failed
    about 1 month ago
    Total: 495s
    #409584
  • 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
  • Pipeline finished with Failed
    about 1 month ago
    Total: 405s
    #410118
  • Pipeline finished with Success
    about 1 month ago
    Total: 622s
    #410133
Production build 0.71.5 2024