Account created on 10 January 2007, over 17 years ago
#

Merge Requests

More

Recent comments

🇦🇺Australia nterbogt

This patch caused significant issues for us for non admin users. I'm yet to look into what is different in the HTML structure between admin and non admin users that might be affecting it.

🇦🇺Australia nterbogt

I'm just going to bump this one to RTBC because it's a filename change and I ran it locally.

🇦🇺Australia nterbogt

Thank you for you submission. Converted patch to merge request.

Now all this needs is tests.

🇦🇺Australia nterbogt

Fixed. Will be rolled out in 2.3.0.

🇦🇺Australia nterbogt

This is a simple change, but will conflict with the other issue I put in review. I'll update whichever afterwards.

🇦🇺Australia nterbogt

I decided to run all the tests again with the new entity_test_parent (no parent field) and entity_test (with parent field) as children.
Let me know if this is over testing.

🇦🇺Australia nterbogt

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

🇦🇺Australia nterbogt

It's one and the same... I've been working on the code for the Children tab in 5.x quite a bit :)

🇦🇺Australia nterbogt

Is this opt in? Slightly concerned it could break our 'Children' tab when we have a `5 / 70 / 10 / 6` type hierarchy. (format of child summary in views).

🇦🇺Australia nterbogt

Ok, misunderstood the code. Back to passing now. (Note to self) Next time, just run the module in a sandbox with working tests... makes it easier :)

🇦🇺Australia nterbogt

Tests failed. In theory there was no functional change from previous code. I'll look into it.

🇦🇺Australia nterbogt

Updated with new method to get the list builder and tested locally.

The local task deriver changes were because I originally had another change in mind, but rejected it. The change only removes unused variables and uses constructor promotion, bringing it in line with other modernised code in EH 5.x. So decided to include it.

🇦🇺Australia nterbogt

I think this is ready for a review. At least in terms of the functionality it provides. Happy to discuss specific implementation.

🇦🇺Australia nterbogt

I believe this is the same issue that I'm seeing.

URL that comes in is /sites/default/files/2022-05/Vivid.jpg

Proxy request is stage_file_proxy.ERROR: Stage File Proxy encountered an error when retrieving file https://my.host///2022-05/Vivid.jpg

🇦🇺Australia nterbogt

I gave this some thought and decided to just remove the reference to 'Test'. 'entity' is globally used and the other options considered were:

* Add the current content entity to the ChildEntityWarningBuilder and then pass it through to the ChildEntityWarning. And then render the current entity type into the message.
* Assume entities in the ChildEntityWarning->relatedEntities were always going to be the same type, so grab one and render the entity type into the message.

In both cases, does that added complexity actually add value to the user. Probably not... they are already on the edit page of what they want to edit.

🇦🇺Australia nterbogt

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

🇦🇺Australia nterbogt

This has been fixed and rolling release 1.0.0-rc1.

🇦🇺Australia nterbogt

Can I please get a review of this. Phpstan throws only a couple of warnings on 10.0, but tests currently set to 10,1 which throws a Database::tablePrefix() issue.

🇦🇺Australia nterbogt

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

🇦🇺Australia nterbogt

Added a functional test for the settings form. Has a phpstan warning, but it's the same warning in a lot of other projects.

https://git.drupalcode.org/project/token/-/jobs/275660

The warning is documented here.

https://www.drupal.org/docs/develop/development-tools/phpstan/handling-u...

🇦🇺Australia nterbogt

I agree with the complex logic in the form, I'm also not really sure about a decent approach to test that. Do you have any recommendations?

A unit test that just checks the default values and possible options could work, but might not be what you're after.

🇦🇺Australia nterbogt

This is causing significant user complaints for our site too. There are many people confused about what is happening and why.

I'm trying to get this to RTBC, but will have to come back a bit later.

🇦🇺Australia nterbogt

I don't believe this needs to be optional / opt-in. I think it's clear it should be an admin route, next to 'View', 'Edit', 'Delete', 'Revisions', etc. I'm not sure there is any UX benefit to using the page theme and having it inconsistent with everything else.

It's also a duplicate of 🐛 The generate-preview-link page renders in the site's theme RTBC , which I know was created after. But might be easier to push the individual changes through rather than globbing them together.

🇦🇺Australia nterbogt

I agree that this is a poor user experience. Run the change locally, working as expected.

🇦🇺Australia nterbogt

I've redone the permission form configuration. Also moved it to a merge request.

I still need to implement the bundle configuration, but the rest is done, as far as I know.

🇦🇺Australia nterbogt

Looks like this is actually fixed in latest release.

🇦🇺Australia nterbogt

This appears to be an own goal. Sorry. Closing.

