Closed (fixed)
Project:
Physical Fields
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Nov 2018 at 19:50 UTC
Updated:
26 Jan 2023 at 15:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pcambraHow about this?
Comment #3
bojanz commentedIt's a good start.
We're missing updated schema (in physical.schema.yml, the field.widget.settings.* entries)
Also:
Why the mismatch, allowed_units VS available_units? I'd expect the widget setting to also be available_units.
Why are we changing this? Looks like we're still returning just the class name.
Comment #4
dinesh18 commentedFixed the below points :
1) We're missing updated schema (in physical.schema.yml, the field.widget.settings.* entries)
2) Why the mismatch, allowed_units VS available_units? I'd expect the widget setting to also be available_units.
as per comment #3
Comment #5
pcambra@bojanz, regarding the change on
getUnitClass, on my tests I've found that it was a unitinterface what I was receiving, please correct me if I'm wrong:Comment #6
pcambraComment #7
jeffschulerThis is working well and very necessary.
Much appreciated!
Comment #10
oleksiyI got the error during the configs import:
The config schema attached to the patch is not correct. The Config inspector module tells the same.
Added updated scheme to the new MR.
Comment #11
voleger#9 looks good for me
the only thing which would be nice to address is to sanitize the options of units which is not selected as allowed. That is not something that blocks the feature, widget setting properly handles such values. I suggest addressing that in the follow-up if it really requires attention.
Comment #12
voleger#10 something is unrelated to this patch as the #9 declares sequence and the message posted here showing undefined mapping. Looks like something messed up in the project configuration. And dont forget rebuild the container after applying the patch.
Comment #13
balagan commentedCreated a patch from the interdiff at #10
Comment #14
jsacksick commentedCommitted! Thanks everyone!