Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Aug 2012 at 16:33 UTC
Updated:
30 Mar 2016 at 19:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerA spin off caused by reading some code: #1770726: Simplify the code for adding a relationship form element to plugin forms
Added tests:
Comment #2
aspilicious commentedGenerated by hand?
+tag: ''
\ No newline at end of file
Comment #3
dawehneryes ... it's so easy nowadays :)
Comment #4
damiankloip commentedLooks pretty good.
Do we want to create two users with the same permissions here?
Comment #5
dawehnerUps!
Comment #6
aspilicious commented2 space yaml files
Newline needed
Comment #7
dawehnerFixed the spaces and added a new test to be sure that removing all possible relationships also removes the option in the UI.
Comment #8
tim.plunketttwo periods.
I *still* don't understand these curl braces. What are they?
Need docblocks, and should be baseTable and baseField
Don't need the bool anymore.
Comment #9
dawehnerThanks for the review!!
views_fetch_plugin_names allows you to filter plugin by base table they are written for.
You can write a plugin against multiple base tables, so arrays are used here.
Fixed the docblocks, though these variables are used in RowPluginBase::query() so no change here.
Fixed the other issues as well.
Comment #10
dawehner#9: views-1754260-9.patch queued for re-testing.
Comment #11
dawehnerThe style tests added a test row plugin in the meantime. Here is a reroll of the patch.
Comment #13
dawehnerAh i see the problem, the style test assumes that there is no field added to the query,
but the row test uses a lot of information around relationships which aren't available on views_test_data, mh ...
Comment #14
xjmComment #15
dagmarSeems this is already included in core:
https://api.drupal.org/api/drupal/core!modules!views!tests!modules!views...