πŸ‡¨πŸ‡­Switzerland @nadja_stu

Account created on 15 June 2023, almost 2 years ago
#

Merge Requests

Recent comments

πŸ‡¨πŸ‡­Switzerland nadja_stu

I am also waiting for a drupal 11 compatible release. When can we expect it?
Thank you!

πŸ‡¨πŸ‡­Switzerland nadja_stu

There is already an issue for a drupal 11 compatible release. I am therefore closing this issue. Thanks.

πŸ‡¨πŸ‡­Switzerland nadja_stu

nadja_stu β†’ made their first commit to this issue’s fork.

πŸ‡¨πŸ‡­Switzerland nadja_stu

Looking good!

πŸ‡¨πŸ‡­Switzerland nadja_stu

Is there a reason these changes are not yet released? It seems to be enough to only adjust the version requirement in the info.yml file.
Or am I missing something?

πŸ‡¨πŸ‡­Switzerland nadja_stu

Thank you, I corrected the Hook and the version requirement according your suggestions.

πŸ‡¨πŸ‡­Switzerland nadja_stu

Hi @avpaderno,
Please correct me if i got it wrong.
So you are saying that there is no need to define it in the services.yml file, because it is autowired, correct?
But it is required if I want to provide backwards-compatible hook implementations, isn't it?

Currently I implemented it as described in Backwards-compatible Hook implementation for Drupal versions from 10.1 to 11.0 β†’

So what excatly would you change?
Should I split it in two branches, so I have two versions one for Drupal 11.0.x and one for Drupal 11.x? Similar to what I saw in the NodeHooks example?
Like you said one with the backwards-compatible version for 11.0.x and one with a correctly implemented autowire service for 11.x?

Sorry for my confussion, but I really want to learn how to do it the right way. Thank you so much!

πŸ‡¨πŸ‡­Switzerland nadja_stu

According to this issue: https://www.drupal.org/project/drupal/issues/3493453 πŸ“Œ [meta] Clean up hook classes in core Active , there is not yet a proper practice for dependency injection in hook classes. Therefore I checked how they did it in Core. They didn't use any dependency injection there. So I figured I wait until I can do it correct rather than just do it.
What are your thoughts on this?

πŸ‡¨πŸ‡­Switzerland nadja_stu

Hi,
Thank you both for claryifing.

I added a queue worker to my project to send the emails. I also implemented the cron hook as a class (including backwards-compatibility).

πŸ‡¨πŸ‡­Switzerland nadja_stu

Hi @alvarodemendoza,

Thanks for reviewing. I am not sure I understand you correctly. Would you use a queue worker/batch process to load all the user? Or would you use it for sending the mail? Or maybe for both those actions?

Thank you very much

πŸ‡¨πŸ‡­Switzerland nadja_stu

Fix the following phpcs warnings and errors:

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,yml  multisite_manager_tool/

FILE: \multisite_manager_tool\multisite_manager_tool.module
--------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------------------
  1 | ERROR | [x] Missing file doc comment
 10 | ERROR | [x] Missing function doc comment
 11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 12 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 13 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 14 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
 15 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
 16 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
 18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 18 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found
    |       |     6
 19 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
 19 | ERROR | [x] Closing brace indented incorrectly; expected 0 spaces, found
    |       |     1
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
 18 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found
    |       |     6
 19 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
 19 | ERROR | [x] Closing brace indented incorrectly; expected 0 spaces, found
    |       |     1
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: \multisite_manager_tool.permissions.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 9 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: \multisite_manager_tool\src\SitesHelper.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
 116 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
 116 | ERROR | [x] Object operator not indented correctly; expected 10 spaces
     |       |     but found 8
 117 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
 118 | ERROR | [x] Whitespace found at end of line
 119 | ERROR | [x] Whitespace found at end of line
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
πŸ‡¨πŸ‡­Switzerland nadja_stu

Thank you for reviewing. I corrected the above mentioned points.

πŸ‡¨πŸ‡­Switzerland nadja_stu

the error is still appearing for my site too. I have drupal 11.0.9 installed and mailchimp 3.0.0.

I get this error: TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in mailchimp_get_lists() (line 176 of modules\contrib\mailchimp\mailchimp.module).

My whole site is not working because of this.

πŸ‡¨πŸ‡­Switzerland nadja_stu

I had the same issue with jquery ui menu and jquery ui autocomplete, this patch from here: https://www.drupal.org/project/jquery_ui_autocomplete/issues/3463117#comment-15695667 πŸ› Jquery UI unresolved dependency error Needs review

In combination with this patch for jquery ui menu worked for me: https://www.drupal.org/project/jquery_ui_menu/issues/3463116#comment-15739413 πŸ› Jquery UI unresolved dependency error Needs review

πŸ‡¨πŸ‡­Switzerland nadja_stu

I needed to do it like this (see attached patch file) to make it work for me.

Production build 0.71.5 2024