Comments

damiankloip’s picture

Status: Active » Needs review
StatusFileSize
new25.58 KB

I did this patch last night after visiting the beer garden :? We shall see....

Status: Needs review » Needs work

The last submitted patch, views-uses-options-property.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
StatusFileSize
new25.57 KB

Let's try again, with valid with parsable php.

Status: Needs review » Needs work

The last submitted patch, 1744186.patch, failed testing.

damiankloip’s picture

StatusFileSize
new25.84 KB

Fixed some stupid stuff, still might be stupid though.

damiankloip’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1744186-5.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
StatusFileSize
new26.05 KB

Don't think this will fix it, but it might help.

Status: Needs review » Needs work

The last submitted patch, 1744186-8.patch, failed testing.

dawehner’s picture

Issue tags: +VDC

Adding a tag.

damiankloip’s picture

Status: Needs work » Needs review
Issue tags: -VDC
StatusFileSize
new26.87 KB
damiankloip’s picture

Issue tags: +VDC

Status: Needs review » Needs work

The last submitted patch, 1744186-9.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
StatusFileSize
new27.67 KB

This may fix the issue.

Status: Needs review » Needs work

The last submitted patch, 1744186-14.patch, failed testing.

tim.plunkett’s picture

+++ b/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.phpundefined
@@ -678,10 +678,10 @@ abstract class ArgumentPluginBase extends HandlerBase {
+      if (empty($plugin->uses_options()) {

if (!$plugin->uses_options()) {

damiankloip’s picture

Status: Needs work » Needs review
StatusFileSize
new27.67 KB

Should really check things first.

damiankloip’s picture

StatusFileSize
new27.67 KB

Crossposted there! but yes, you are right, logic is just plain wrong :)

damiankloip’s picture

I just need to add a comment to the uses_options method. I will speak to dawehner so this is inline with his similar issue.

dawehner’s picture

+++ b/lib/Drupal/views/Plugin/views/access/Permission.phpundefined
@@ -19,12 +19,16 @@ use Drupal\Core\Annotation\Translation;
+   * Overrides Drupal\views\Plugin\Plugin::$uses_options.

Is this a standard for variables? If yes then i would like to this on the other patch as well?

+++ b/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.phpundefined
@@ -2480,7 +2485,7 @@ abstract class DisplayPluginBase extends PluginBase {
-            if (!empty($plugin->definition['uses_options'])) {

I really like to get rid of all the !empty in views. Maybe we should cleanup views in general. For example it also doesn't make sense for $this->options['foo'] anymore, as we have a proper default value system.

damiankloip’s picture

StatusFileSize
new27.65 KB

Changed uses_options to usesOptions & added usesOptions method comment too.

tim.plunkett’s picture

StatusFileSize
new9.69 KB
new44.82 KB

Merging in the other patch and cleaning up some things, just to see that they're compatible.
#1744334: [Change notice] Move uses_row_class, uses_row_plugin, and uses_fields from plugin annotation to a class property

tim.plunkett’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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

xjm’s picture

Status: Closed (fixed) » Active
Issue tags: +Needs change record
xjm’s picture

Title: Move uses_options from plugin annotation to a class property » [Change notice] Move uses_options from plugin annotation to a class property
dawehner’s picture

I guess we should make a single one for http://drupal.org/node/1744334 or even how to convert plugins in general.

chris matthews’s picture

Project: Views (for Drupal 7) » Drupal core
Version: 8.x-3.x-dev » 8.7.x-dev
Component: Code » views.module
Issue summary: View changes

For more information as to why this issue was moved to the Drupal core project, please see issue #3030347: Plan to clean process issue queue

chris matthews’s picture

Project: Drupal core » Views (for Drupal 7)
Version: 8.7.x-dev » 7.x-3.x-dev
Component: views.module » Code
Status: Active » Closed (outdated)

Moving back to the contributed Views issue queue and closing as outdated per https://www.drupal.org/project/views/issues/3030347#comment-13023447