Account created on 18 April 2010, over 14 years ago
#

Merge Requests

More

Recent comments

🇦🇺Australia elc

Located duplicate project:

https://www.drupal.org/project/nouislider

Posted issue to reference as "Replaced by" as the newer one is up to date (older is 15.5.1, new is 15.8.1 and I assume has mechanism for staying up to date?) and includes the correct composer.json file, and has all of the library files instead of just the min ones.
📌 Set "Replaced by" to noUiSlider JS Active

🇦🇺Australia elc

@todo Add a change notice/record regarding the removal.

🇦🇺Australia elc

Interop with Registration Password Token module Compatibility with Generate Password module Active .

🇦🇺Australia elc

This module sets the "password" property to the $account object itself during form submission, bypassing the need for core to continue to set the value.

https://git.drupalcode.org/project/rpt/-/blob/2.x/rpt.module?ref_type=he...

🇦🇺Australia elc

If memory serves, this was Automatic User Names module stepping in as it used the core password generator to provide a random string which did not validate as a username when Generate Password was installed.

It was fixed in Automatic User Names:
🐛 Make Automatic User Names compatible with Generate Password module. Fixed

🇦🇺Australia elc

Add reference to core issue.

🇦🇺Australia elc

Thanks for the quick work! Yes, this is all it needed.

Only other question is whether this should cause a point release to differentiate it from the previously supported drupal cores.

🇦🇺Australia elc

Looks like a release came out, but it needs a new one already.

Module uses the password_generator service, introduced in Drupal Core 9.1.0. This makes this the minimum supported version.

@see https://www.drupal.org/node/3153113

@todo
Update the info.yml file to set minimum version of ^9.1 || ^10 and make a new release.

🇦🇺Australia elc

Despite the requirements stated in the info file, the minimum Drupal core version is 9.1.0. Please upgrade to this version or use the previous version of this module.

🇦🇺Australia elc

Triggering 3.0.0-beta2 release as this is a usability issue.

🇦🇺Australia elc

Project page updated for now. Will need an update in the new year, once Drupal 7 Core support is turned off in Jan 2025.

Still 15k users of this module on the 7.x-1.x branch. Lots of sites stuck on Drupal 7. Going to be interesting.

🇦🇺Australia elc

Released as 3.0.0-beta1 or 3.0.0-beta2

Follow up task 📌 Update project page Active

🇦🇺Australia elc

Drupal 11.1.0 and 10.4.0 have been released, fixing the Legacy/Hook false positive.

This will be merged into 3.0.x when I get the chance to update/write the release notes for dev/beta. Reviews always welcome, but not blocking.

I feel the review will effectively be on the release which will be a new branch and a beta, and will not remove support from any of the existing branches, so this makes it safe enough for it to be released as is.

🇦🇺Australia elc

Confirmed that importing did not work with validation being a requirement but it not being automatic. Made validation automatic and required.

@todo

  • ➖ Add test to import SiteVerification entities through config.
  • ➖ Update project home page

Still waiting on release of 11.1 and 10.4 to get rid of the phpstan error about Hook/LegacyHook not existing yet.

🇦🇺Australia elc

Still @todo

- Update README with current usage instructions (file/meta entry has changed to just name/content entry with parsing html meta line and file upload field processing no longer included)
- Finish adding help hooks (code completed, not pushed)
- Confirm if the forced validation currently coded breaks sync import of config, which was the entire point of this change

🇦🇺Australia elc

Tests need to be expanded to install redis and configure the tests to selectively use it in redis only tests. The code currently only tests the database storage of flood data.

The drupa/redis module has a modified .gitlab.yml file which would provide insight into getting redis installed and adding additional builds to test with a without it.

🇦🇺Australia elc

Marking as RTBC on behalf of @interlated

🇦🇺Australia elc

Let's fix the issue at hand, instead of adding nullable type hints to things that aren't ever going to be null. Having them nullable was a mistake, so just running an automated coding standards fix against them really isn't the way to handle it. It's important to understand the proposed fix and what is being applied to, and whether it is the correct result.

