Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Its not obvious that option list machine names starting with likert_ are available for the likert element
Proposed resolution
Add a boolean flag to option lists 'use as likert' that allows the likert element to use an entity query instead
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#10 | 2931888-likert-options-10.patch | 19.43 KB | jrockowitz |
| |||
#7 | 2931888-likert-options-7.patch | 19.4 KB | jrockowitz |
|
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedMaybe we need to add a 'likert' property to the WebformOptions entity and a checkbox to the WebformOptionsEntityForm that make options available to Likert elements.
Tasks
Notes
Comment #3
larowlanRight, that would make it more explicit and less magic - agree
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYes, it is time to remove some of the 'magic'. It is not a lot of work.
Comment #5
larowlanThanks, new issue title.
Ping me for a review (here is fine)
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedOne or two tests might fail and need to updated.
Comment #8
larowlanmissed the flag here?
is this needed, I think the config schema dictates this, but either way - is order that important?
can use the
isLikert
methodComment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented1. and 3. Fixed!
2. I like to maintain a consistent order for exported config because it makes it easier to scan. I also wanted these array helper functions available.
Comment #11
larowlanDo you normally add update path tests to the module?
Comment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI have not been adding update path tests. Once Webform module has an RC and stable release, I am planning on increasing test coverage and maintaining 'Change records'.
Comment #13
larowlanno worries, makes sense
this looks good to me then, thanks
Comment #15
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI like to say that "I am rounding a few corners"