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
The MonitoringCaptchaTest is failing: https://www.drupal.org/pift-ci-job/480869
Proposed resolution
Debug, find the bug and fix the test
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#13 | monitoringcaptchatest-13.patch | 3.59 KB | Ginovski |
| |||
#13 | interdiff-2808087-11-13.txt | 2.51 KB | Ginovski |
#11 | monitoringcaptchatest-2808087-11.patch | 3.78 KB | Ginovski |
#11 | interdiff-2808087-4-11.txt | 3.81 KB | Ginovski |
#6 | interdiff-2808087-4-6.txt | 282 bytes | naveenvalecha |
Comments
Comment #2
BerdirThis could be a core issue, facets also has that I think.
Comment #3
BerdirThis is wrong.
Must use $storage->create().
Comment #4
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commented1. Changed creating captcha point with storage instead.
Comment #5
ddrozdik CreditAttribution: ddrozdik as a volunteer commentedLooks correct.
Comment #6
naveenvalechaThanks committed and pushed to 8.x-1.x
Also removed the unused statement at commit.See in the interdiff attached
Comment #8
BerdirDidn't get to review.
We could get the storage out of the loop as a tiny improvement.
Also, the current logic will break trying to install captcha as part of a config deployment. The hardcoded form ids could be just default configuration in the module. the dynamic node type based ones are a bit tricky, we could either remove them or at least check for a sync, see forum_install().
And the drupal_set_message()'s there are IMHO also a bad idea. The second one is broken anyway (page cache is a module now, not a setting) and the first is weird when installing it in a config sync or install profile. Other modules don't do this either, the modules page has links to settings and help built-in.
Comment #10
naveenvalechaReverting this for now to get this fixed in appropriate way as per #8. Config sync would be right improvement to fix the config deployment.
Comment #11
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commented1. Moved storage out of the foreach loop
2. Removed hardcoded form_ids, now they are default config in the install folder.
3. Added check for a sync for the dynamic forms
4. Created a followup for the messages #2811777: Remove drupal_set_message's from captcha install
Comment #13
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commented1. Added $form_ids initialization
2. Removed uuid's from default config forms.
Comment #14
BerdirLooks good to me.
Comment #15
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #17
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commented