Problem/Motivation

With Drupal 9.0.8, saving a new rate limit triggers this exception:
Entity type 'Drupal\Core\Config\Entity\ConfigEntityType' is missing 'config_export' definition in its annotation
The message is not very helpful (see this issue) but it happens because RateLimitConfig does not have config_export in its annotations.

Steps to reproduce

  1. Install Drupal 9.0
  2. Install rate_limits 1.1.0
  3. Create a new rate limit config

Proposed resolution

Add a config_export key.

Remaining tasks

I will provide a patch.

CommentFileSizeAuthor
#2 rate_limits-config_export-3190865-2.patch637 bytesprudloff

Comments

prudloff created an issue. See original summary.

prudloff’s picture

Status: Active » Needs review
StatusFileSize
new637 bytes

The attached patch adds the missing key.

themodularlab’s picture

@prudloff,

I just encountered the same issue. I tested your patch (#2) and it resolves the error for me. Nice work!

themodularlab’s picture

Status: Needs review » Reviewed & tested by the community

  • e0ipso committed 12c571f on 8.x-1.x authored by prudloff
    Issue #3190865 by prudloff, themodularlab: Missing config_export on...
e0ipso’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the contribution!

e0ipso’s picture

I have also taken the chance to transition to semantic versioning. Please update to 2.0.1 with full backwards compatibility.

themodularlab’s picture

Thanks @e0ipso! and Thanks to @prudloff for the patch!

Status: Fixed » Closed (fixed)

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