Closed (fixed)
Project:
Relation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Aug 2011 at 22:43 UTC
Updated:
4 Oct 2011 at 05:31 UTC
Jump to comment: Most recent file
When adding a view of type "Relation", you get quite a bit of error messages. The most important is probably in the field handler, saying it is missing relation.table.
It would be nice to have Relation view type, but in lack of that it would make sense to remove that view type alltogether.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | relation-7.x-1.x-1260236-10.patch | 9.5 KB | seandunaway |
| #3 | views-test.txt | 6.01 KB | dawehner |
| #2 | 1260236-proper-relation.patch | 3.99 KB | dawehner |
| #1 | 1260236-proper-relation.patch | 3.38 KB | dawehner |
Comments
Comment #1
dawehnerHere is a first patch + assign for myself.
Comment #2
dawehnerHere is a real patch which provides proper views integration for the relation base table.
Comment #3
dawehnerHere is a test view i created, which could perhaps be used by a views test.
Comment #4
itangalo commentedThe view now loads fine, but the field handler "enpoints" won't render anything. (It seems to collect the information though, since it recognizes how many endpoints each relation has.)
Don't know if this is a new feature request or not, but I'm gambling and changing this to "needs work".
Comment #5
rlmumfordI can't seem to get this view type at all, am I missing something?
Comment #6
Remon commentedsubs!, views of type relation are completely broken atm.
Comment #7
Remon commentedI second @Itangalo, all fields work properly except for "Relation: Endpoints". Actually views' query doesn't seemto JOIN with
field_data_endpointstable.Thanks for the great effort guys!
Comment #8
dawehner@Itangalo
Let's get this part in and then fix the rest, the endpoints stuff should perhaps be fixed in #1260252: View relationship "relation -> entity"
Comment #9
itangalo commented@dereine: I think the thing with missing endpoints table in the view is separate from #1260252: View relationship "relation -> entity", but it is also separate from this issue. (I think it's due to how relation_endpoints works.)
Starting a new issue about that. This issue is now solved.
Comment #10
seandunaway commentedRerolled patch with first attempt at a test for this.
dereine, is there a way to reset a view, including removing results, after execute()?
Comment #11
seandunaway commented[7.x-1.x-1260236 6c7f787] Issue #1260236 by dereine: Provided proper views integration for the relation base table.
1 files changed, 138 insertions(+), 0 deletions(-)
[7.x-1.x-1260236 063321c] Issue #1260236 by rump: Tests for relation base table views integration.
1 files changed, 46 insertions(+), 10 deletions(-)
Committed.
Comment #12
seandunaway commented