Comments

dawehner’s picture

StatusFileSize
new11.31 KB
git diff --stat
 .../views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php |  187 +++++++------------------------
 1 file changed, 42 insertions(+), 145 deletions(-)
dawehner’s picture

Status: Active » Needs review

Let's see what the testbot tells us.

Status: Needs review » Needs work

The last submitted patch, drupal-1888694-1.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new13.89 KB
new2.59 KB

Let's fix the tests.

damiankloip’s picture

Status: Needs review » Needs work
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.phpundefined
@@ -2179,7 +2143,9 @@ public function submitOptionsForm(&$form, &$form_state) {
+      $this->setOption($section, $form_state['values'][$section]);

@@ -2188,120 +2154,51 @@ public function submitOptionsForm(&$form, &$form_state) {
+      $this->setOption($section, (bool)$form_state['values'][$section]);

The only thing I can find wrong with this patch is the indentation in these two place! Otherwise looks like another awesome cleanup.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new13.67 KB
new1.22 KB

Thank you!

dawehner’s picture

Issue tags: -VDC

#6: drupal-1888694-6.patch queued for re-testing.

dawehner’s picture

Issue tags: +VDC

#6: drupal-1888694-6.patch queued for re-testing.

dawehner’s picture

Issue tags: +Novice, +Needs reroll

Status: Needs review » Needs work

The last submitted patch, drupal-1888694-6.patch, failed testing.

david.lukac’s picture

Assigned: Unassigned » david.lukac

Assigning to me during DrupalCon Prague sprint.

star-szr’s picture

Assigned: david.lukac » Unassigned
Issue summary: View changes

Unassigning to make this available since it's been a while.

damiankloip’s picture

StatusFileSize
new13.7 KB

Reroll.

damiankloip’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 13: 1888694-13.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
StatusFileSize
new15.27 KB
new4.99 KB

Needed a few more fixes, also added the getting of options form the plugins, like the pager did before. Since this patch last passed, New assertions in the PagerTest have been added to make sure overridden options are kept. I think this should pass ok now.

dawehner’s picture

Status: Needs review » Needs work

I really love the diffstat of this patch!

+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
@@ -2246,15 +2246,16 @@ public function submitOptionsForm(&$form, &$form_state) {
+          $plugin = \Drupal::service('plugin.manager.views.' . $plugin_type)->createInstance($form_state['values'][$plugin_type]['type']);

We should probably use Views::pluginManager($pugin_type);

damiankloip’s picture

Status: Needs work » Needs review
Issue tags: -Novice, -Needs reroll
StatusFileSize
new15.25 KB
new1.09 KB

Agreed.

Status: Needs review » Needs work

The last submitted patch, 18: 1888694-18.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review

18: 1888694-18.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 18: 1888694-18.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review

18: 1888694-18.patch queued for re-testing.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

I love that diffstat:

 4 files changed, 47 insertions(+), 156 deletions(-)
webchick’s picture

Overall this seems like great clean-up, also loving the diffstat.

One question though:

+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
@@ -1627,9 +1627,12 @@ public function buildOptionsForm(&$form, &$form_state) {
-        $form['style'] =  array(
-          '#title' => t('Style'),
-          '#title_display' => 'invisible',
+        $form['style'] = array(
+          '#prefix' => '<div class="clearfix">',
+          '#suffix' => '</div>',
+          '#tree' => TRUE,
+        );
+        $form['style']['type'] =  array(
           '#type' => 'radios',

@@ -1671,9 +1674,12 @@ public function buildOptionsForm(&$form, &$form_state) {
-        $form['row'] =  array(
-          '#title' => t('Row'),
-          '#title_display' => 'invisible',
+        $form['row'] = array(
+          '#prefix' => '<div class="clearfix">',
+          '#suffix' => '</div>',
+          '#tree' => TRUE,
+        );
+        $form['row']['type'] =  array(

Hm. At a glance, didn't we just introduce accessibility bugs here?

webchick’s picture

Status: Reviewed & tested by the community » Needs review
dawehner’s picture

StatusFileSize
new1.41 KB
new14.87 KB

Good catch, that was probably some stuff which changed during a rerole.

damiankloip’s picture

Status: Needs review » Reviewed & tested by the community

Nice work webchick/dawehner. Yeah, that must have crept back in somewhen.

Status: Needs review » Needs work

The last submitted patch, 26: vdc-1888694.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review

26: vdc-1888694.patch queued for re-testing.

damiankloip’s picture

Status: Needs review » Reviewed & tested by the community

Thought so.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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