🇦🇺🏝.au GMT+10
Account created on 21 November 2008, almost 16 years ago
#

Merge Requests

More

Recent comments

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Too heavy a reliance on e2e tests makes the test suite slow and brittle

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

FYI if we make this a production requirement, we should add a hook_requirements warning people with jsonapi module and assertions enabled that their performance will go through the floor because of that module's response validator.

I've been asked to audit sites for performance and found that combo in production 😱

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Thanks, I'll try to get to this sometime this week

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

I realise I'm in the minority, but I still feel this is a mistake, we're going against best-practice in the FE world. Registering my thoughts for posterity. Hope I'm wrong.

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

This is where my approach of adding a component source plugin to the config entity came from. We add one for each type (Block, paragraph, SDC) much like media types. Maybe we revisit that?

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

I think you'd need to look to the date module in D7 for that.

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Hi
Thanks for this.
I don't think a bespoke email delay system for workbench email is the correct approach to this.
A generic email delay module would be a better solution.

Thanks again for the patch. There's also some hard-coding of nodes here, which isn't how the module works (it supports all entity-types).
That also makes this ineligible for inclusion in the module.

Thanks

Lee

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

larowlan created an issue.

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Rather than this being automated, what about an import wizard from the list builder as an action link? When we support blocks that could also be included

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

I think with some refactoring of theme manager (eg adding methods as extension points) , we could subclass it and not need to duplicate much
But it would require a spike to identify those extension points

I also think storing the link between a react component and a form element plugin should happen via form element plugin definitions. The setializer can read that to work out what should be formatted for hyperscriptify and what should not

This means in the future we can allow modules to opt in their custom elements. The hard coded mapping in the JS could be replaced with a mapping of lazy imports we could share via Drupal settings

This requires changes to vite config for the UI and the use of import maps, but we would need to do that anyway to support UI extension

I can work on a spike on this when I'm back

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Symfony setializer defines two interfaces, NormalizerInterface and SerializerInterface. The first one is for turning objects into arrays, the second one is for turning arrays into strings. Eg there's an XmlSerializer, a JsonSerializer. We'd just have a XB template setializer for turning render arrays into a string in our bespoke manner

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

FWIW search api overcomes these issues using data source plugins, you can index multiple bundles (and even multiple entity types) to the same index. Each field is a combination of property path and data source id. That gives you the root data type. Fields helper even has a filter by data source method which is similar to the isSupported

I concede that the multiple properties syntax is more verbose

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

I realise it's a strong word, I'm trying to convey that the current approach is not suitable for production sites

I've toned it down

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Agree we should try to fix this asap - do we have steps to reproduce though?

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Thanks Wim, I'll pick this up again after vacation

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

I think this is reasonable.
I wonder how we go about testing it.

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Clarifying that this was logged privately to the security team who approved for it to be public

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

This all good @Chris Matthews? I made a D11 release a few weeks back

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

It's a pity we can't have MSW wire up to cy.intercept and have the best of both worlds

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Yep, let's ship it, cutting another release

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

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

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Plus one for this - but looks like there's a new fail on PHPUnit next minor? https://git.drupalcode.org/project/entity_print/-/pipelines/242319 is passing in HEAD

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Looks great, but let's do PHPStan while we're here - thanks!

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Thanks @TomTech - I'm tagging 8.x-1.14 now

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Thanks, can do - are you able to create an MR?

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

larowlan created an issue.

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

There's no logo here yet, so should this be back in the project browser queue?

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Thanks for this - there's some linting fails in the new file if you could resolve those - thanks!

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Either we add a hook_update_last_removed and remove this hook or we drop support for 10.1

Or both

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Yay finally

Also cutting a d11 release

And added a scheduled task so we can catch this sooner when core breaks our stuff next time

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

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

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

larowlan created an issue.

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Committed to 11.x and backported to 10.4.x and 11.0.x
Waiting for a second opinion about 10.3.x, leaving at RTBC

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

larowlan created an issue.

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

I wonder if we could add a property attribute e.g #[Theme\Variable] and put that on constructor Params and have the theme hook variables inferred

Between the constructor, a factory method, the theme definition and the build method, there's a lot of boilerplate around the variable names

I also wonder if the method that does the build could auto fill # keys from properties with attributes so if you don't need any logic these get passed through to the render array automatically

I can spin up a new issue (or two) for both those ideas if this isn't the best place for it

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Committed to 11.x and then backported to 11.0.x/10.4.x/10.3.x after confirming with catch

Thanks folks 🚀

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

d11 here we come, 21 modules down, 38 to go

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
+++ b/js/a11y-autocomplete.js
@@ -11,7 +11,7 @@
-      if (pillsContainer.querySelector(`[data-option="${option.value}"]`)) {
+      if (pillsContainer.querySelector(`[data - option = "${option.value}"]`)) {
         return;

this is not the correct fix and will break functionality
We shouldn't be using phpcs against JS files

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Hi
The first two sound like a perfect use case for our original feature flag... a module that you install/uninstall.
The third one makes me feel a bit icky. I would prefer selective preprocess hooks over a global twig extension.

LR

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Brought in the value objects and a normalizer. Will continue tomorrow

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Are these commit messages auto-generated and random?

Na, I'm just having fun with portlandia quotes

Production build 0.71.5 2024