See parent issue #3200985: [meta] Fix undesirable access checking on entity query usages for context and test coverage policy.
Drupal's field_ui module allows sitebuilders to specify the cardinality of a field, the number of allowed values in that field on a single entity. When changing this setting to specify a reduced number of allowed values, for an entity type that has existing data, FieldStorageConfigEditForm::validateCardinality checks that there are not already entities that exceed the new number of allowed values.
This check should not be access sensitive.
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff_8-11.txt | 794 bytes | ravi.shankar |
#11 | 3202440-11.patch | 3.95 KB | ravi.shankar |
#8 | 3202440-8.patch | 3.94 KB | ravi.shankar |
Issue fork drupal-3202440
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
Comment #3
jonathanshawComment #4
longwaveThanks for working on these - the fix is good and the test is great!
I was going to suggest avoiding
t()
in theassertRaw()
call as elsewhere we are trying to removet()
, but as you're following the convention used earlier in the same test I think it's OK to add this here and then clean it all up in one go in the future.Comment #7
catchCommitted/pushed to 9.2.x and cherry-picked to 9.1.x, thanks!
This should probably go into 8.9.x too, but it needs a re-roll/rebase there.
Comment #8
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedAdded reroll for Drupal 8.9.x.
Comment #9
jonathanshawComment #10
renatogThis comment has more than 80 chars, please split it into a second line
// Remove the cardinality limit 4 so we can add a node the user doesn't have access to.
Example:
Comment #11
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedAddressed comment #10.
Comment #12
jonathanshawComment #13
renatogThanks, really works well. +1 to it
Comment #15
catch*than the highest delta (fixed on commit).
Committed c2af52f and pushed to 8.9.x. Thanks!
Comment #16
catch