Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Aug 2014 at 19:53 UTC
Updated:
14 Apr 2015 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
temoor commentedComment #2
dawehnerCool!
Meh, I don't really like static methods but this is life
Comment #3
m1r1k commentedComment #4
alexpottWe already have the entity manager injected (
$this->entityManager). All of these calls should be using it instead.This should needs to override the
create()and__construct()fromDrupal\views\Plugin\views\PluginBaseto inject the comment storage from the entity manager.Comment #5
temoor commented1. But renderLinks is a static method
Comment #9
temoor commentedFixed typo
Comment #10
m1r1k commented2 was fixed.
1 is static and it doesn't use instance.
RBTC
Comment #12
temoor commentedRe-rolled patch, used already injected container instead of static method.
Comment #15
rpayanmComment #16
pcambraRe-roll, conflicted with #2322105: Replace all instances of taxonomy_vocabulary_load(), taxonomy_vocabulary_load_multiple(), entity_load('taxonomy_vocabulary') and entity_load_multiple('taxonomy_vocabulary') with static method calls
Comment #17
mikemiles86Comment #18
mikemiles86Tested re-rolled patch #16
- Applies cleanly
- All instances of comment_load(), entity_load('comment') and entity_load_multiple('comment') removed & replaced.
- All comment tests pass.
Comment #20
rpayanmrerolled
Comment #21
linl commentedPatch no longer applies, tagging for reroll.
Comment #22
piyuesh23 commentedComment #23
vineeth@nair commentedComment #24
vineeth@nair commentedrerolled , Please review and let me know
Comment #25
pwieck commentedComment #26
berdirComment #29
jeroent@vineeth@nair, are you still working on this?
Comment #30
subhojit777Comment #31
subhojit777Comment #32
jeroentPatch no longer applies.
Comment #33
jeroentComment #34
subhojit777Comment #35
jeroentI Think your patch contains code of another issue.
Comment #36
linl commentedRerolled without the extra code. Have doubled checked and I can't find any more instances of comment_load(), entity_load('comment') or entity_load_multiple('comment').
The patch is smaller as many instances of entity_load('comment') were taken care of in #2350273: Move CommentViewBuilder::renderLinks post_render_cache callback to CommentPostRenderCache
Comment #37
jeroentWhy are we doing this?
Other than that, I think the patch is good to go.
Comment #38
andypostgit grep returns no remains
Comment #39
rahul.shindeComment #40
alexpottThis is not necessary the parent class (Drupal\node\Plugin\views\row\RssPluginBase) has the entity manager already
Comment #41
rpayanmComment #42
andypostsmall nit, please fix
should be full namespace and $comment_storage appended
Comment #43
rpayanmComment #44
andypostComment #45
alexpottCommitted c4550b7 and pushed to 8.0.x. Thanks!
The beta evaluation is in the parent meta issue.