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.
Currently, sites must be verified manually after any of their variables are set to get the new values.
Let's do this automatically after any variable changes.
This should be as easy as adding a line at the end of hosting_variables_set_site_variables():
hosting_add_task($site->nid, 'verify');
We can then remove the TODO in the README.
Comment | File | Size | Author |
---|---|---|---|
#5 | hosting_variables-remove_readme_todo-2844027-5.patch | 1.03 KB | Grimreaper |
Comments
Comment #2
GrimreaperHello,
I am currently testing commit from #2796619-3: Add support for Drupal 8 configuration
and when I submit the variables form, a verify task is triggered.
In hosting_variables/hosting_variables.module, hosting_variables_site_settings_submit():
There is a node save on the site node which then triggers in hosting/site/hosting_site.nodeapi.inc:
It seems that there is already a site verify.
Do you still want to force one in hosting_variables_set_site_variables()?
Comment #3
colanI can confirm this as well, as I discovered yesterday. I just assumed this didn't happen as it was listed as a TODO in the README.
I was thinking it may be good to also have it run during a save for #2796625: Allow remote variable setting via Aegir Services, as we're not saving a node there, but let's have the client initiate a Verify task if he/she wants.
So I can't think of anything else to do here other than update the README.
Comment #4
GrimreaperOk.
I will make the patch tomorrow.
Comment #5
GrimreaperHello,
Here is the patch. It also does a bit of formatting in the README file.
Thanks for the review.
Comment #6
GrimreaperComment #7
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commentedHi Grimreaper, Your patch regarding README changes works for me. Thanks!
Comment #9
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedThanks, committed.
Comment #10
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commentedHi helmo,
I guess you forgot to provide me RTBC credit, can you please do the needful.
Comment #11
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedComment #12
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commented