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.
I want type strictness wherever possible - our schema has a few fields that are booleans and should be marked as such.
in case other modules are building on the flag module this change should be made as early as possible.
Here is the original drive behind this issue
This is a logic bug - without consequence ... I think --- Anyway I want to tidy it up!
From flag.schema.yml
show_on_profile is a boolean
so in the flag_follower module
flag.flag.follower.yml -> show_on_profile should not be NULL
Correct?
Comment | File | Size | Author |
---|---|---|---|
#15 | bool-2760453-15.patch | 2.67 KB | martin107 |
Comments
Comment #2
joachim CreditAttribution: joachim as a volunteer commentedThanks!
Comment #5
joachim CreditAttribution: joachim as a volunteer commentedI reverted this because it broke tests!
Comment #6
martin107 CreditAttribution: martin107 as a volunteer commented[Me: with hangdog expression ]
Do you know which one(s) .... I will investigate.
Comment #7
joachim CreditAttribution: joachim as a volunteer commentedThe errors were about the type of the value in flag_following config.
Comment #8
joachim CreditAttribution: joachim as a volunteer commentedComment #9
joachim CreditAttribution: joachim as a volunteer commentedHmmm why can't I trigger another test of the patch?
Comment #10
joachim CreditAttribution: joachim as a volunteer commentedComment #11
martin107 CreditAttribution: martin107 as a volunteer commentedMy one line patch needs reroll :)... just kidding.
I am going to unhide the patch ... to see if the test results become visible.
Comment #12
martin107 CreditAttribution: martin107 as a volunteer commentedI have repeated many tests locally but can't find any test that fails ... I want testbot to set me straight.
Comment #15
martin107 CreditAttribution: martin107 as a volunteer commentedSo in the schema there are a few mis-typed booleans I want to enforce them all.
show_as_field
show_on_form
show_contextual_links
show_on_profile
access_ui
issue summary changes:
1) To signal a
major change.departure from the original intent of the issue.2) Justify why this is an alpha blocker.
Comment #17
joachim CreditAttribution: joachim as a volunteer commentedTests are green this time, so committing!
Thanks! I really appreciate your attention to detail :)