Brussels
Account created on 22 March 2018, about 7 years ago
  • Backend Developer at Minsky 
#

Merge Requests

More

Recent comments

🇧🇪Belgium dieterholvoet Brussels

I checked and you're right, symfony/polyfill-php80 including the str_starts_with function was added in Drupal 9.0.0 . That would mean we need to drop support for Drupal 8, but I'm okay with that. Feel free to add back str_starts_with and drop support for D8 if you like.

🇧🇪Belgium dieterholvoet Brussels

Just had this happen again randomly on a production website running Drupal 11.1.6. Clearing caches through the UI did not work. Restarting the server and running drush cr fixed the problem.

🇧🇪Belgium dieterholvoet Brussels

I was still encountering an issue when the Crop module is being used, adding flex-wrap: wrap; seems to fix that.

🇧🇪Belgium dieterholvoet Brussels

That's a good point. It looks like the 5xx cache maximum age setting doesn't actually do anything. Even if you explicitly create a cacheable 500 response like this:

return new CacheableResponse(status: 500);

there's Drupal\Core\PageCache\ResponsePolicy\NoServerError who marks the request as non-cacheable. I'll create another issue to remove that setting.

🇧🇪Belgium dieterholvoet Brussels

Why did you revert the change? str_starts_with is still there.

🇧🇪Belgium dieterholvoet Brussels

While we're at it, let's add the Expert mode checkbox from the Caching fieldset to this fieldset as well.

🇧🇪Belgium dieterholvoet Brussels

While this does seem like an oversight in the original implementation, this would be a backwards incompatible change for existing sites. To avoid having to create a new major version of the module, I propose we add two new settings: Surrogate 404 cache maximum age and Surrogate 5xx cache maximum age. If we keep these empty for both existing sites and new sites by default, there's no backwards compatibility break.

🇧🇪Belgium dieterholvoet Brussels

Thanks for your contribution! I left some feedback in the MR, please commit any future changes there.

🇧🇪Belgium dieterholvoet Brussels

The expiration time can be configured through the Confirmation URL expiration setting in the Webform handler.

🇧🇪Belgium dieterholvoet Brussels

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

🇧🇪Belgium dieterholvoet Brussels

I just tested but I can't reproduce the issue. I'm using required_api 3.0.0-beta1 and required_by_role 2.0.0-beta3.

🇧🇪Belgium dieterholvoet Brussels

You should probably open a new issue, this one is closed with no way to reopen except for the maintainer.

🇧🇪Belgium dieterholvoet Brussels

The custom version of time_diff which is being added in Add back missing Twig filters Active returns translatable markup. In case anyone wants to test: please do it within two weeks, I'm merging and releasing after that.

🇧🇪Belgium dieterholvoet Brussels

I listed the module as alternative in the project description.

🇧🇪Belgium dieterholvoet Brussels

I'm adding back all removed Twig filters in Add back missing Twig filters Active , restoring backwards compatibility. In case anyone wants to test: please do it within two weeks, I'm merging and releasing after that.

🇧🇪Belgium dieterholvoet Brussels

I'm adding back all removed Twig filters in Add back missing Twig filters Active , restoring backwards compatibility. In case anyone wants to test: please do it within two weeks, I'm merging and releasing after that.

🇧🇪Belgium dieterholvoet Brussels

This is being fixed in Add back missing Twig filters Active . I'll credit the people who worked on this in that issue.

🇧🇪Belgium dieterholvoet Brussels

The time_diff filter has a dependency on the symfony/translation package, so we can't use the original code. I'll add a custom one based on the suggestion in SyntaxError: Unknown "time_diff" filter Active .

🇧🇪Belgium dieterholvoet Brussels

Backported ArrayExtension and IntlExtension.

🇧🇪Belgium dieterholvoet Brussels

Seems like that module has a conflict 🐛 Custom Core Twig Filter "format_date" conflicts with twig/intl-extra Active with Drupal core. Let's just copy-paste the original extension instead.

🇧🇪Belgium dieterholvoet Brussels

As a start, I propose bringing the Twig IntlExtension module back into this one.

🇧🇪Belgium dieterholvoet Brussels

I also pushed a fix for content translation and revision tabs not being hidden on taxonomy term forms when using Claro.

🇧🇪Belgium dieterholvoet Brussels

dieterholvoet changed the visibility of the branch 2.0.x to hidden.

🇧🇪Belgium dieterholvoet Brussels

I created a new 3488386-hide-vertical-tabs branch that is based on the upstream 2.x branch. No idea where the 2.0.x in this issue queue comes from, but it shouldn't be used for a MR.

🇧🇪Belgium dieterholvoet Brussels

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

🇧🇪Belgium dieterholvoet Brussels

Both the 7.x release of this module and Drupal 7 are not supported anymore, so I'm closing this as won't fix.

🇧🇪Belgium dieterholvoet Brussels

