Zürich, Switzerland
Account created on 28 February 2014, almost 11 years ago
#

Merge Requests

More

Recent comments

🇨🇭Switzerland dpacassi Zürich, Switzerland

Played around a bit more, I think there are two points that we haven't thought of.

1. Content types already limited by the field settings
If I add an entity reference field and limit it to e.g. nodes of type "article" in the field settings but use the new LinkIt widget, that widget will return a list of nodes with the filters set on the linkit profile.
I think that's slightly wrong as I'd say the field settings limitations are more important than the linkit profile settings.
My proposal would be to simply combine both filters? Like use the LinkIt profile filters and then apply the field setting filters additionally.

2. Searchable metadata
Displaying the metadata is already great but it would be even better if that data is also searchable?
If the widget displays the username in the metadata, we could search for an username instead of the title and the widget would return the entities. Fancy, right?
However, we probably want to add an option to the form display settings to set if we want to search the metadata data as well.

Would love to help out but December is quite busy for me as probably for most of us but still wanted to point out to these two points.

🇨🇭Switzerland dpacassi Zürich, Switzerland

Wow, this would be *really* amazing, I was just googling for solutions and came across https://www.drupal.org/project/linkit_references (but that's for D7), so having this in LinkIt core would be so great!

🇨🇭Switzerland dpacassi Zürich, Switzerland

Opened a MR ( https://git.drupalcode.org/project/gin/-/merge_requests/510 ), and also adding the patch file as an static asset to this issue.

The selector is fine, it should just also ignore elements that have the class .ajax-new-content.

@mglaman, can you check if the MR/patch file fixes the issue on your side?

🇨🇭Switzerland dpacassi Zürich, Switzerland

Created a 3.x branch and a 3.0.0 release.

🇨🇭Switzerland dpacassi Zürich, Switzerland

Fixed it in the 3.x version of the module, thanks for the help!

🇨🇭Switzerland dpacassi Zürich, Switzerland

Added the changes to the 3.x branch of the module, if you want to extend the view mode selection per entity type, I'm happy to merge future MRs/patches (hopefully quicker this time).

🇨🇭Switzerland dpacassi Zürich, Switzerland

Thanks, added the change to the 3.x version of the module!

🇨🇭Switzerland dpacassi Zürich, Switzerland

Oops, that comment was meant for another issue.
However, I still keep the MR closed/won't apply the changes as per https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or... I quote:

Please note that the Drupal Coding Standards have not yet been updated to allow Markdown files, conversion should only be undertaken at the request of an existing project maintainer.

So, there's really no need to update the MD files for now.

🇨🇭Switzerland dpacassi Zürich, Switzerland

Pull request created, see:
https://git.drupalcode.org/project/entity_export_csv/-/merge_requests/7

Attaching a static patch file in case the PR gets rerolled.

🇨🇭Switzerland dpacassi Zürich, Switzerland

dpacassi created an issue.

🇨🇭Switzerland dpacassi Zürich, Switzerland

Adding a static file from the current stage of https://git.drupalcode.org/project/viewsreference/-/merge_requests/37 in case the MR gets updated/rerolled.

🇨🇭Switzerland dpacassi Zürich, Switzerland

Adding a static file from the current stage of https://git.drupalcode.org/project/viewsreference/-/merge_requests/45 in case the MR gets updated/rerolled.

🇨🇭Switzerland dpacassi Zürich, Switzerland

We ran in the same issue, following code should work with the current state on dev:

/**
 * Implements hook_oauth2_server_user_claims_alter().
 *
 * @param array $claims
 *   An array of claims.
 * @param \Drupal\user\UserInterface $account
 *   A user account object.
 * @param array $requested_scopes
 *   An array of requested scopes.
 */
function your_module_oauth2_server_user_claims_alter(array &$claims, \Drupal\user\UserInterface $account, array $requested_scopes) {
  if (in_array('openid', $requested_scopes)) {
    $claims['zipcode'] = $account->get('field_zip')->value;
    $claims['town'] = $account->get('field_city')->value;
    $claims['country'] = $account->get('field_country')->value;
    // etc.
  }
}
🇨🇭Switzerland dpacassi Zürich, Switzerland

I can reproduce the same error with the Claro (core) theme.
As it happens there too, I don't think it's a bug from the themes but from the module itself.

The themes expect a type to be set, which is currently not.
I've created a MR: https://git.drupalcode.org/project/bootstrap_datepicker/-/merge_requests/6 and uploaded a static patch (#6) to fix this issue.

🇨🇭Switzerland dpacassi Zürich, Switzerland

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

🇨🇭Switzerland dpacassi Zürich, Switzerland

Thanks for the fix, using it on a Drupal site which had this issue.
+1 RTBC

🇨🇭Switzerland dpacassi Zürich, Switzerland

Well, I just found out the project's custom theme overrides a field template (field--entity-reference.html.twig) and has only following content:

{% for item in items %}
  {{ item.content }}
{% endfor %}

I've created a new field template specifically for my newly created field (field--paragraph--field-photoswipe-images.html.twig) which has the content of the classy field template:

{% if label_hidden %}
  {% if multiple %}
    <div{{ attributes }}>
      {% for item in items %}
        <div{{ item.attributes }}>{{ item.content }}</div>
      {% endfor %}
    </div>
  {% else %}
    {% for item in items %}
      <div{{ attributes }}>{{ item.content }}</div>
    {% endfor %}
  {% endif %}
{% else %}
  <div{{ attributes }}>
    <div{{ title_attributes }}>{{ label }}</div>
    {% if multiple %}
      <div>
    {% endif %}
    {% for item in items %}
      <div{{ item.attributes }}>{{ item.content }}</div>
    {% endfor %}
    {% if multiple %}
      </div>
    {% endif %}
  </div>
{% endif %}

The gallery now works without my patch.
Sorry for the fuss, should have tested it first on a vanilla installation :|

🇨🇭Switzerland dpacassi Zürich, Switzerland

So, I've checked again on a vanilla Drupal 10.1.5 instance and can confirm that everything works as supposed.
When I've encountered this bug and saw the other issue, it seemed so obvious that there might have been a mistake in the fix, specially since I didn't overwrite any templates or implemented any hooks.
It was a new entity type (paragraph) with a new media field but yeah, there's probably still a contrib or custom module interfering with the gallery on the real project.

Closing the issue for now, I might come back with additional info on my installation once I've fixed it to work without the patch.

🇨🇭Switzerland dpacassi Zürich, Switzerland

I know that Different/wrong html when there is only one image Fixed is already in the dev branch and that the tests have been updated.
But I need a quickfix for this, so for now, I'm uploading a patch which simply undoes the changes of Different/wrong html when there is only one image Fixed .
That seems to work for me for now, though I haven't tested it with single images.

🇨🇭Switzerland dpacassi Zürich, Switzerland

MR created.

When getting $container->get('logger.factory') we get a LoggerChannelFactory object which implements LoggerChannelFactoryInterface and not LoggerChannelFactory.

See attached patch.

🇨🇭Switzerland dpacassi Zürich, Switzerland

dpacassi created an issue.

Production build 0.71.5 2024