Madrid
Account created on 25 November 2008, almost 17 years ago
#

Merge Requests

More

Recent comments

🇪🇸Spain tunic Madrid

tunic created an issue.

🇪🇸Spain tunic Madrid

Oh, I see it:

PHPUnit\TextUI\TestDirectoryNotFoundException: Test directory "/builds/issue/drupal-3547258/core/PATH-TO/core/tests/Drupal/Tests" not found in /builds/issue/drupal-3547258/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/TestSuiteMapper.php:72

I guess I'm modifying a file used by the testing system itself.

🇪🇸Spain tunic Madrid

I've tested it on the site I originally detected the problem and it works better but still not perfect. It went from 155 broken links to only 27. Some that are detected as broken links are not broken links. Fo example, this one:

Now, as you can see, the URL is correct (formaci%C3%B3n, urldecoded, is formación), but Entity Mesh still detects it as broken.

The link is on WYSIWYG field; I guess this is not relevant, but I drop it here just in case it is.

🇪🇸Spain tunic Madrid

Ouch, yes, sorry, I was playing with both modules and I went to the wrong issue queue!

🇪🇸Spain tunic Madrid

tunic created an issue.

🇪🇸Spain tunic Madrid

Replace Drupal 8/9/10 by just Drupal 8+

🇪🇸Spain tunic Madrid

Not sure why tests failed.... it is core/phpunit.xml.dist file used in the tests?

🇪🇸Spain tunic Madrid

Added several tokens following documentation example mentioned in the issue body:

  • PATH-TO: path to docroot (usually this is a ' web' folder).
  • LOCAL-SITE-URL: URL to the site (either accessing from the user computer or if it is a DDEV setup it could be the internal URL)
  • DB-SCHEME: database scheme: mysql, postgres.
  • USERNAME: database username.
  • PASSWORD: database password.
  • HOST: database host.
  • DBNAME: database name in the host.
  • BROWSER-OUTPUT-BASE-URL: URL to the site when accessed from the user computer using a browser-

Some paths where changed to be coherent with PATH-TO (so we only need one PATH-TO token, not two different ones with slightly different values).

🇪🇸Spain tunic Madrid

tunic created an issue.

🇪🇸Spain tunic Madrid

Hi, I'm from Metadrop and we are using https://github.com/Metadrop/ddev-lighthouse internally for our tests and QA process. We would be glad to help if you want to use it or take ideas from it.

We are currently working to improve it to make it easier to use.

🇪🇸Spain tunic Madrid

Gitlab template was added. This not much but enough to start.

🇪🇸Spain tunic Madrid

Drupal is not supported so I'm closing this. Feel free to reopen if this applies to a current supported release.

🇪🇸Spain tunic Madrid

Drupal 7 is not supported anymore so I'm closing this as outdated.

Strange error indeed.

🇪🇸Spain tunic Madrid

This doesn't happen in current maintained branches so I'm closing it as outdated.

🇪🇸Spain tunic Madrid

Fixed in 1.0.1.

🇪🇸Spain tunic Madrid

Too many for now, let's close this and fix warning later.

🇪🇸Spain tunic Madrid

The template has been added. Let's fix the warnings.

🇪🇸Spain tunic Madrid

Patch works ok, error is gone.

Raising to critical as the site is not working at all.

🇪🇸Spain tunic Madrid

I think is fixed, can you try the dev version with the fix?

🇪🇸Spain tunic Madrid

Ok, I see the problem. During 📌 Drupal 10 compatibility fixes Fixed the linked_media_library widget was changed: the field type it can be applied to changed from linked_entity_reference to linked_media_library. This was to solve an error apparently due to Drupal 10 compatibility, although it was just because Media Library module was not enabled. Changing the field type to something non-existent "solved" the issue because the widget was not processed anymore.

The problem should be solved removing the widget if the Media Library module is not found.

🇪🇸Spain tunic Madrid