And fix up the only two nullable type hints that really are needed, plus match up their docblock hint.

🇦🇺Australia elc

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

🇦🇺Australia elc

Appears tests are running against Commerce 3 and that is not currently passing tests.

This patch is working in a production site to reproduce the behaviour from the patches before the final result was merged in.

🇦🇺Australia elc

Fixed as part of Provide exportable configuration Active .

The SiteVerification content entity allows the admin to set the label, id, and description which are displayed in the entity list.

🇦🇺Australia elc

Fixed as part of Provide exportable configuration Active .

The SiteVerification content entity has validation constraints on duplicating the filename, but does still store both types in the same ConfigEntityType for simplicity of storage and handling.

Duplicate meta tag is not restricted as it is normal operation for their to be multiple of the same meta tag name.

🇦🇺Australia elc

Fixed as part of Provide exportable configuration Active .

The SiteVerification content entity allows the admin to set the label, id, and description which are displayed in the entity list.

🇦🇺Australia elc

The "phpstan (next minor)" error is unavoidable until 📌 Backport Hook and LegacyHook Attribute Active lands. At that point both of the errors in the phpstan.neon file can be removed.

Very much open on feedback and patches on this! Will be making a 3.0.0-beta1 release in about a week if I don't get feedback, and that'll be out in the world for testing from then on.

One item of note is the simplification of the admin form for creating and editing the entities - it now only includes the name and the content fields, and does not have a full metatag entry, or a file upload field. There was already confusion about the file uploading part, fixed in 2.1.0-rc1, but it was added complexity that I didn't feel was needed in what was already a full re-write of the module.

🇦🇺Australia elc

Updating version to 3.0.x as this has become a full re-write of the module.

🇦🇺Australia elc

The module will still continue to function, however it will continue to swap between an integer value interpreted as a boolean value, and a true boolean value for this config item.

It's a boolean in the form, should be a boolean because it's a checkbox and true/false, and currently preventing the full validation of the module configuration against the schema.

The point of having the config and schema matched up is to eventually turn on config schema enforcement and validation so that config (simple and entity) and entities can be validated at the entity level instead of a form, allowing for API updates to entities without bypassing all of the validation.

🇦🇺Australia elc

Fixed upstream. Minor changes here.

🇦🇺Australia elc

This is actually a problem with variable precedence, filed on this issue 🐛 Unable to run "composer (previous major)"; no image Active

This will be fixed when upstream fixes the testing infrastructure, but it's probably also good to fix the indent.

🇦🇺Australia elc

I was going to open this up again next week as I'm still having the issue - it does seem to be via the UI and also via MR. This issue has my workings on it 🐛 Test GitLab CI issue Active .

I pushed an override to the image to get this working for the 2.0.x branch. I tried just overriding for "composer (previous major)" but it would not accept it either, so everything now uses apache instead.

Strangely, 2.1.x branch works normal now, but 2.0.x does not. The 2.1.x was "fixed" by the indent, but it also does different core opt-ins. 2.0.x only tests phpunit on the previous major. 2.1.x does previous, current and next point phpunit.

Does DDev give me a local version of the gitlab runner setup?

🇦🇺Australia elc

Getting the 2.0.x branch going meant overriding _TARGET_PHP_IMAGE_VARIANT: 'apache' for all builds. Specific composer job override didn't work, or I didn't have the right syntax.

Regardless, it kept choosing the wrong image for previous major.

🇦🇺Australia elc

For similar issues: 🐛 Test GitLab CI issue Active

Does not entirely seem to be solved by indenting. In the above, the 2.1.x branch was fixed by the indenting, but the 2.0.x branch needed to manually set _TARGET_PHP_IMAGE_VARIANT: 'apache' for all tests.

🇦🇺Australia elc

Change of title to reflect the actual change as a result of this isssue; to avoid going down the rabbit hole of suspecting something wrong with the module, make sure that Drupal works before genpass is installed.

🇦🇺Australia elc

Confirm that 3.14.2 fixes the issue for us here.

Does there need to be a change in Drupal (core-recommends)? I've just run composer update for twig everywhere and we're good to go.

