Account created on 22 November 2010, almost 14 years ago
#

Merge Requests

More

Recent comments

🇦🇺Australia acbramley

Congrats to everyone that worked hard to get this over the line. This is so exciting!!!

🇦🇺Australia acbramley

Thanks so much for getting this across the line.

🇦🇺Australia acbramley

Some projects have adopted the case-sensitive standard already, so a revert creates work again for them.

This was the stance just days after the change was committed. Now we've seen how many more people it's affecting. I think it's safe to say it would have been easier for majority of people to revert this change then. Even now it may still be. Commits are easier to revert than having to phpcbf all of your contrib modules for reasons already explained above.

🇦🇺Australia acbramley

That's probably due to the fact that layout builder automatically (and blindly) adds fields to layouts even if the plugins don't exist. There's an issue for stopping that too

🇦🇺Australia acbramley

My changes were following what core was doing, we don't need to strip newlines between html tags for the most part. The test changes are necessary unless we hugely refactor them as well which should be done eventually but isn't required since we can just regex instead

🇦🇺Australia acbramley

Given the IS mentions this may not be an actual issue, the amount of time since work has been done on this issue (8 years), and the fact there's been no update since #24 I'm going to close this as outdated.

Please feel free to reopen with the requested information.

🇦🇺Australia acbramley
2) Drupal\Tests\webform_ui\FunctionalJavascript\WebformUiElementJavaScriptTest::testElement
TypeError: c.isArray is not a function

This is a random fail and is coming from select2 CDN javascript... I'll see if there's a way we can stop this interfering in completely unrelated tests.

🇦🇺Australia acbramley

Getting to the tail end of these failures.

WebformClientSideValidationJavaScriptTest is still failing locally with a javascript error. When reproducing this in the browser the error is:

Can't set value before init

Debugging into this it's coming from Drupal.behaviors.states so I'm assuming something has changed in that API that either webform or clientside_validation needs to fix.

🇦🇺Australia acbramley

The filter format failure is going to need some thinking

3) Drupal\Tests\webform\Functional\Access\WebformAccessFilterFormatTest::testFilterFormatAccess
Behat\Mink\Exception\ExpectationException: The string "webform_default" appears in the HTML response of this page, but it should not.

In https://git.drupalcode.org/project/webform/-/merge_requests/254/diffs, webform_filter_format_load was added which doesn't seem to get invoked on D11. All this is doing is hiding the default webform filter format on the filter format overview. I'll do a bit more debugging but we may need an alternative solution (e.g override the list builder or something more robust).

🇦🇺Australia acbramley

I've reset the branch behind some of the commits that were moved out, and then merged 6.3.x in. Much less changes now!

🇦🇺Australia acbramley

@jrockowitz what are the computed fields you're referring to?

🇦🇺Australia acbramley

That's really strange, I see what you mean but I don't understand how that could be the case considering tests are self isolated (each test case spins up a fresh Drupal installation and tears itself down)

🇦🇺Australia acbramley

Test failures are solved by 🐛 Fix Optional parameter X declared before required parameter Y Active - interesting that they fail the pipeline with concurrent enabled.

🇦🇺Australia acbramley

@liam morland legitmate issues, sure, but making phpstan green in CI is not required for D11. The branch also needs a rebase with HEAD.

🇦🇺Australia acbramley

Going to start splitting some of these changes into separate issues to make this more manageable.

Modernizr deprecation has moved into 📌 Remove modernizr dependency and code Active
Twig spaceless deprecation has moved into 📌 Twig spaceless filter is deprecated Active

🇦🇺Australia acbramley

I would recommend holding off on all of these pipeline fixes until the D11 branch is merged. Otherwise we're going to have major conflicts which will be very hard to manage.

🇦🇺Australia acbramley

I would recommend holding off on all of these pipeline fixes until the D11 branch is merged. Otherwise we're going to have major conflicts which will be very hard to manage.

🇦🇺Australia acbramley

I would recommend holding off on all of these pipeline fixes until the D11 branch is merged. Otherwise we're going to have major conflicts which will be very hard to manage.

🇦🇺Australia acbramley

Releases are published.

🇦🇺Australia acbramley

Over a year since PMNMI, closing.

Please reopen with more information if this is still an issue.

🇦🇺Australia acbramley

Pushed this along a bit. Still needs work to get tests passing.

🇦🇺Australia acbramley

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

🇦🇺Australia acbramley

Needs to be in an MR and tests would be nice.

All development should be against 2.x

This also seems like a feature request.

🇦🇺Australia acbramley

It's been over a year since #7, closing as cannot reproduce

If this bug is still valid, feel free to re-open with steps to reproduce from a clean Drupal install.

🇦🇺Australia acbramley

