Asturies
Account created on 4 March 2007, about 18 years ago
#

Merge Requests

More

Recent comments

🇪🇸Spain pcambra Asturies

Well there's no conflicts because there are no changes now.

🇪🇸Spain pcambra Asturies

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

🇪🇸Spain pcambra Asturies

I think this is still happening on 2.x

🇪🇸Spain pcambra Asturies

Finally had time to look at this and I think it's fixed, adding it to 2.x and 3.x

🇪🇸Spain pcambra Asturies

Finally had time to look at this and I think it's fixed, adding it to 2.x and 3.x

🇪🇸Spain pcambra Asturies

pcambra created an issue.

🇪🇸Spain pcambra Asturies

pcambra created an issue.

🇪🇸Spain pcambra Asturies

I understand what you're explaining. What's missing is an upgrade path as mentioned earlier.

I will add a 3.x branch for the DER changes :)

🇪🇸Spain pcambra Asturies

This is definitely missing a migration, we can't just do this.

I still see that this overlaps with Allow Like Entity to support multiple entity types Active , I feel we should be do one or the other but not both. I am not opposed of adding a dynamic ER dependency.
This probably justifies opening a 3.x branch, but we still need an upgrade path.

🇪🇸Spain pcambra Asturies

pcambra created an issue.

🇪🇸Spain pcambra Asturies

What's going on is that the tabs are picked from the latest translation revision from ERR so if you have a site in English and Spanish, whatever you save last, will win, adding a MR shortly.

🇪🇸Spain pcambra Asturies

I'm going to close this one with the changes suggested by the bot only, please add follow up issues if there are any other changes you'd like to make.

🇪🇸Spain pcambra Asturies

Let's make this simpler and do just the icon, if someone wants the text, we can open another task.

🇪🇸Spain pcambra Asturies

You normally don't put your own patches as RTBC.

I've rebased this to be against 2.x

🇪🇸Spain pcambra Asturies

Please remove anything that is not D11 related and open separate issues for that.

🇪🇸Spain pcambra Asturies

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

🇪🇸Spain pcambra Asturies

Example on how we could apply this:

on the .module file:

/**
 * Implements hook_field_info_alter().)
 */
function my_module_field_info_alter(&$info) {
  if (isset($info['block_field'])) {
    // Override the list class for the block_field field type to avoid comparing
    // plugin changes between revisions.
    // @see \Drupal\Core\Field\FieldItemList::hasAffectingChanges()
    // @see https://www.drupal.org/project/block_field/issues/3517759
    $info['block_field']['list_class'] = '\Drupal\my_module\BlockFieldItemList';
  }
}

The custom BlockFieldItemList class:

<?php

namespace Drupal\my_module;

use Drupal\Core\Field\FieldItemList;
use Drupal\Core\Field\FieldItemListInterface;

/**
 * Avoids block plugin fields to be compared between revisions.
 */
class BlockFieldItemList extends FieldItemList {

  /**
   * {@inheritdoc}
   */
  public function hasAffectingChanges(FieldItemListInterface $original_items, $langcode) {
    // If there are different items, then it is a change.
    if (count($this) != count($original_items)) {
      return TRUE;
    }

    foreach ($this as $delta => $item) {
      if ($item->getProperties()['plugin_id']->getValue() != $original_items[$delta]->getProperties()['plugin_id']->getValue()) {
        return TRUE;
      }
    }

    return FALSE;
  }

}

🇪🇸Spain pcambra Asturies

@macsim, oh dear, apologies for that, I didn't noticed that the default option didn't include you, should be fixed now!, thanks for letting me know!

🇪🇸Spain pcambra Asturies

Could you please confirm if this has been solved in branch 3.x?

🇪🇸Spain pcambra Asturies

Is this something that happens on 3.x branch as well?

🇪🇸Spain pcambra Asturies

Let's merge this and fix whatever is missing afterwards, thanks all for the hard work on this one.

🇪🇸Spain pcambra Asturies

Well,. looking at the compatibility table in https://www.drush.org/13.x/install/#drupal-compatibility we cannot have a 3.x release that supports Drupal 10 and 11 AND Drush 11, so I'd be OK dropping it for 3.x

🇪🇸Spain pcambra Asturies

Should this be needs review?

🇪🇸Spain pcambra Asturies

I would suggest the 2.x branch is removed from the project page then, as it might be expected that users see a D11 version and they read only that.

🇪🇸Spain pcambra Asturies

Added langcode to the query and reference to the Drupal issue

🇪🇸Spain pcambra Asturies

I just found this issue myself, I think it doesn't really matter to group by uid, but we definitely need to group by language.

Production build 0.71.5 2024