- Issue created by @Anybody
- 🇩🇪Germany Anybody Porta Westfalica
This module must be enabled if the hook runs, so we can safely enable js_cookie if it's not enabled!
Not having js_cookie enabled caused a crazy bug for us - the form input was reset on each save ... hard to find!
- Assigned to Grevil
- 🇩🇪Germany Grevil
Sorry, seems I overlooked that, when merging 📌 The js-cookie library is deprecated Fixed .
I'll get on that ASAP.
- Issue was unassigned.
- Status changed to Needs review
5 months ago 8:50am 30 August 2024 - Assigned to Grevil
- Status changed to Needs work
5 months ago 8:51am 30 August 2024 - 🇩🇪Germany Anybody Porta Westfalica
Please enable the module automatically, if not yet enabled: https://drupal.stackexchange.com/questions/269383/how-do-i-programmatica...
- 🇩🇪Germany Anybody Porta Westfalica
- Status changed to Needs review
5 months ago 9:24am 30 August 2024 - 🇩🇪Germany Grevil
@anybody I don't think that is needed. In 99.9% of all cases, they won't have the js_cookie module downloaded / required anyway. And since the need to require / download the module manually, they'll surely activate it as well right?
- 🇩🇪Germany Anybody Porta Westfalica
Nope, they should already have the (module) dependency via composer. The module just needs to be enabled.
See https://www.drupal.org/project/js_cookie/ →So implementing the auto-enabling will save a bunch of unneccessary manual work. But yes, the update message is also important to let them know they should eventually provide the lib locally.
The risk is too high that people don't read the update message and the missing dependency leads to broken functionality with hard to find bugs.
But what would really make sense is adding our requirements snippet for CDN warning at https://www.drupal.org/project/js_cookie/ →
Could you add an issue and snippet over there? Especially in terms of GDPR.
- Status changed to Needs work
5 months ago 10:01am 30 August 2024 - 🇩🇪Germany Grevil
I'll do so!
Didn't realize, that newly added dependency in the module composer.json will automatically download on update. I wonder if that is also the case if there is only the automatically created composer.json by drupal 🤔
- 🇩🇪Germany Grevil
Might make actually make more sense, if we don't even catch the error and let the update abort!
- Issue was unassigned.
- Status changed to Needs review
5 months ago 10:53am 30 August 2024 - Status changed to Fixed
5 months ago 11:00am 30 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.