There is no field 'linked_media_library'.

I 'm not sure what this means. If you mean that you expect the module to create a linked_media_library field, that is not the case for this module. The user should create the field as needed. The module just provides the widgets and behaviour so it can be added to a field.

If this is not what you meant I would need more info to fully understand the problem.

🇪🇸Spain tunic Madrid

The Config Inspector module, apart from inspect configuration, also checks the conf and the schema. Inspiration can be taken from it (because depending on this module seems too much): https://www.drupal.org/project/config_inspector

Also this change record may be relevant: https://www.drupal.org/node/3362879

🇪🇸Spain tunic Madrid

Great! Stable release published, thanks!

🇪🇸Spain tunic Madrid

Well, it as much simpler. The fields are in different order when loaded from AJAX.

So only thing needed is to add a #weight to have always the same order and avoid confusing the user, like my case.

🇪🇸Spain tunic Madrid

This was solved time in commit e43bd860 by eduardo morales alberti.

🇪🇸Spain tunic Madrid

It is broken due to category LinkedEntityReference @FieldType annotation.

🇪🇸Spain tunic Madrid

I would say it is because composer is using the module without taking into account the composer.json of the module. This makes sense because that composer.json file is, as far as I know, for Packagist, not for the local composer.

Once there is a release of this module composer will be able to solve the issue.

My idea is wait a few days, maybe next week, to receive feedback from other users, then publish a new release.

If no feedback is received I will publish the release anyway, as the new code worked ok on your site.

🇪🇸Spain tunic Madrid

Let's be optimistic and merge this.

🇪🇸Spain tunic Madrid

I guess I forgot to add compatibility with Field Group 4.x.

Can you try the updated issue fork?

🇪🇸Spain tunic Madrid

Hi @sirclickalot, the patch to upgrade is here: 💬 Drupal 11 release for this? Active

I will help me a lot if you provide feedback there.

Thanks!

🇪🇸Spain tunic Madrid

Hi, thank you very much for your work. I'm a new maintainer focused in the D11 release. I had to do additional work for this, please check 💬 Drupal 11 release for this? Active .

It would be great if someone could test this with a real site, because the one I'm using is quite small. More testing will help a lot.

I'm closing this issue to have all the info for the D11 release in the other issue.

I'm going to add all the people who helped to the other issue to give credit, thanks!

🇪🇸Spain tunic Madrid

Added patch for testing.

🇪🇸Spain tunic Madrid

tunic changed the visibility of the branch 3498382- to hidden.

🇪🇸Spain tunic Madrid

tunic changed the visibility of the branch 3498382-drupal-11-release to hidden.

🇪🇸Spain tunic Madrid

Hi, let me try to do the upgrade.

🇪🇸Spain tunic Madrid

New maintainer on duty here.

I didn't have this module under my radar, now I have it, I think I can upgrade it soon.

🇪🇸Spain tunic Madrid

No known problems.

🇪🇸Spain tunic Madrid

No known problems.

🇪🇸Spain tunic Madrid

Typo and link to examples.

🇪🇸Spain tunic Madrid

Better format, weight.

🇪🇸Spain tunic Madrid

Thanks for the review (and the module!), Luke.

Regarding the post-update hook , you mean that:


/**
 * Flush cache to regenerate hash with sorted parameters.
 */
function oembed_lazy_load_post_update_regenerate_hash(): void {
}

would be enough? That would be the only change required, right?

🇪🇸Spain tunic Madrid

This patch solved the exact situation described in the issue: a site behind a proxy that was sorting the query params, and this module was returning access denied.

Moving to a bug report as the module should just check the integrity of the params, not the ordering.

I suspect the errors reported by the CI are not related to this MR, and this why I not moving it to RTBC, but I would say it is.

🇪🇸Spain tunic Madrid

For anyone coming to this issue with the same problem I confirm that requrie-dev trick solved the issue.

Thanks!

🇪🇸Spain tunic Madrid