The core-recommends is twig/twig": "~v3.14.0" so most everyone will now bypass 3.14.1 to .2 and never know this happened. Would it be safer to change that to twig/twig": "~v3.14.2"? Or specifically add a conflict for a known bad version?

🇦🇺Australia elc

D11 support was fixed in this issue. It is now a duplicate.

@see 📌 Automated Drupal 11 compatibility fixes for site_verify Needs review .

🇦🇺Australia elc

Fixing target branch.

2.0.x branch will not support Drupal 11.

🇦🇺Australia elc

Forced downgrading to 3.14.0 has fixed this in D10.3.6 production sites.

Is also causing testing failures in contrib with useful error indication.

🇦🇺Australia elc

Forcing twig to 3.14.0 fixes it here, and all the live sites I just dutifully updated just today.

Fix will be done in 💬 Updating phpstan and twig via Composer generates a blank page when editing a node Active .

🇦🇺Australia elc

Need fixing in 2.0.x too.

🇦🇺Australia elc

The 💬 Updating phpstan and twig via Composer generates a blank page when editing a node Active issue is what was taking down a pile of my lives sites that I've also been pulling my hair out about, so turns out this is all interrelated. They're 10.3.6 sites, so it's extended further than dev!! Updated to twig 3.14.1 earlier today so just force backing that out to get things back up and running.

Looks like it was the indenting in the gitlab-ci file!! No idea what it just decided today to go bonkers. Probably an update of something that no longer accepts poorly indented yaml files. Didn't even know it was poorly indented as that came from the original gitlab_template file I grabbed that had the huge droplet at the bottom.

The main composer job is still going ubuntu! At least it's working. Here's the job you ran:
https://git.drupalcode.org/issue/genpass-3486092/-/jobs/3279675

Anyway, yes. Both my issues are fixed and all credit is to you, thank you.

🇦🇺Australia elc

Working (yours):

Running with gitlab-runner 17.5.2 (c6eae8d7)
  on gitlab-runner-6dd988d654-qvnk8 s8ex1X2yJ, system ID: r_EFUc8A4vR1Ul
Resolving secrets
Preparing the "kubernetes" executor
00:00
"CPURequest" overwritten with "2"
Using Kubernetes namespace: gitlab-runner
Using Kubernetes executor with image drupalci/php-8.1-apache:production ...

Failing (mine):

Running with gitlab-runner 17.5.2 (c6eae8d7)
  on gitlab-runner-6dd988d654-qvnk8 s8ex1X2yJ, system ID: r_EFUc8A4vR1Ul
Resolving secrets
Preparing the "kubernetes" executor
00:00
"CPURequest" overwritten with "2"
Using Kubernetes namespace: gitlab-runner
Using Kubernetes executor with image drupalci/php-8.1-ubuntu-apache:production ...

I didn't even know I could change that. And here's the normal composer (so Drupal 11.0.5 current), which fails at phpunit which I'm guessing is because it's running the wrong software. I can't even access vanilla Drupal core functionality:

Running with gitlab-runner 17.5.2 (c6eae8d7)
  on gitlab-runner-6dd988d654-qvnk8 s8ex1X2yJ, system ID: r_EFUc8A4vR1Ul
Resolving secrets
Preparing the "kubernetes" executor
00:00
"CPURequest" overwritten with "2"
Using Kubernetes namespace: gitlab-runner
Using Kubernetes executor with image drupalci/php-8.3-ubuntu-apache:production ...

You use php-8.1-apache:production, and I'm on php-8.3-ubuntu-apache. How did I do that? How can I fix it? afk 3 hours.

🇦🇺Australia elc

I was setting _PHPUNIT_CONCURRENT: 0 in the UI to remove that as an issue, and make everything linear. But I've only done that since things started breaking. Not setting anything else other than what is in the file.

This is the file in use for main branch: https://git.drupalcode.org/project/genpass/-/blob/2.1.x/.gitlab-ci.yml?r...

