๐Ÿ‡ช๐Ÿ‡ธSpain @omarlopesino

Account created on 24 March 2014, about 11 years ago
#

Merge Requests

More

Recent comments

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I confirm that Scala returns the context as it is , but the problem is that the returned json by the formatter is a plain text of the json, and not the json decoded.

Then, in the GraphQL view, instead of returning

"myJsonField": {
"foo": "bar"
}

it returns:

"myJsonField": "\<code>{\r\n  \"foo\": \"bar\"\r\n}\</co..>"

This MR allows recognizing this specific case and do the conversion.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

The MR fixes the problem. it just fixes the parenthesis so each empty call is separated. Please review, thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

All the warnings reported by static analysis have been fixed, which led to some small refactors. It should preserve the old behaviour. Please review, thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I agree that would be a definitive solution. In the meanwhile, a patch generated from this MR can be used to be able to view status report in sites using xray audit but not using paragraphs.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Ups my bad, I didn't check the submodules. This is already supported by the graphql comments submodule, thanks for letting me know.

Would it be good idea supporting the rest of fields of the comment entity type? I mean, the entity_id, entity_type, field_name , and pid.

I've updated the MR updating the Comment GraphQLEntityType plugin with those fields.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

The MR solves the problem for me, please consider reviewing and merging, thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

MR created. Please review, thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Created MR. Please review, thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

omarlopesino โ†’ made their first commit to this issueโ€™s fork.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Created MR. PLease review, thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I've just added a commit that ensures there is a field that sets which are the allowed query tags, so if a query tag is passed dinamically, it does not add unwanted query tags.

Please review, if it looks good I can add tests.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Agree with #5. Closing this issue in favor of https://www.drupal.org/project/graphql/issues/3491736 ๐Ÿ› Cache collision when multiple servers are using the same schema plugin Active , which already applies fixes detected at this issue.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Merge request re-rolled. Tests are passing now. Ready to review again.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I've just adapted the tests to the new functionality, ready to review again.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I find this issue pretty useful for my use case. I want to build an API and having generic mutations helps a lot to get all the job done.

Don't mind me adding to the MR some improvements:

- Retrieve uuid in generic entity queries.
- Allow reading graphql compose configuration to use the same field names than in the rest of graphql queries.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I have created a MR with the proposed resolution, please consider reviewing and merging it into the module. Thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Gitlab CI tests added. No phpcs/phpstan errors found :) just a minor cspell error that is just fixed in the MR.

Please review, thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I've just seen in this commit the compatibility with Drupal 11 is added: https://git.drupalcode.org/issue/group_term-3507121/-/commit/8997937bb25...

Adding a .gitlab-ci.yml file so that it is possible confirm compatibility with Drupal 11 through tests / static analysis.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

About this issue, I am aware of this problem, and we have this important problem if we fix it: If we release a new version changing the module name, the sites using this module would break. It is true that uninstalling the site , updating the module, and reinstalling it would fix it, but having to reconfigure an entire module should be avoided. Any ideas to deal with this problem?

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Patch from #2 is empty. Is it possible that you have renamed it but the patch haven't been generated correctly?

I suggest you following these instructions โ†’ or use Drupal GItalb repositories โ†’ to create a merge request.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I notices too late about this issue :/ and I don't know if my answer will be useful as possibly the root problem is fixed somehow. However, I will reply in case this is needed for future use cases.

The To field is the same field used at the standasrd Webform email handler, as you mention it must be filled with either the manual list of emails or a token.

To add subscribers dynamically, it is needed to code it as it is not possible to dynamically get them out of the box. There are two possible solutions that needs to be evaluated:

  1. In a custom module, implement hook_token_info and hook_tokens to provide a token with the list of subscriber emails, separated by comma.
  2. If the subscribers are saved through a contributed module that manage newsletter subscriptions, a submodule into webform entity email can be created.
๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

This has been released releases ago, but forgot to move the issue to 'Fixed'.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

LGTM. Added to merge train, and it will be released in alpha14

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Currently we are using select queries โ†’ , which already supports database prefixing, as they are automatically added by Drupal API.

If your wordpress database has a database prefix, it should be declared at database definition at settings.php (or other settings file) .

Example:

$databases['legacy']['default'] = [
  'database' => 'legacy',
  'username' => 'db',
  'password' => 'db',
  'prefix' => 'elem_',
  'host' => $host,
  'port' => $port,
  'driver' => $driver,
];

This example adds the 'prefix' => 'elem_', property to let Drupal nows the database prefix on queries. This should fix the issue. Indeed, I had to do this on my project to make it works with a wordpress site that has database prefixes.

Let me know if that fixes the problem for you.

Marking task as Needs review in the meanwhile.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I've merged and there were no issues. Released at 1.0.1

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Merged and released at 1.1.9. Now the module is fully compatible with Drupal 11.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