IT seems there's a workaround: https://www.drupal.org/project/gitlab_templates/issues/3518843#comment-1... 🐛 Dependencies in submodules are not taken into account Active .

🇪🇸Spain tunic Madrid

No, no module had o tests before, not in Drupal CI but also not in Gitlab CI.

The require-dev seems like a reasonable way to solve this in a simple way without increasing complexity in the GitLab CI testing workflow, I'll try that, thanks!

🇪🇸Spain tunic Madrid

It seems the problem with phpstan is a bug in the Gitlab CI templates, see 🐛 Dependencies in submodules are not taken into account Active .

🇪🇸Spain tunic Madrid

There's an error from phpstan tan I can't fix.

The problem is:

------ ------------------------------------------------------------------------ 
  Line   modules/image_styles_generator_webp/src/DerivativeWebpWarmer.php        
 ------ ------------------------------------------------------------------------ 
  31     Parameter $webp of method                                               
         Drupal\image_styles_generator_webp\DerivativeWebpWarmer::__construct()  
         has invalid type Drupal\webp\Webp.                                      
 ------ ------------------------------------------------------------------------ 

And in line 31 we can see:

public function __construct(LoggerInterface $logger, Webp $webp) {

We can expand the header:

  /**
   * Constructs a Regenerator object.
   *
   * @param \Psr\Log\LoggerInterface $logger
   *   The logger channel to log all info.
   * @param \Drupal\webp\Webp $webp
   *   The webp service.
   */
  public function __construct(LoggerInterface $logger, Webp $webp) {

And check that at the beginning of the file there's a use statement.

use Drupal\webp\Webp;

The Webp class if from another module (the Webp module) but it is declared in the dependencies of the image_styles_generator_webp submodule.

🇪🇸Spain tunic Madrid

phpstan errors and phpcs errors are standard code errors and can be easily fixed.

However, cpsell is more tricky. The typos must be fixed, but words like "commandfile" are legit so we have to instruct cspell to ginore certain words that are not typos.

For this, we need to create a .cspell.json file (see https://project.pages.drupalcode.org/gitlab_templates/jobs/cspell/) with this content.

variables:
  _CSPELL_WORDS: 'commandfile'
🇪🇸Spain tunic Madrid

I've changed the option from fast to skip-existing, apart from that the patch was good, thanks!

🇪🇸Spain tunic Madrid

This is indeed very interesting!

Let me review it and come back with my findings.

🇪🇸Spain tunic Madrid

Remove comments on Responsive Thumbnail Image as there's a D11 release available now

🇪🇸Spain tunic Madrid

I guess this will be fixed when 🐛 Svg images does not render when applying image style Needs work lands into core.

While that happens, patchs are welcome.

🇪🇸Spain tunic Madrid

This module uses the settings form of ResponsiveImageFormatter (it just extends this class and calls parent's settingsForm). This should fixed in core. This way, all image formatters will benefit from the fix.

See https://www.drupal.org/project/drupal/issues/1291262 Add 'alt' and 'title' tokenized text options for image formatters, and a 'title' option for the generic file formatter Active .

🇪🇸Spain tunic Madrid

There's a new 2.x branch where this patch is going to be merged. We'll have a Drupal 11 release and switch to semver.

🇪🇸Spain tunic Madrid

Hi glynster, thanks for the report and the patch!

I would like to reproduce the bug, can you provide the steps to reproduce it?

🇪🇸Spain tunic Madrid

Can you provide more info on this issue?

🇪🇸Spain tunic Madrid

Please feel free to reopen if there's a way to replicate the issue.

🇪🇸Spain tunic Madrid

Thanks, it looks good to me!

I would prefer to wait for comments from @lpeidro before committing this forward but I think it is ok to move it to RTBC.

🇪🇸Spain tunic Madrid

Tested, it seems to work ok, available in release 2.1.0 already deployed.

Production build 0.71.5 2024