Not sure if it's tangentially related, but I'm getting server 500 errors when simply accessing drupal core at admin/config/people/accounts without the contrib module even installed!. Locally, it works fine. I'm going nuts here. All of that worked a few days ago - it's in a release. 🐛 All phpunit testing failing Active is my testing of that issue.

Here's the 2.0.x branch failing to do previous major too:
https://git.drupalcode.org/project/genpass/-/pipelines/331567

Here the Site Verify module doing the same.
https://git.drupalcode.org/project/site_verify/-/jobs/3278516
It was working 4 days ago:
https://git.drupalcode.org/project/site_verify/-/pipelines/327677

Both of these use a .gitlab-ci.yml file I've written, so maybe I have some silly syntax error that just hasn't shown a fault until the last day?

🇦🇺Australia elc

Added to the test; genpass is not installed at the start, and drupal core is still giving 500 error on admin/config/people/accounts, NOT on admin.

🇦🇺Australia elc

The act of logging into drupal as an administrator with ['administer account settings', 'administer users'] and accessing $this->drupalGet('admin/config/people/accounts'); is causing a 500 error. This should be without genpass installed unless I am mistaken about the $this->modules array, from which I have removed genpass. Should check on that.

🇦🇺Australia elc

All tests work perfectly locally so this is only on the testing infrastructure that things are broken.

🇦🇺Australia elc

Without Generate Password event installed, testing is unable to access admin/config/people/accounts in current or next minor.

From the new NotInstalledTest.php =>

  /**
   * Check to see that Drupal core is working, then install genpass.
   */
  public function testDrupalWorkingWithoutAndWith(): void {
    // Check that Drupal is working before installing Generate Password.
    // THIS IS WHAT FAILS! UNABLE TO ACCESS THIS PAGE?
    $this->drupalGet('admin/config/people/accounts');
    $this->assertSession()->statusCodeEquals(200);

    // Install Generate Password.
    $this->assertTrue(
      \Drupal::service('module_installer')
        ->install(['genpass']),
      'Failed to install Generate Password module.'
    );

    // Check that the same page is still accessible.
    $this->drupalGet('admin/config/people/accounts');
    $this->assertSession()->statusCodeEquals(200);

    // Check all of the form changes.
    $this->assertSession()->pageTextContains('Account settings');
    $this->assertSession()->pageTextContains('Generate Password - User Account Registration');
    $this->assertSession()->pageTextContains('User password entry');
    $this->assertSession()->pageTextContains('Admin password entry');
    $this->assertSession()->pageTextContains('Generated password length');
    $this->assertSession()->pageTextContains('Generated password display');
  }
🇦🇺Australia elc

Released as hopefully last D7 version.

🇦🇺Australia elc

Final Bug fix release for Drupal 7

Bugs

Tasks

🇦🇺Australia elc

phpcs issue will be fixed as part of the next issue merged.

🇦🇺Australia elc

Needs porting to 2.1.x. README already says it's deprecated.

The concept of engines are intended to be removed from 3.0.x branch.

🇦🇺Australia elc

This feature doesn't belong in the module - the correct location to see if a file verification has been accessed is the the web server logs.

Reliably recording every access to the files would require any and all caching to be disabled the served verification files. I would like to enable as much caching as possible even for serving these files as this would be a very easy thing to cache.

It is then also impossible to determine when a verification service is checking the metatag; it's attempting to read bot minds, and again caching affected.

Setting as close, won't fix.

🇦🇺Australia elc

This issue is still present in the 2.1.x branch.

Notable behaviour change for the module.

🇦🇺Australia elc

7.x-1.x branch is ready for 7.x-1.3 release.

This feature won't be making into the release, or most likely any release before EOL of D7.
#1230956: Support for Exportables (Features)

🇦🇺Australia elc

The first set of patches in there completely replaces the admin ui with ctools, which would add a dependency to an otherwise lightweight module just before D7 EOL. If it was looked at 12 years ago, it would be part of it but there's no point making such a huge change now.

