Problem/Motivation

The events view default display has an incomplete sticky filter that was introduced in commit 225cf4b ("Make views language aware"). The filter is missing its operator, value, and
group properties.

This causes sticky events to appear twice:

  • Once in the main events list (should only show non-sticky)
  • Once in the "Top Event" attachment (correctly shows sticky)

Steps to reproduce

1. Create an event node and mark it as "Sticky at top of lists"
2. Navigate to the events page
3. Observe the sticky event appears in BOTH the main list AND the "Top Event" section

Proposed resolution

In config/default/views.view.events.yml, the default display's sticky filter needs to be completed.

Current (broken):

  sticky:
    id: sticky
    table: node_field_data
    field: sticky
    entity_type: node
    entity_field: sticky
    plugin_id: boolean
  

Should be:

  sticky:
    id: sticky
    table: node_field_data
    field: sticky
    entity_type: node
    entity_field: sticky
    plugin_id: boolean
    operator: '='
    value: '0'
    group: 1
    exposed: false
  

This restores the original behavior from commit c5ee041 where non-sticky events appear in the main list and sticky events appear only in the "Top Event" section.

Remaining tasks

- Review and merge

User interface changes

Sticky events will appear only once (in "Top Event" section) instead of twice.

API changes

None.

Data model changes

None.

Issue fork la_eu-3570789

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

stmh created an issue. See original summary.

stmh’s picture

  • stmh committed 783e32bf on staging
    Issue #3570789 by stmh: Events view sticky filter is incomplete, causing...
stmh’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • stmh authored 619257ff on staging
    Issue #3570789 by stmh: Events view sticky filter is incomplete, causing...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.