Separate the client_id from the config entity id & create a migration from D7

Created on 11 August 2023, over 1 year ago
Updated 15 March 2024, about 1 year ago

Problem/Motivation

I'm upgrading from a D7 website and I have many clients for which I do not want to change the client id. in D7 we could have uppercase letters and more characters available.

Steps to reproduce

Create a new client, in the "client id" field enter "MyClientId", try to save the form. In D7 this would work, in D9+ there is an error because upper case letters are not valid for a machine name.

Proposed resolution

I suggest we do the same thing as taxonomy vocabularies. Add a machine name field that is based on the administrative name (and not the client id) so that we can add whatever we want as a client ID while improving the readability of the config exports.

Remaining tasks

Agree, implement.

User interface changes

API changes

Data model changes

We'd be adding another property to store the machine name of the client.

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇫🇷France nod_ Lille

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024