The second set of patches implement the features ctools export part, seem incomplete, but would be a way to get this done, however the requirement and functionality of the export should be offloaded to a sub-module "site_verify_ctools" which when enabled would abuse the hook naming possibilities to provide the parent module's hooks. The aim of the trickery would be allow site_verify to continue on without a hard ctools dependency. 2 months out from D7 EOL.

Postponing unless someone is really keen to work through making this feature.

For Drupal 10/11 see Provide exportable configuration Active .

🇦🇺Australia elc

About to be updated to remove this html rendered page output with 🐛 Impossible to create empty verification file Needs work .

🇦🇺Australia elc

Needed to add update to cope with any sites still sporting a Yahoo engine based verification. Without the engine being present, php array index notices start appear in the watchdog.

🇦🇺Australia elc

The caching is only relevant to an admin loading the edit verification page, when there are 4x calls caused by the automatic menu item loading. All other calls to the function are single.

Using a non drupal_static method as the drupal_static call is expensive in comparison to a local static, especially when there is no possibility of a static cache reset being effective.

🇦🇺Australia elc

All green.

Release will need to address:

🇦🇺Australia elc

Target correct dev branch for D11. Revert to Active just in case UpdateBot finds some needed changes.

🇦🇺Australia elc

Provide exportable configuration Active is only remaining task. It is to be target of 3.0.x branch due to large changes involved.

🇦🇺Australia elc

GitlabCI should be enabled on 7.x-1.x branch before all the changes are merged in.

🇦🇺Australia elc

Update title to more easily identify what this issue is for. Nothing to be done here.

🇦🇺Australia elc

Add 💬 Compatibility with TFA module Active .

TFA module replaces the core login process entirely, just like CAS Server does which means they are currently not compatible at all. Supporting 2FA would be nice, but would most likely need either a sub-module, or for TFA change how it operates to provide an API for tying it into any login form.

🇦🇺Australia elc

Fixed 2.1.0-rc1 has been released. This is a bridge version as 3.0.x will aim to use OOP Hooks and start at Drupal 11.1.

🇦🇺Australia elc

elc created an issue.

🇦🇺Australia elc

Release notes for 2.1.0-rc1

Bugs

  • None.

Tasks

Changes since 2.0.1

🇦🇺Australia elc

The current maintainer of this module hasn't been seen or had activity on this site in a long time. This module would most likely be considered abandoned. A shame, since I use it; I've had to fork it locally to be able to use it so it would be ideal if you could get the releases going again.

Review the issue queue to demonstrate your knowledge of the module as there's an issue ready for review, perhaps prepare it for Drupal 11 in a new issue, and then follow the abandoned projects procedure.

https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...

https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...

https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...

🇦🇺Australia elc

Small adjustment to plan - make 2.0.x release with the same core version requirement.

2.1.x branch would be the ^10.2 || ^11 compatible version, or more likely ^10.3 to make full use of Autowire.

3.0.x branch for OOP Hook and ConfigEntity changes.

🇦🇺Australia elc

D11 has been released but not all of the changes have been made to the 3.0.x branch yet. 2.1.x has been kept in sync with it. Given there are many changes that haven't been merged into 2.0.x, there is significant code changes that need some eyeballs and testing against.

To that end, the 2.1.x branch will be released as 2.1.0 being the only planned release unless a patch release is required. Initial release will be alpha as there are a lot of moved files.

Development will then continue on the 3.0.x branch for the remaining issues, especially to replace the ticket factory with something more generic. Core target for 3.0.x would be Drupal ^11.1 as that includes OOP Hooks.

🇦🇺Australia elc

This is where Drupal Core uses Attributes primarily with a fallback to Annotation:
https://git.drupalcode.org/project/drupal/-/blob/d7b47da6deda8a417760c26...

This is part of the commit linked the summary.

This is the constructor of the DefaultPluginManager which is given the Attribute and Annotation classes for discovery:
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Plugin%21...

🇦🇺Australia elc

Update target branch. Tests pass.

I've made too many changes to put it to RTBC so leaving on NR.

🇦🇺Australia elc

Contacted Dave Reid via d.o contact form as UBC doesn't have contact info on here.

Production build 0.71.5 2024