If you look at DisplayPluginBase::init() you will see some code
which tries to handles old configuration.

Before drupal8 we should clean them up so we don't have to handle with that old piece of code.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs review
FileSize
14.67 KB

Here is a first patch which seems to remove all what is left.

Status: Needs review » Needs work

The last submitted patch, 1748118-clear-init-methods.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
29.28 KB
16.72 KB

There were multiple problems:

  • There were update specific tests
  • There were non updated tests
  • There was some code removed by accident.

Status: Needs review » Needs work

The last submitted patch, 1748118-clear-init-methods-3.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
603 bytes
29.62 KB

And a bug in the test.

Status: Needs review » Needs work

The last submitted patch, 1748118-clear-init-methods-5.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Needs review
FileSize
22.82 KB

Status: Needs review » Needs work

The last submitted patch, views-init-1748118-7.patch, failed testing.

aspilicious’s picture

/ If any of the displays use jump menus, we want to add fields to the view
+    // that store the path that will be used in the jump menu. The fields to

Jump menus are moved to ctools? If thats the case can't we move this to ctools too?

dawehner’s picture

Well this already got moved, the patch sadly is against the wrong version, because there was no reroll yet.

dawehner’s picture

Status: Needs work » Needs review
FileSize
16.23 KB

Posted a recent version of the patch without the test changes as tim mentioned.

Status: Needs review » Needs work

The last submitted patch, 1748118-init-update-11.patch, failed testing.

aspilicious’s picture

Filter group thingies need to be changed

dawehner’s picture

Status: Needs work » Needs review
FileSize
18.57 KB
969 bytes

Some more cleanup but i still don't have a clue, why the filter tests don't work.

Status: Needs review » Needs work

The last submitted patch, 1748118-init-update-14.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Needs review
FileSize
18.68 KB

I tested just the Numeric one locally, and fixed it. I think it might help the others as well?

aspilicious’s picture

     if (!empty($options['exposed']) && !empty($options['expose']['operator']) && !isset($options['expose']['operator_id'])) {
-      $this->options['expose']['operator_id'] = $options['expose']['operator_id'] = $options['expose']['operator'];
+      $this->options['expose']['operator_id'] = $options['expose']['operator'];

&& !isset($options['expose']['operator_id']

still needed?

tim.plunkett’s picture

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