Port to Drupal 9 and 10

Created on 13 January 2017, over 7 years ago
Updated 16 January 2023, over 1 year ago

Problem/Motivation

User stories:

As an administrator running Drupal 9 or 10, I want to be able to ban misbehaving IP addresses from the list of database logs, so that I can curb spammers on my site.

Proposed resolution

Port the module to Drupal 9 and 10.

Remaining tasks

Note that work has already started in the 2.0.x branch.

Follow-up issues (won't be completed in this ticket):

  1. #3330657: Show ban/unban link on the log message details page β†’
  2. #3330670: BanLinkGenerator creates uncacheable links with CSRF tokens β†’

User interface changes

  1. Missing the log message details page at /admin/reports/dblog/event/{event_id} to show a ban/unban link.
  2. You will no longer see the Ban/Unban link as soon as you enable the module in the Drupal 10 version: you will need to edit the watchdog view at /admin/structure/views/view/watchdog, add a new field named "Ban/Unban link" (machine name dblog_ban_ban_unban_link) to the view, and save the modified view. Unlike Drupal 7, this new field is separate from the "Operations" column.

API changes

The module didn't really expose an API in the 7.x branches (although it consumed APIs). The 2.0.x branch adds a few services (one of which is internal to work around a core bug - don't use this one!).

Data model changes

  1. The D7 variable dblog_ban_use_ajax_links now corresponds with the key use_ajax_links in the dblog_ban.settings config object.
πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024