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
As per #2183983: Find hidden configuration schema issues, several contact module tests would fail if we turn on full schema checking. Here is a patch to expose those errors and fix them. A subset of issues there.
Proposed resolution
Find and fix the issues.
Remaining tasks
Fix them.
User interface changes
None.
API changes
None except fixed schemas.
Comment | File | Size | Author |
---|---|---|---|
#12 | 2379683-contact-schema-fix-12.patch | 5.02 KB | Gábor Hojtsy |
#5 | 2379683-contact-schema-fix-5.patch | 5.02 KB | Gábor Hojtsy |
#5 | interdiff.txt | 1.49 KB | Gábor Hojtsy |
#3 | interdiff.txt | 864 bytes | Gábor Hojtsy |
#3 | 2379683-contact-schema-fix.patch | 3.53 KB | Gábor Hojtsy |
Comments
Comment #1
Gábor HojtsyComment #3
Gábor HojtsyTwo plugin IDs were missing from the test view in views.view.test_contact_link.
Comment #5
Gábor HojtsyThe remaining fails were due to account settings forms side-effects.
1. The account settings form uses and saves to site.settings a mail_notification key which was missing.
2. The user notification for account cancellation is spelled "status_canceled" in the code. The default config and the schema spelled it with two L's ("status_cancelled"), which obviously does not match.
This should make tests pass, at least the config storage test passes fine locally.
Comment #6
vijaycs85Changes looks good.
I guess only changes related to this issue is those two elements.
is it from core test which works already?
Comment #7
Gábor Hojtsy@vijaycs85: yes, if you grep for status_cancalled you only find these two and status_canceled will lead to the actual code dealing with it :) as for the testing variable, yeah existing tests are using this and the more places we introduce it the less it is possible to make mistakes -- we can eventually default it to TRUE in core tests if all schemas are good :)
Comment #8
vijaycs85sounds good.
Comment #10
Gábor HojtsyComment #12
Gábor HojtsyReroll due to #2316909: Revisit all built-in test/default views configuration in core. Applied with offsets. Back to RTBC.
Comment #13
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 26f8d71 and pushed to 8.0.x. Thanks!