Importing into a content type with Auto Entity Label configured should not fail for missing title column

Created on 7 February 2025, 8 months ago

Problem/Motivation

Given a content type with fields configured to generate an automatic label Automatic Entity Label β†’ , the CSV uploaded should not need a 'title' field.

For example, a 'Person' content type with hidden label but First Name and Last Name fields that create the title on save.

A person entering the content would never enter the title; it is hidden. Likewise for CSV import only the constituent fields that become the title should be needed.

Steps to reproduce

Proposed resolution

This is related to #3090449: Use auto_entitylabel module for automatic title β†’

But i think the request there was for a special case of using auto entity label only for the import, whereas the request here is that if a content type has Automatic Entity Label configured, CSV Importer should not incorrectly claim a title field is required.

CSV Importer skips validation, substituting its own minimal validation of insisting on a title (reasonable; Drupal requires a title/label for entities or a lot of things will blow up).

We could instead do real validation, but that would probably mess up lots of other people's use cases where the (arguable bug) of ignoring entity validation and required fields is a feature.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Comments & Activities

Production build 0.71.5 2024