Problem

When installing the module every field is going to have custom_add_another as a dependency because the third party setting is added to all fields

Steps to reproduce

Install the module and inspect the configuration for a field

Proposed resolution

Do not store empty values and when all the values are empty do not store the third party setting at all

Remaining tasks

Code a solution

User interface changes

None

API changes

Other modules relying on the setting to exist would need to be adjusted

Data model changes

Different config storage when values are empty

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rodrigoaguilera created an issue. See original summary.

amanire’s picture

Priority: Normal » Critical

This module is a curse for sites with lots of fields. Working on a project with ~350 fields. Installing Custom brought down our production site down for an hour with "SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded" errors.

Then later while uninstalling, the module removed our Feeds module mappings. I assume due to spillover from the way that it implements third party field settings globally.

Change labels is one alternative that was apparently built specifically because of these "weak design decisions", but it has dependencies on two other modules.

Since my needs are minimal, I am replacing this functionality with a few lines of custom code. I'm changing the priority level of this issue to warn off any other site builders/devs that this module is very dangerous due to its poorly architected field schema.

amanire’s picture

Category: Feature request » Bug report
b_sharpe’s picture

Agree, this module brought our install to a standstill due to the amount of config changes required. Don't use if you have a lot of fields.

Steven Jones made their first commit to this issue’s fork.

  • Steven Jones committed 4362ed3 on 8.x-1.x
    Issue #3261690: Improve configuration storage by avoiding saving empty...
steven jones’s picture

Status: Fixed » Closed (fixed)

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