Deprecate the Number (float), and List (float) field types and move them to contrib

Created on 24 May 2023, over 1 year ago

Problem/Motivation

Core ships IntegerItem, DecimalItem, and FloatItem field types. The core Options module adds ListIntegerItem and ListFloatItem.

This means if you want to add a field to 'store a number', you have five choices - it is overwhelming.

I don't think I have ever used FloatItem on a site, ever.

Since these are plugins, they should be straightforward to move to contrib.

When we originally added fields to core in Drupal 7, the idea was to bring in all the field types we could think of (except location co-ordinates afaict) so that people could build things just in core with fields + views. However the sheer array of similar field types undermines this a bit and makes it more likely that people will make bad choices (or get stuck), and project browser should make it easier to find and add field types from contrib.

Steps to reproduce

Proposed resolution

Deprecate both 'float' field types, leave decimal and the two integer fields for now.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
Field 

Last updated about 13 hours ago

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
  • Field UX

    Usability improvements related to the Field UI

  • Needs product manager review

    It is used to alert the product manager core committer(s) that an issue represents a significant new feature, UI change, or change to the "user experience" of Drupal, and their signoff is needed. If an issue significantly affects the usability of Drupal, use Needs usability review instead (see the governance policy draft for more information).

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024