Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Sep 2012 at 20:10 UTC
Updated:
29 Jul 2014 at 21:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerHere is a first start which tests all of RowPlugin, but sadly some parts of the test still fail.
Comment #3
dawehnerFixed all the tests, and rerolled and cleaned a bit up.
Comment #4
tim.plunkettSo, what's going to happen when we move node.views.inc? And why is that necessary at all?
Comment #5
dawehnerWe could merge this code into one function and put it into node.module, i know this is not optimal.
The reason why this is done is primarily to hide comments/links but not have the need to load this code on every request.
Comment #6
damiankloip commentedAs far as fixing what we have and adding tests, I would say this is good to go. Maybe there is a better way, I'm not sure atm.
I'm told a generic entity row plugin is on the way to solve all our problems :)
Comment #7
dawehnerRerole against core.
Comment #8
dawehner#7: core-1793696-7.patch queued for re-testing.
Comment #11
dawehnerThis patch already has tests. Rerolled against current 8.x and dramatically simplied it by using $this->drupalSetContent().
Comment #12
damiankloip commented#11: drupal-1793696-11.patch queued for re-testing.
Comment #13
damiankloip commentedHere are a couple of MINOR nitpicks, apart from that, if this passes, or needs a reroll, this is rtbc.
This is the only one that is Tests, just use Test..
Lose the 'a'.
Comment #15
dawehnerRerolled.
Comment #16
dawehnerFixes the "tests".
Comment #18
dawehnerRerolled after the comment entity NG patch etc.
Comment #19
dawehner#18: drupal-1793696-18.patch queued for re-testing.
Comment #20
dawehnerNothing important in that rerole.
These are one of these bugs which would be normal in the context of drupal, but major in the context of views, as it is fixing functionality used by like 50% of the people.
Comment #22
dawehner#20: drupal-1793696-20.patch queued for re-testing.
Comment #23
dawehner#20: drupal-1793696-20.patch queued for re-testing.
Comment #24
olli commentedPatch #20 solves the problem.
Is this needed?
Would it be possible (in a follow up) to move this node row preprocessing to noderow::render?
Comment #25
dawehnerThanks for the review! Fixed the DomDocument stuff, which has been part of some previous patches.
Interesting idea, as this would improve auto-loading, but I'm not sure we do put preprocess logic into classes at this point. It seems to be that this would be really different to all other parts of core. If we do this, then we should do this in a follow up.
Comment #26
dawehner#25: drupal-1793696-25.patch queued for re-testing.
Comment #28
dawehnerFixed it.
Comment #29
damiankloip commentedPatch is looking good, just one question:
Shouldn't maybe node.module be providing this now? Doing this in views.module feels slightly dirty. Now that we're in core, stuff like this could move into node?
Comment #30
dawehnerYeah I totally agree, though should this really be done in this issue, as I wanted to let this patch be as small as possible.
Comment #31
damiankloip commentedWell, now this fix is good, We can easily move this in a follow up for sure. Let's do that.
Comment #32
xjm#28: drupal-1793696-28.patch queued for re-testing.
Comment #34
damiankloip commentedRerolled after #1770772: Move row_plugin from style_plugin to the main view object got in.
Comment #35
dawehnerComment #36
dawehnerThe patch in #34 is perfect!
Comment #38
damiankloip commented#34: 1793696-34.patch queued for re-testing.
Comment #39
dawehner#34 is green
Comment #40
no_commit_credit commentedExposing the test coverage, and making it clear which is the correct patch.
Comment #41
xjmComment #42
xjm#40: 1793696-34.patch queued for re-testing.
Comment #43
alexpottCommitted 509cb25 and pushed to 8.x. Thanks!
Comment #44
xjmThe test in this patch is currently failing in HEAD.
git revert 509cb25Comment #45
tim.plunkettOr just use this. It was because of #1938380: Let ViewExecutable->preview() return a render array.
I tested this manually.
Comment #46
webchickAll RIGHT, that makes alexpott a REAL core committer now! :D
Reverted commit 509cb25. Restoring various metadata.
Comment #47
webchickOops.
Comment #49
tim.plunkettOkay, here's both of those.
Comment #50
jibranIt should be label I think.
Comment #51
dawehnerYou are totally right.
Should we also fix this include, which is added in this patch?
Comment #52
jibranComment #53
alexpottYay! I'm a real core committer now :)
Committed 587ceeb and pushed to 8.x. Thanks!