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

Merge Requests

More

Recent comments

🇧🇪Belgium dieterholvoet Brussels

Yes, it looks like negotiating the active domain this early in the request (during the loading of config overrides) is not supported. I started a MR with an approach where the active domain is loaded on demand. Having our own static cache is unnecessary since the active domain is also just a property on the DomainNegotiator service, so there isn't any performance gain.

🇧🇪Belgium dieterholvoet Brussels

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

🇧🇪Belgium dieterholvoet Brussels

I also added a custom translation handler to actually make publishing of translations work. The code is mostly based on Drupal\node\NodeTranslationHandler and Drupal\eck\EckTranslationHandler.

🇧🇪Belgium dieterholvoet Brussels

I don't think it's necessary to add a custom setting to control the visibility of the status field. That's what the form display UI is for. I'll change it so the field is hidden by default and can be displayed by moving it in the form display. I also changed the default value of the publishing status to TRUE.

🇧🇪Belgium dieterholvoet Brussels

dieterholvoet changed the visibility of the branch 3090261-setinlineblockdependency-override-might to hidden.

🇧🇪Belgium dieterholvoet Brussels

I started a new MR on an issue branch instead of the main 8.x-2.x branch.

🇧🇪Belgium dieterholvoet Brussels

dieterholvoet changed the visibility of the branch 8.x-2.x to hidden.

🇧🇪Belgium dieterholvoet Brussels

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

🇧🇪Belgium dieterholvoet Brussels

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

🇧🇪Belgium dieterholvoet Brussels

Is the idea of preprocess hook because we don't have a single spot in the plugins/classes to build them?

Yes, just to make it work anywhere #theme => footnote_links is used. I guess it's only used at one place in the module, but it could also be used in another module. And also to support controlling this behaviour by passing #simplify_sequential_citations => TRUE/FALSE.

🇧🇪Belgium dieterholvoet Brussels

Are you sure they are actually still required? The red asterisks still shows, but you shouldn't get any validation errors when saving the entity.

🇧🇪Belgium dieterholvoet Brussels

Maybe also update all existing redirect entities in a update hook to stop using any of the removed status codes?

🇧🇪Belgium dieterholvoet Brussels

This InvalidArgumentException is also being triggered by bot traffic on all our sites using the Lazy module because it uses this RequestPath condition plugin. It's being triggered by visiting the path /index.php.suspected, so not just paths with double slashes. That's why I want to propose to also just catch any InvalidArgumentExceptions thrown in the getAliasByPath() method.

🇧🇪Belgium dieterholvoet Brussels

Never mind, that doesn't fix it. I now have citations that link to #footnote1, while the footnote has an ID of footnote1-0. That's on a page with multiple text areas with footnotes and with all of them aggregated at the bottom of the page.

🇧🇪Belgium dieterholvoet Brussels

For me this fixes the issue where links from citations to grouped references at the bottom of the page weren't working anymore.

🇧🇪Belgium dieterholvoet Brussels

These two .env variables are specific to the Laravel integration of Ignition (source), there are not (yet) supported in the Drupal module. Currently, the only way to change these settings is through the UI. I'm changing this to a feature request.

🇧🇪Belgium dieterholvoet Brussels

Why not postpone adding the argument to the interface until the next major version and until then make it an optional argument in worker classes like this:

public function processItem($data, ?object $metadata = NULL): void

calling the method like this:

$worker->processItem($item->data, $metadata);

That way it works both for workers with and without the method and the necessary changes to queue workers will be a lot more straightforward.

At some future point we could deprecate the processItem() method and just support the new method and interface?

If you're going to eventually do a breaking change, might as well stick to the same interface and method name and make the breaking change the addition of the new argument to the existing method, no?

🇧🇪Belgium dieterholvoet Brussels

Do we really need a new interface and method here? Why not just add the metadata as an optional argument to the processItem function and add it to the interface in a new major?

🇧🇪Belgium dieterholvoet Brussels

dieterholvoet changed the visibility of the branch 3430646-automated-drupal-11 to hidden.

🇧🇪Belgium dieterholvoet Brussels

dieterholvoet changed the visibility of the branch fix-composer-json to hidden.

🇧🇪Belgium dieterholvoet Brussels

Thank you! I opted the project into security coverage, added Gitlab CI, finished and merged all issues and created a first release. I'll stay around for any new issues as well, for the time being.

