Comments

tim.plunkett’s picture

Status: Active » Needs review
StatusFileSize
new2.96 KB

Thanks for opening the issue!

Status: Needs review » Needs work

The last submitted patch, action-2039021-1.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Needs review
StatusFileSize
new2.22 KB
new2.48 KB

Apparently it hates caching (wasn't cached in HEAD).

dawehner’s picture

Status: Needs review » Needs work
+++ b/core/lib/Drupal/Core/Action/ActionManager.phpundefined
@@ -7,31 +7,37 @@
-  public function __construct(\Traversable $namespaces) {
-    $this->discovery = new AnnotatedClassDiscovery('Action', $namespaces, array(), 'Drupal\Core\Annotation\Action');
...
-    $this->factory = new ContainerFactory($this);

Was there a special reason it didn't had a cache before?

tim.plunkett’s picture

Issue tags: +Plugin system
StatusFileSize
new2.29 KB
new3.03 KB

No idea. Let's see what breaks.

tim.plunkett’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, action-2039021-5.patch, failed testing.

berdir’s picture

Getting a "The plugin (node_delete_action) did not specify an instance class." during the installation. I guess it's trying to do something with the configuration before the caches are cleared?

We might need a generic solution to clear plugin caches when a new module is installed? As this could happen with stuff too?

I know that I had to add a manual cache clear where I'm looking for now plugins in a hook_modules_installed() to create default configuration for them.

tim.plunkett’s picture

I saw the same thing.

I don't know why we don't have that problem for views stuff as well.
I hate to think it might be an alphabetical thing...?

Is it worth having tagged plugin managers?

public function clearAllCachedDefinitons() {
  foreach ($this->pluginManagers as $manager) {
    if ($manager instanceof CachedDiscoveryInterface) {
      $manager->clearCachedDefinitions();
    }
  }
}

I'm not sure...

aks22’s picture

Status: Needs work » Needs review
Issue tags: -Plugin system

#5: action-2039021-5.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, action-2039021-5.patch, failed testing.

tim.plunkett’s picture

xano’s picture

Assigned: Unassigned » xano
Issue summary: View changes

Picking this up.

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new2.99 KB

Re-roll. No changes. PHPUnit passes.

Status: Needs review » Needs work

The last submitted patch, 14: drupal_2039021_14.patch, failed testing.

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new2.98 KB
new1.02 KB
berdir’s picture

16: drupal_2039021_16.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 16: drupal_2039021_16.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new3 KB

Re-roll, patch applied fine with git apply -3, then updated the cache bin to discovery.

dawehner’s picture

Status: Needs review » Needs work
  1. +++ b/core/lib/Drupal/Core/Action/ActionManager.php
    @@ -7,31 +7,41 @@
         $this->discovery = new AnnotatedClassDiscovery('Plugin/Action', $namespaces, 'Drupal\Core\Annotation\Action');
    

    We don't need to initialize the discovery here. The parent cares about that and you never know, maybe at some point someone comes up with derivatives for it.

  2. +++ b/core/lib/Drupal/Core/Action/ActionManager.php
    @@ -7,31 +7,41 @@
         $this->discovery = new AlterDecorator($this->discovery, 'action_info');
    ...
    +    $this->alterInfo('action_info');
    

    Let's not alter it twice.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new3 KB
new912 bytes

Thanks!

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Thank you!

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

  • Commit e969642 on 8.x by catch:
    Issue #2039021 by tim.plunkett, Berdir, Xano | akshay.swnt22: Convert...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.