Ontario, CA 🇨🇦
Account created on 22 April 2009, about 16 years ago
#

Merge Requests

More

Recent comments

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Regarding #10, if variant is null or otherwise empty, the variant attribute will not be set in gcds-link.twig.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

If variant is to be default, it should just be left-out (or set to null). What is setting it to the empty string?

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

We will first need this on 6.3.x.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I did not correct "sigup" because this string may be used by others to modify the form. This should be fixed in the next major release.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

There are still several phpstan messages:

\Drupal calls should be avoided in classes, use dependency injection instead

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Thanks. There are some previous tags left behind by this in the main repo.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Thanks!

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

It would be better to find the root cause of this. The variant property should be set to null instead of empty string to not specify a value.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Please put your patch into an issue fork and merge request. Please add tests.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

As a start, these changes get tests passing again.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

liam morland made their first commit to this issue’s fork.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

This should be ported to 6.2.x. The commit can be cherry-picked, but there are more calls to fputcsv(). These were fixed on 6.3.x in commit 3c56216 for 📌 Fix broken tests Active .

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Thanks!

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Due to module support, it will be a while before we can move to Drupal 11.

Option 1:

$service = \Drupal::hasService('service') ? \Drupal::service('service') : NULL;

Option 2:

try {
  $service = \Drupal::service('service');
}
catch (ServiceNotFoundException) {
  $service = NULL;
}

Option 1 is more compact.

I would rather just do:

$service = \Drupal::service('service');

Or:

$service = \Drupal::service('service', ContainerInterface::NULL_ON_INVALID_REFERENCE);

(The code later, in a loop, tests if $service has a value and uses the service if it does.)

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

The merge request needs to be updated to target 11.x.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I am encountering this issue in hook_preprocess_HOOK(), so dependency injection is not possible. I'm using this to adjust the behaviour of the code based on whether or not another module is installed.

Is catching the exception better than just using \Drupal::hasService()?

I like the idea of adding a second param.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

@astonvictor what is the difference between the old merge request and the one you just opened? Which one does your RTBC apply to?

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

liam morland made their first commit to this issue’s fork.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Created a merge request with the patch in #3.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

liam morland made their first commit to this issue’s fork.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

This dependency should be updated to allow book 2.0.

"drupal/book": "^1.0 || ^2.0"

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Please put your patch into an issue fork and merge request.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I have created a merge request with the patch in #4.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

liam morland made their first commit to this issue’s fork.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

It is not clear to me that there are too many dependencies. Feel free to re-open with a specific proposal.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

This is the contents of the branch 2948793-pdftk-security which branched-off from 7.x-1.14.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Yes, but please test that it works correctly.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Is this an improvement on WYSIWYG support on each table cell for better content experience Needs review ? If so, it ought to be in that issue.

Please use the null-coalescing operator, ??. Please correct the indentation.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Some repo clean-up that could be done:

  • Change the default branch in GitLab to 4.x
  • Delete from the main repo obsolete branches for specific issues, such as 3513890-assertionerror-constant-contact
  • Delete from the main repo previous tags
🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

@#37: The current issue is pretty straight-forward: Return int instead of string. Deciding what to do about the nulls is a bigger topic. So, I think it makes sense to surface that issue and put it into its own issue.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Is there an existing issue about those?

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I installed the development version and the issue is fixed. Thanks!

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

@#10 I was referring to the patch in #8, which is not a patch to this module.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Would you consider a backport to 2.0.x?

(By the way, I noticed that tag 3.0.0-alpha1 is not on a branch. You could clean that up by merging it into 3.0.x.)

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

It would be helpful for this to be added as a patch that can be applied with Composer.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

This is the patch in the merge request re-rolled to apply to 4.0.0.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I have created a merge request with the patch in #4.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I think #6 intended to move this to RTBC.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I have created a merge request with the existing code in the issue fork.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

liam morland made their first commit to this issue’s fork.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Drupal 10 compatibility has been done in the 3.0.x branch in #3243437: Add CodeMirror support for CKEditor 5 and 📌 Automated Drupal 10 compatibility fixes Fixed .

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Drupal 11 compatibility has been done in the 3.1.x branch.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

The fix in #9 fixes it for me. It has the same effect as #6 except that later updates, when the issue is fixed, will be installed.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Coding standards are not passing on the merge request.

Others, please test this.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Current state of merge request.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

All checks are passing.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

liam morland made their first commit to this issue’s fork.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

This appears to be handled by embedded_content_sdc module.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I suggest updating the "Historical support" page so that it matches the versions shown as supported on the project page.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Can you use git bisect to figure out which commit caused this issue?

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

I have created a merge request with the patch in #2. It seems to work on 4.0.x.

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

liam morland made their first commit to this issue’s fork.

Production build 0.71.5 2024