The tests fails, I guess because Salesforce module was not yet compatible with 11, but now it is compatible.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Thanks for noticing this! This change will prevent false positives / negatives. Merging. It will be released at 1.0.1

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Released at 2.0.2

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Released at 2.0.2. Thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

After reviewing it looks good to me. For a moment I have thought on what happens with this requesst as it is paged. and I've ensured that is possible to add pager arguments through the query.

It will be released at 2.0.2

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Thanks, I've just commited this into the main branch and it will be released at 2.0.2

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

It looks good to me, thanks for fix the method so we get the correct WordPress term ids!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

PHPunit tests fails after adapting the code to Drupal 11. It is needed reviewing what is happening and fix it.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

After reviewing everything is enough okay. Version 2.0.0 has been released and now the module is stable.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Release candidate created. After reviewing a stable version will be created, probably on Monday.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Drupal 11 compatibility changes have been merged and released at 1.0.1

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

This module has been refactored in 2.x version and currently there is no support for the development version.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

THe version 2.x will support the latest Drupal version.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Most of the steps are done, the pending points are adding the status report , RC, review and create the stable version :)

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Working on it.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Sure! It is not possible contacting them through Drupal (they do not allow be contacted directly from drupal.org). I've sent a direct message through drupal.org Slack. Hopefully they respond.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I have tested it on my site and I confirm the ajax block form can be properly configured in Drupal 11. Thanks!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

I wonder if this module should use plugins to support the different purger types, so this escalates better.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

This issue is really interesting, thanks for the contribution @kevinb623 . Supporting queues may drastically improve the performance when there are too many URLs to purge.

Also many thanks for helping reviewing @dpi, it saved me time.

The most priority changes needed to merge this are:

  1. Make form labels translatable
  2. Hook install to configure existing sites.
  3. Coding standards must pass, Currently, this module is integrated with Gitlab CI to help on this purpose.
  4. Ideally, applying every suggestion mentioned in the feedback.
๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

omarlopesino โ†’ made their first commit to this issueโ€™s fork.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Thanks for all your feedback.

I agree that ยก purging additional URLs than the self URL is out of the main purpose of this module. However, it is a good idea start giving support to it as purging image style URLS is consequent to purging the original file URL. Removing only the original file may leave the files cache inconsistent (older image in not purged image styles, new image in new image styles).

I agree with the solutions proposed at #6. My only doubt is how to separate image style logic from 'purge file' logic. A submodule looks good, but most sites uses image styles. Maybe we can separate the logic by dispatching a hook that lets adding more paths based on the current file. What do you think?

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Released at 1.1.2, Please note my comment in #5 in case it might affect sites already using the patch.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

The changes looks good for the needed use case (dynamic base URLs).

I've added a change to prevent main base URL to not be removed when URLs are altered: https://git.drupalcode.org/project/purge_file/-/merge_requests/7/diffs?c...

Merging and releasing.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Thanks! Gitlab CI integration has been released at 1.1.1 version.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Drupal 11 compatibility changes have been released at 1.1.1 version.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Hi. Many thanks for offering as a co-maintainer!

I've just merged the automated bot Drupal 11 minimal adaptations and it seems to be enough. However, I agree adapting to new Drupal features that are only available in newer versions.

Hope you don't mind me asking you to open an issue and with a merge request with those improvements that uses Drupal 10.3+ new features? After seeing everything is ok, I would add you as a co-maintainer so you are free to release.

I've just created a 2.x branch for this purpose.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

The MR works fine into my site (Drupal 11). I've updated the MR thinking that the MR needs reroll, but i guess it is for the D7 patch, not the MR.

I've noticed that for example, when I create a newsletter issue, and I send it, if I create a translation, I can't send the translation of that content. This implies that if I want to send a newsletter in multiple languages, I need to create every translation before sending it.

Could it be good idea to re-queue the newsletter when a translation is created?

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

omarlopesino โ†’ made their first commit to this issueโ€™s fork.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

After integrating the last issues this problem has been fixed, sorry for not noticing before. Thank you!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Looks good to me. It will be ready at 1.2.0

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Looks good to me. It will be ready at 1.2.0

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

Looks good to me. It will be ready at 1.2.0

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

omarlopesino โ†’ made their first commit to this issueโ€™s fork.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

MR fixing the problem, please review!

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

omarlopesino โ†’ made their first commit to this issueโ€™s fork.

๐Ÿ‡ช๐Ÿ‡ธSpain omarlopesino

It breaks in Drupal 11.1 because it does not have the function layout_builder_at_form_entity_form_display_edit_form_alter anymore, which is used by this module.

Please check this patch that adds backwards compatibility among different Drupal versions. if you see it ok, we can add it to the bot merge request.

Production build 0.71.5 2024