Problem/Motivation
Over in #2227503: Apply formatters and widgets to Comment base fields we need a configurable email widget field size.
@catch asked to split it off here to get it in before rc1, meaning the other change can come in a minor release.
Proposed resolution
Do it
Remaining tasks
review
User interface changes
configurable field size for email widget
API changes
configurable field size for email widget
Data model changes
Additional size property for the e-mail field's default widget.
| Comment | File | Size | Author |
|---|---|---|---|
| #30 | interdiff.txt | 2.59 KB | amateescu |
| #30 | 2578741-30.patch | 7.78 KB | amateescu |
| #27 | interdiff.txt | 4.13 KB | amateescu |
| #27 | 2578741-27.patch | 7.79 KB | amateescu |
| #22 | interdiff.txt | 995 bytes | amateescu |
Comments
Comment #2
yched commentedLooks good if green.
We don't want a UI for the setting ?
Comment #5
subson commentedRe-rolling the patch with test fix.
Comment #6
subson commentedComment #7
berdirI'm pretty sure that this change isn't problematic in any way. config schema doesn't care if a property is missing and we automatically merge in widget/formatter default settings, so we can be sure that size is always set. So there is no BC break.
Comment #8
andypost+1 to rtbc
Comment #9
amateescu commentedAs mentioned in #2, we should expose this setting in the UI just like we do for other widgets.
Comment #10
cilefen commentedI do not understand why this issue is "Major" priority.
Comment #11
jonathanshaw#2227503: Apply formatters and widgets to Comment base fields is major, so if as @larowlan's IS implies that issue needs this one, then this one should be major.
Comment #12
amateescu commentedFixed #9 :)
Comment #13
swentel commentedRTBC if green
Comment #14
wim leersThis causes a data model change. There is a migration path (good), but the IS says there's no data model change (bad).
#7 explains why this is no BC break. So, leaving at RTBC.
Comment #15
alexpottI think we need to worry about existing fields here - we need to resave them so the default configuration is stored - otherwise a user will get unexpected configuration changes if they go to a field and just press save in the UI. Or we can choose to ignore this and just let it happen... but that is not how we've handled this before.
Comment #16
alexpottDiscussed with @catch and we agreed that a post update hook just to re-save email fields is the right thing to do here.
Comment #17
swentel commentedAdding the size to the summary as well.
Regarding the post update. We need to update the form displays, not the fields. Do we have an post_update place for the entity system/core somewhere ?
Comment #18
alexpottAfaics core can't a have a post update so system.post_update.php is the place to put the function.
Comment #19
amateescu commentedI would suggest field.post_update.php, that's where we put post update functions for the entity reference field, which is also provided by core.
Comment #20
amateescu commentedThis should do it :)
Comment #21
swentel commentedLooks sane to me
1. Should this be in a different upgrade docblock group ?
2. Do we need an upgrade path test for it ? (/runs)
nitpick
maybe 'email widgets' ?
Comment #22
amateescu commented1. and 3. Fixed, good catch :)
I'm not sure if these post updates are testable or not..
Comment #23
swentel commentedWell, UpdatePathRC1TestBaseTest looks at it at least.
I guess one option is to add an additional file that additionally to standard install then sets up the email field on the article, but ugh ..
We'll also have to compare with the raw version of the config seens getComponent merges in default settings, seems like a lot of hassle for this :/
Comment #27
amateescu commentedHassle or not, here it is :)
Comment #28
andypostLooks everything addressed, RTBC++
Comment #29
catchLooks great and thanks for the test coverage. Just one nit, but since it's user-facing moving to CNW.
Why input field here.
But Textfield size here. Should we not use Textfield size in both cases?
This isn't just a beta-to-beta upgrade path, it's an upgrade path from 8.0.0 to 8.1.0, but no idea what a better defgroup name is so let's leave it as is here then open a new issue to discuss.
Comment #30
amateescu commented#29.1 and .2: Fixed :)
#29.3: I see that Views also has an 8.1.0 update function (
views_update_8005()) and it's in a "updates-8.1.0" defgroup, so I also changed it in this patch in order to be consistent with that one.Comment #31
swentel commentedLooks good now, I think.
Maybe we should open issue to look at all upgrade path def groups, because I think we're not consistent everywhere, e.g. user_update_8100() ?
Comment #32
jibranPatch looks good to me too. FWIW
user_update_8100seems wrong it should beuser_update_8000. def groups are there to identify this.Comment #34
catchuser_update_8100() looks fine - it's the first user update for 8.1.x.
Patch looks better now, so committed/pushed to 8.1.x, thanks!