Both the 7.x release of this module and Drupal 7 are not supported anymore, so I'm closing this as won't fix.

🇧🇪Belgium dieterholvoet Brussels

Both the 7.x release of this module and Drupal 7 are not supported anymore, so I'm closing this as won't fix.

🇧🇪Belgium dieterholvoet Brussels

Both the 7.x release of this module and Drupal 7 are not supported anymore, so I'm closing this as won't fix.

🇧🇪Belgium dieterholvoet Brussels

Both the 7.x release of this module and Drupal 7 are not supported anymore, so I'm closing this as won't fix.

🇧🇪Belgium dieterholvoet Brussels

Both the 7.x release of this module and Drupal 7 are not supported anymore, so I'm closing this as won't fix.

🇧🇪Belgium dieterholvoet Brussels

Alright, I'll close any 7.x issues then.

🇧🇪Belgium dieterholvoet Brussels

If a user has permission administer users but not administer permissions, they cannot edit user roles on user/UID.

Seems like they can. The core AccountForm does contain the following code:

$form['account']['roles'] = [
  '#type' => 'checkboxes',
  '#title' => $this->t('Roles'),
  '#default_value' => (!$register ? $account->getRoles() : []),
  '#options' => $roles,
  '#access' => $roles && $user->hasPermission('administer permissions'),
];

but this module adds its own role_change field to the user form and the core access check doesn't affect that. Or am I missing something here?

🇧🇪Belgium dieterholvoet Brussels

Seems like I don't have permission to do this, assigning @acbramley.

🇧🇪Belgium dieterholvoet Brussels

Looks good! Only the dependency injection left to be done.

🇧🇪Belgium dieterholvoet Brussels

@hikkypo please don't just post random patches without context. Work on this is being done in the MR.

🇧🇪Belgium dieterholvoet Brussels

I added the changes from 3475414-role_delegation-5.patch to the MR. This new config option is going to need a settings form, can't expect people to manually edit yml files.

🇧🇪Belgium dieterholvoet Brussels

Never mind, I was too fast. I'm going to revert. Refusing access to the separate page was intentionally done in 📌 Roles tab is redundant for users who can administer users Fixed . Adding the separate page for users with the administer users permission as an option is being discussed in Allow users with administer users to see Roles tab via a setting Active .

🇧🇪Belgium dieterholvoet Brussels

I tested this change, seems right. The comment indicates that the check should grant access and it also makes sense that users with the administer users role can manage roles on the edit page.

🇧🇪Belgium dieterholvoet Brussels

Exactly. If anyone could share their id-less config that's causing this warning, that would be useful.

🇧🇪Belgium dieterholvoet Brussels

Thanks! I was wondering, do you want to keep supporting the Drupal 7 version? Or can I close those issues as won't fix?

🇧🇪Belgium dieterholvoet Brussels

I'm aware of that, that's not the problem here. I described those steps in 'Steps to reproduce'.

🇧🇪Belgium dieterholvoet Brussels

I can confirm MR !82 gets rid of all warnings on version 1.x. I created a new MR for version 2.x.

🇧🇪Belgium dieterholvoet Brussels

I sent acbramley, benjy and jeroent the following message through their Contact tabs:

Hi,

Could you post a comment on my offer to co-maintain Role Delegation ( https://www.drupal.org/project/role_delegation/issues/3526587 💬 Offering to co-maintain Role Delegation Active )? I would like to become a co-maintainer of the module to help resolve any pending and future issues.

Thanks in advance,
Dieter Holvoet

🇧🇪Belgium dieterholvoet Brussels

@davis zhou thanks for your contribution! It fixes the issue for me. I just have one question, I left it in the MR.

🇧🇪Belgium dieterholvoet Brussels

MR !146 seems to be the same as MR !147 now, which means that there aren't any changes since you last asked me to test.

🇧🇪Belgium dieterholvoet Brussels

I can confirm that the deploy hook in MR !86 does the job, but like I said before only for people using drush deploy.

🇧🇪Belgium dieterholvoet Brussels

The alternative is to make sure the fields aren't recreated, so no data is lost.

Yeah, there doesn't seem to be a way to do that. updatedb creates and fills the fields and config:import overwrites them. The only way I can think about is to add a rabbit_hole_field_config_insert() hook and migrate the field there, after it's created. Not sure if we can use the Batch API at that point though.

For my own purposes, I'm going to create a separate MR that makes this a deploy hook. It's a relatively easy and sufficient fix for people using Drush.

🇧🇪Belgium dieterholvoet Brussels

Update hooks updating data should still be post update hooks though, so I'll leave that in the MR.

🇧🇪Belgium dieterholvoet Brussels

Never mind, I was wrong. Post update hooks also run before config import. Only deploy hooks run after config import, but those are a Drush specific concept so probably not a good idea to introduce here. The alternative is to make sure the fields aren't recreated, so no data is lost. I'll try to come up with a solution.

Production build 0.71.5 2024