Make ECA more like core's watchdog

Created on 11 June 2025, 13 days ago

Problem/Motivation

The logging feature in ECA is invaluable, but works in a couple of ways that run counter to what site builders are used to with Drupal core's logging system. Namely:

  • Logged items appear in chronological order (instead of reverse chronological order), so you need to go to the last page to see the most recent log entries
  • There is no obvious way to clear existing log entries

Proposed resolution

Make the log entries appear in reverse chronological order, and provide a link or button to clear existing log entries.

Feature request
Status

Active

Version

2.1

Component

Code

Created by

🇨🇦Canada mandclu

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

Comments & Activities

  • Issue created by @mandclu
  • 🇩🇪Germany jurgenhaas Gottmadingen

    That's an interesting one. Yes, deleting ECA log entries should be provided here, I agree.

    The chronological order, though, has been chosen deliberately. The reason has been that every time you refresh the page, or go through the pager, there may already be new items which have been created by that page request. If the newest entries come first, you totally loose overview of where you've been if you need to find something down on page 2 or later. When the log entries are chronological, you always stay in the sequence where you have been, regardless of new log entries.

    You can give that a try by changing the sort order in the view that drives that page. If you have events that run on every page request, you will always get new entries at the top, and most people found that confusing.

Production build 0.71.5 2024