issues_by_followup_date view should default to Open status

Created on 20 February 2025, about 2 months ago

Problem/Motivation

Access to s.d.o is restricted.

The issues_by_followup_date view (which is in the Quick Links as "Issues by followup date" linking to https://security.drupal.org/issues-by-followup-date ) has an exposed filter for issue status, but the default value for it is broken which means that the view displays "all" issues by default.

It should default to "Open".

Steps to reproduce

Visit https://security.drupal.org/issues-by-followup-date (assuming you have access).

Proposed resolution

Change the defaults for the field_issue_status_value exposed filter so that only "Open" issues are selected.

Remaining tasks

Patch / MR / release etc..

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom mcdruid πŸ‡¬πŸ‡§πŸ‡ͺπŸ‡Ί

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

Comments & Activities

  • Issue created by @mcdruid
  • πŸ‡¬πŸ‡§United Kingdom mcdruid πŸ‡¬πŸ‡§πŸ‡ͺπŸ‡Ί

    I think the problem is here:

    https://git.drupalcode.org/project/securitydrupalorg/-/blob/7.x-1.x/feat...

      $handler->display->display_options['filters']['field_issue_status_value']['expose']['remember_roles'] = array(
        2 => '2',
        3 => 0,
        1 => 0,
        9 => 0,
        18 => 0,
        23 => 0,
        5 => 0,
        4 => 0,
      );
    

    Not sure if the status values have changes since this view was exported to code, but looks like the default selected value of "2" doesn't match the db any more?

    Do we need to change this to:

      $handler->display->display_options['filters']['field_issue_status_value']['expose']['remember_roles'] = array(
        'Open' => 'Open',
    );
    

    (Been a while since I looked at one of these - perhaps it needs to be numerical ids that are not reflected in the UI.. don't remember).

    I'm not certain if the view has been overridden and therefore changes to this file wouldn't actually make any difference, so I won't create a patch/MR - I am happy to if that would help though.

  • πŸ‡ΊπŸ‡ΈUnited States greggles Denver, Colorado, USA

    I think this needs someone from the DA who manage code for the site. They can adjust this in the views UI and export it to the feature.

Production build 0.71.5 2024