Problem/Motivation

In Drupal 9.3.0 all config is sorted according the order of the keys in configuration mapping. During config installation it is assumed that key order is correct.

Steps to reproduce

  • Create a slick entity via the UI.
  • Add this configuration to a module or install profile
  • Notice the order change if you re-export the config after an installation.

Proposed resolution

Fix \Drupal\slick\Entity\Slick

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3255266-2.patch363 bytesalexpott

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
StatusFileSize
new363 bytes

In the schema weight is defined before label. And status doesn't need to be included in the export keys because it is added automatically by \Drupal\Core\Config\Entity\ConfigEntityType::getPropertiesToExport()

alexpott’s picture

Issue summary: View changes
gausarts’s picture

Thank you.

Slick 2.5 has dropped supporting 8.8, so less to worry.

Is it safe for the new minimum 9.2?

Sorry to ask, I don't know the consequencies of the system change :)

alexpott’s picture

This patch will work fine on Drupal 8.9.x and all Drupal 9's - so all supported versions. It's only important for Drupal 9.3.x but this doesn't rely on any new code.

You can make Slick minimally compatible with whatever you like. Currently only Drupal 9.3 and Drupal 9.2 are supported (as well as Drupal 7).

  • gausarts committed 9ebca6c on 8.x-2.x authored by alexpott
    Issue #3255266 by alexpott: Fix Slick entity information so entity doesn...
gausarts’s picture

Status: Needs review » Fixed

Ok.

Committed. Thank you for contribution.

Status: Fixed » Closed (fixed)

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