🇦🇺Australia nterbogt

I'll investigate further before anyone should look at this. Might be a PEBKAC problem given my current week.

🇦🇺Australia nterbogt

I ran into the same issue. Test above RTBC, but needs tests updated.

🇦🇺Australia nterbogt

Re-rolling patch for 10.1.x. Haven't checked if this is working for 10.0.

🇦🇺Australia nterbogt

This change is supported at a functional level. But I don't think we should merge it until the bug in core is fixed... or 📌 Prevent selection of unsupported toolkits Active is implemented and merged and we can detect that you have the required patch.

For ease of finding, core patch listed above is Let GDToolkit support AVIF image format Needs work

🇦🇺Australia nterbogt

Removed code that wasn't used, and if was used could break your site. Can add a similar function back in with appropriate tests and a use case (like hook_uninstall()).

🇦🇺Australia nterbogt

Nice change!

🇦🇺Australia nterbogt

This has been merged. Another DDoS risk mitigation!

🇦🇺Australia nterbogt

This has been updated. Thanks everyone for getting this over the line.

🇦🇺Australia nterbogt

Sorry, that was me. Merged and marking fixed.

🇦🇺Australia nterbogt

Closing ticket as it has been fixed in another PR.

🇦🇺Australia nterbogt

Also merged. No longer as required, but a nice tidy up none the less.

🇦🇺Australia nterbogt

This has been merged. I won't roll a new release just yet because there appears to be a bunch of other changes stacked on this one.
If no progress has been made by the end of the week, I'll roll a new release.

🇦🇺Australia nterbogt

Unable to test as a Kernel test. Route wasn't registering properly.

A functional test in the meantime.

🇦🇺Australia nterbogt

Small logic fix. Tests don't cover the case where there is a recursive reference to self.

🇦🇺Australia nterbogt

Improving patch with early exit for no descendants and adding accessCheck() for query.

🇦🇺Australia nterbogt

I've had a go at a patch for this and confirmed no difference in the $children array for my test case.

Limitation of my patch is that it assumes all children will be the same entity type as the one being validated, which based on the field definitions, I believe is a safe assumption. Could alter the query to include the type otherwise.

This patch means we don't run out of memory with 28k children nodes (don't ask).
On a page with 6 children... the entity query appears marginally slower. 4.1 seconds (entity query) vs 3.55 seconds (loadMultiple).

🇦🇺Australia nterbogt

Just wanted to add a comment to say that the upstream epic that was being tracked appears to now be complete and was marked for release in v38.0.0 of CKEditor 5.

https://github.com/ckeditor/ckeditor5/issues/11574

🇦🇺Australia nterbogt

My thoughts are different for community vs NSW use cases.

For community, I think the record should be deleted from the index if it becomes invalid. This gives you data integrity.

But based on HA strategy for NSW, we would normally prefer to provide stale content than a 'page not found' while the problem is resolved.

I think we go with the community solution in this case, and if we want to override it, we can look at that later as a hook or otherwise on our end.

🇦🇺Australia nterbogt

Just to confirm... I don't think it should be a sub module, but another project on drupal.org. My personal feeling is that we need to move away from including everything in one mega module... that was good before we had composer. Now we can do better :)

🇦🇺Australia nterbogt

Don't we actually want ->accessCheck(FALSE) for this one? It doesn't really matter who does the rebuild task, if they have access, they should rebuild for everything?

🇦🇺Australia nterbogt

I'm happy to make you a co-maintainer, I think you've done good things for the project. I just want to get a commitment not to include code to help 'clean up duplicates'... the module is about identifying and restricting them. I think clean up code is a one run problem... and complicates the code and maintenance. It's also very installation specific.

We could look at a `media_duplicates_cleanup` module.

🇦🇺Australia nterbogt

An initial implementation based on entity_hierarchy. Tested in context of nodes, but not wider than that. Also tested above pseudo code for route permissions.

🇦🇺Australia nterbogt

I think it comes down to whether we support NULL or "" in other yml config. If we do, this is a bug... if not, then it's just identifying a misconfiguration that it could cope with before.

🇦🇺Australia nterbogt

Actually, I think I might have solved a different issue. More thinking required.

🇦🇺Australia nterbogt

Setting this to needs review. The risk of an empty label is gone, and the bug is clearer, imo.

🇦🇺Australia nterbogt

I debugged this further and the error appears to be caused by the strict 'string' argument to `strnatcasecmp`.

Drupal is passing in strings or `Drupal\Core\StringTranslation\TranslatableMarkup` objects... which used to work when typecast to string.

🇦🇺Australia nterbogt

Here is a rebuilt patch to apply cleanly to 9.2.x.

Production build 0.69.0 2024