No response unfortunately, I haven't pinged anyone directly though. There are 13 maintainers on this project, has anyone tried contact forms or direct messages?

🇦🇺Australia acbramley

I've got something that works! Thank you @el7cosmos for showing me the Quality Tools > External Formatters setting.

Steps to setup code formatting on save:

1. Go to PHP > Quality Tools. Select "PHP Code Beautifier and Fixer" (this seems to run phpcbf)

2. Go to Tools > Actions on Save. Tick "Reformat code" and choose PHP files (or others if you want). Make sure Whole file is selected, changed lines doesn't seem to work properly).

Now when you save, it will effectively run phpcbf which seems quite fast and will fix up incorrectly ordered use statements, as well as other stuff for you.

This will still have issues with contrib development as per above, but is a nice stopgap.

🇦🇺Australia acbramley

Latest commit fixes composer issues with next major and they're all green!

🇦🇺Australia acbramley

Just realised I reviewed the wrong MR yesterday 🤦‍♂️

I've reached out on slack to see if any maintainers can comment.

🇦🇺Australia acbramley

A workaround is to install the Drupal coding Standard in phpstorm with newest Coder, then the use statements will be ordered correctly.

I tried this and it did not work. The only thing I can think of is people have phpcbf running on save which of course would fix it but as per #78 is not always going to work.

🇦🇺Australia acbramley

Left some comments, it seems like almost all of the changes in the xmlsitemap.module file could be reverted.

🇦🇺Australia acbramley

This was also mentioned back in #62 - PHPStorm users are essentially now forced to disable Optimise imports which is quite a shame...

Developing contrib is going to become more cumbersome as well since phpcbf is not always runnable on contrib (e.g if it doesn't have a committed phpcs.xml file).

🇦🇺Australia acbramley

This issue came up in BSI triage. There hasn't been a comment here in almost 6 years. Because of this, I'm going to close this as outdated due to the time it has been since the last comment. It does seem like we still add a field in https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/views... but only if one is passed in.

If anyone thinks this is still a bug that needs fixing, please feel free to reopen.

🇦🇺Australia acbramley

I'm closing this as it does seem likely a duplicate as per #6.

Please reopen if this is incorrect.

🇦🇺Australia acbramley

acbramley changed the visibility of the branch project-update-bot-only to hidden.

🇦🇺Australia acbramley

Can we also please update the default branch to 2.x?

🇦🇺Australia acbramley

@quietone yes that is different, PHPStorm has a built in "Optimise imports" function which, on save, will sort use statements. This is not case sensitive from my testing.

🇦🇺Australia acbramley

#48 doesn't seem to be correct, I've got a bunch of files failed on Diff module that have been sorted via PHPStorm. E.g

use Drupal\Core\Url;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
use Drupal\Tests\views\Functional\ViewTestBase;

If I reorder these with case sensitivity, and then run PHPStorm's action, it will put them back like this. This is going to cause major headaches for people using storm.

🇦🇺Australia acbramley

It's been over a year since this issue was set to PMNMI, it's very likely other issues were similar to #18

I'm closing this for now, if anyone is still having this issue with valid libraries.yml files, please reopen with steps to reproduce.

Thanks!

🇦🇺Australia acbramley

We have 3 patches, 8 branches, and 6 MRs on this issue. That's basically impossible for anyone to review or know what to contribute to. Can we please get these cleaned up and documented in the IS?

🇦🇺Australia acbramley

acbramley changed the visibility of the branch 11.x to hidden.

🇦🇺Australia acbramley

acbramley changed the visibility of the branch 10.2.x to hidden.

🇦🇺Australia acbramley

This has been in PMNMI for over a year therefore I'm closing it as cannot reproduce based on #15

Please feel free to reopen with steps to reproduce from a fresh Drupal installation.

🇦🇺Australia acbramley

Hmm I removed the custom validators but it looks like they are needed for this "per form" file size limit... not really sure how to manage that without a decent amount of rework.

🇦🇺Australia acbramley

The file tests are failing on next major due to
The "webform_file_validate_extensions" plugin does not exist.

This validator is added in WebformManagedFileBase. I don't know the background as to why this exists, it only seems to be used to support comma delimited extensions (in webform_preprocess_file_upload_help)

🇦🇺Australia acbramley

Please use dependency injection for any new code. I know there is a lot of use of \Drupal:: currently; let's not add any more.

That's in procedural code, can't use DI there.

Bit confused why you'd split up different file validator fixes, they are all consistent. There is no use of file_validate() in the project.

🇦🇺Australia acbramley

It is the standard gitlab template with some modifications.

🇦🇺Australia acbramley

I was able to reproduce via the steps in the IS and got some test coverage going for this bug. Obviously the fix still isn't working (since it's breaking existing tests) but this'll give us something to test against (TDD :))

Production build 0.71.5 2024