Account created on 14 May 2011, over 13 years ago
#

Merge Requests

More

Recent comments

🇫🇷France pbonnefoi

Thanks for your help ! Indeed, it seems rather difficult to write a functional test since this bug is a combination of core and paragraphs.

🇫🇷France pbonnefoi

Patch worked for me on Drupal 10.3 and Drupal 11.

🇫🇷France pbonnefoi

I tried the patch from 3258535-2.x-translatable-entity-reference and fixed my problem of translated entities wrongly cloned when translated from an entity that is not the master of the translations.

🇫🇷France pbonnefoi

Thanks for the info @nod_ any idea which fix to apply yet ?

🇫🇷France pbonnefoi

@ManojSelvan, @tunic, I confirm that there was a problem and an issue attached to it =>  https://www.drupal.org/project/drupal/issues/3468860 🐛 JS #states behavior does not have a detach method Needs review with a patch already that fixed the problem in my case.

🇫🇷France pbonnefoi

I had the problem with states visibility on a custom form (which was in a modal with ajax reload) and I confirm that the patch fixes my problem :-)

🇫🇷France pbonnefoi

I would say replace accordion field group by detail.

🇫🇷France pbonnefoi

It seems that this is not working on the latest version. I'm investigating.

🇫🇷France pbonnefoi

I'm having the same issue

🇫🇷France pbonnefoi

I think accordion should be removed from the module and be in another sub mobule. It's also consufing because "Detail" field group is also like an accordion.

🇫🇷France pbonnefoi

I have a similar problem trying to fix a unit test on a contrib module, but adding $this->getSession()->reset(); did not work. Do you add it right after drupalLogout() ?

An improvement on the error message would be very nice as well because it does not make much sense.

The unit test causing problem is from the redirect_after_login contrib module.

🇫🇷France pbonnefoi

Well, you might be right. I thought about it but didn't know how to proceed.

🇫🇷France pbonnefoi

Hello, the module does not handle custom entities with no bundles yet, but feel free to contribute if you have some spare time :-)

🇫🇷France pbonnefoi

Indeed it was accessible to anonymous user. I changed it and it's kinda working but it's odd for me that the bearer is not checked prior to the content access permission and besides there is no logging that helps you really understand why it's not accessible.
I have the problem on another project where we have a custom rest route with permission only to authenticate users and it's not working. Maybe it's du to accessCheck on query not there (as now it's mandatory since D10).

🇫🇷France pbonnefoi

@johan-den-hollander I opened an MR with the patch from #2765895 (with little improvements) I have other ideas, but need to find time to implement it.

I made this feature as an option with the following settings :

You can set flush_redis_on_drupal_flush_cache to TRUE to flush Redis cache when clearing all Drupal cache.

$settings['flush_redis_on_drupal_flush_cache'] = TRUE;

You can set flushdb and flushdb_async to TRUE to use the Redis native flushDB when clearing Drupal cache.

$settings['redis_flushdb'] = TRUE;
$settings['redis_flushdb_async'] = TRUE;

You need to set a redis base properly to use this feature. By default, Redis gets cleared getting all keys using cache_prefix. This is not recommended on production as it could be an expensive task to clear all the keys.

🇫🇷France pbonnefoi

pbonnefoi made their first commit to this issue’s fork.

🇫🇷France pbonnefoi

Thanks, it was merged and released in both 8.x-2.3 a,d 3.0.0. Thanks @chipway

🇫🇷France pbonnefoi

Thanks @Soubi for the report, duplicate of #3005314. I will credit you as well for the patch.

🇫🇷France pbonnefoi

pbonnefoi made their first commit to this issue’s fork.

🇫🇷France pbonnefoi

All PHPCS and PHPStan error fixed

🇫🇷France pbonnefoi

No matter what I do, I still have the message to rebase. I followed this documentation here => https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr... and was able to rebase, but still not working, I tried once again with accepting all commits from 3.0.x prior to mine but it's not working...

🇫🇷France pbonnefoi

Well, in my opinion, since the module is using js and css, eslint must be enabled. Adding gitlab-ci to modules is the new norm. Helps improve the code quality and best practices overall. We will open other tickets to fix code issues.

🇫🇷France pbonnefoi

@VladimirAus good to merge now after rebase :-)

🇫🇷France pbonnefoi

Add the .gitlab-ci.yml to run PHPCS, PHPStan and PHPUnit and improve future code quality of the module.

🇫🇷France pbonnefoi

Well I added it because it was necessary to see if all errors were fixed. What do you suggest I should do ?

🇫🇷France pbonnefoi

I think the 3.0.x needs to stay as it is the new version standard (And I've done some work to update the code to the latest standards). A release in 3.0.0 would be nice and let the branch 8.x be only the one working on Drupal 8 and 9.

🇫🇷France pbonnefoi

All PHPCS and PHPStan errors are fixed and PHPUnit up and running. Needs code review and merge I guess (with a new version)

🇫🇷France pbonnefoi

Gitlab-ci is up and running. Opening a new issue to fix all PHPCS and PHPStan issues

Production build 0.71.5 2024