🇧🇪Belgium dieterholvoet Brussels

Can't seem to reproduce this in the latest version.

🇧🇪Belgium dieterholvoet Brussels

dieterholvoet changed the visibility of the branch 3391771-balloon-panel-is-misplaced to hidden.

🇧🇪Belgium dieterholvoet Brussels

I tested that and yes, that works too! Thanks for the suggestion.

🇧🇪Belgium dieterholvoet Brussels

I sent the following message to s_leu and tim bozeman through their contact form:

Hi,

Could you post a comment on my offer to co-maintain CKEditor ID Attributes ( https://www.drupal.org/project/ckeditor_id_attributes/issues/3519478 💬 Offering to maintain CKEditor ID Attributes 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

Examples still need to be updated.

🇧🇪Belgium dieterholvoet Brussels

That seems to fix it, thanks!

🇧🇪Belgium dieterholvoet Brussels

Yeah, you're right. Let's just not do this then. Don't you agree it's a bit unnecessary to try and hide the password on a non-public, admin settings form?

🇧🇪Belgium dieterholvoet Brussels

Should be possible if you grant the role the permission to view revisions. That permission only applies to nodes the user already has permission to see.

🇧🇪Belgium dieterholvoet Brussels

Thanks for your input! You're right, probably not the best idea. It was worth considering though :).

🇧🇪Belgium dieterholvoet Brussels

We'll have to drop support for PHP 7.3 if we're adding property types, but I think that's acceptable. Left some comments in the MR.

🇧🇪Belgium dieterholvoet Brussels

CKEditor 45.0.0 has been released with support for full screen mode: https://github.com/ckeditor/ckeditor5/releases/tag/v45.0.0
I opened 📌 Update CKEditor 5 to 45.0.0 Active to update CKEditor in core.

🇧🇪Belgium dieterholvoet Brussels

The changes in this merge request break backwards compatibility. If someone configured an ignore list with paths with language prefixes, those rules won't work anymore. I think it would be better to check both with and without language prefixes, to make sure we don't break any existing setups. Or we could change the ignore list in an update hook to remove any language prefixes from existing rules.

I tested adding aliases to the ignore list, that works as it should.

🇧🇪Belgium dieterholvoet Brussels

That's weird, I have a website using Domain Access, but I can't reproduce this issue. When I attempt to open the node as a non-authenticated user on domain B, it just redirects to the login form on domain B.

🇧🇪Belgium dieterholvoet Brussels

mparker17 and louis-cuny seem to be the only active maintainers in the past 2 years. Only mparker17 has their contact tab enabled, so only sending him a message for now. This is the message:

Hi,

Could you post a comment on my offer to co-maintain Structure Sync ( https://www.drupal.org/project/structure_sync/issues/3517380 💬 Offering to maintain Structure Sync 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

Same question as solideogloria, any reason Drupal\Core\Queue\QueueFactory doesn't implement the new interface?

🇧🇪Belgium dieterholvoet Brussels

Yeah, ideally we would generate entity type classes implementing only the necessary interfaces, like the Trash module generates entity storage classes, but as long as that's not completely necessary I'd like to avoid adding that complexity to the ECK module.

I just thought about something. Most getters/setters in Drupal\eck\Entity\EckEntity have a hasField() check for this exact situation, while the isPublished() / setPublished() / setUnpublished() methods don't. I'll fix this issue that way. Thanks for your input berdir.

🇧🇪Belgium dieterholvoet Brussels

Seems like adding those uidowner keys created some new expectations, we have a failing test:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null

🇧🇪Belgium dieterholvoet Brussels

If you implement EntityPublishedInterface then isPublished() and setPublished() are expected to work.

ECK allows for entity types to optionally enable the published field, but all ECK entities share the same base class. Drupal\Core\Entity\EntityPublishedTrait::publishedBaseFieldDefinitions() checks both the presence of the interface and the presence of a published key, so we should probably do the same here. That, together with 🐛 Entity keys should only be added to an entity type if they are enabled Active , would fix this issue. I'll work on getting that fix in ECK first.

🇧🇪Belgium dieterholvoet Brussels

The module doesn't let you manually create settings entities, it creates 1 entity automatically. You might still be able to manually create entities with user 1 since that user bypasses all access checks, but there isn't much we can do about that.

🇧🇪Belgium dieterholvoet Brussels

I think I found a fix, could you test the changes from the MR?

Production build 0.71.5 2024