Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 May 2015 at 07:48 UTC
Updated:
20 Jul 2015 at 11:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andypostComment #2
pguillard commentedHere is a patch. Hope it goes to the right direction.
Comment #3
andypostyep, looks great!
NULL is not needed
nit, extra dot at the end
Comment #4
pguillard commentedThanks @andypost.
A new patch with your corrections.
Comment #5
andypostlooks good now, let's get commiter feedback on this
Comment #6
webchickTagging for beta evaluation. Also, I was under the general impression we weren't marking new APIs that hadn't previously been marked @deprecated deprecated for 8.0, and instead these would be in core now until 9.0. Maybe xjm/alexpott would be able to corroborate this or not.
Comment #7
alexpottThese should be deprecated for 9.0 now. Also I'm not convinced that this passes the beta evaluation which it still needs.
Comment #8
pguillard commentedUpdated.
I guess it is not appropriate to set it to RTBC ? cause it may not pass the beta evaluation.
Comment #9
pguillard commentedI have no idea if it passes the beta evaluation... Move to Needs Review
Comment #10
andypost@pguillard we deprecate it in 8.x but will remove in 9.x
Should be
@deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0Comment #11
pguillard commentedSure..
Comment #12
andypostAdded beta evaluation
You forget to said that
entity_view_*should be used insteadComment #13
pguillard commentedThanks @andypost, this one with #12 suggestion
Comment #14
andyposttake a look at
common.incexamples, you missed dots at the end@deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use entity_view() instead.
Comment #15
pguillard commentedThank you
Comment #18
andypostthanx, not it's good to go
Comment #19
alexpottLet's point the new place in the code then that this was intended to point people at. I guess - but perhaps a comment maintainer might have a better idea - that this is meant to point to CommentViewBuilder::buildComponents()
Given that these are in plugins I think we can inject the correct service... so inject the view builder. And call ->view().
Comment #20
yarik.lutsiuk commentedFixed all points from #19. Thank You
Comment #21
yarik.lutsiuk commentedComment #22
andypostSuppose now it finally ready
Comment #23
xjmThanks everyone for your work on this so far!
In light of #2474151: Mark procedural wrappers in entity.inc as deprecated, maybe we should not convert to
entity_view()but instead recommend the entity manager static wrapper?Also, since this was not already deprecated for removal in 8.0.0 before the beta, we should only mark the wrappers deprecated for now. Removing the usages should probably be postponed during the beta (we can create a followup issue for that for 8.1.x since it is BC-compatible). See https://www.drupal.org/core/beta-changes.
Comment #24
andypostThis issue should be split into 4 issues, according what @xjm said in IRC about allowed beta changes.
This issue just deprecates functions, next to remove usage
Then 2 tasks:
1) clean-up broken comment
2) use proper service injections into plugins
this change should be separate issue 'cos comment_view() docs have nothing about threading
this needs separate issue, probably for 8.1.x otoh that minimize code fragility
Comment #25
andypostPatch with deprecate only
Also filed:
#2526004: UnpublishByKeywordComment should inject needed services properly
#2526064: Remove usage of comment_view() & comment_view_multiple()
#2526084: Fix comment in Comment entity
Comment #26
mile23#25 applies, and 'use' suggestions are good.
It reflects the change in scope of #23, #24.
Comment #27
xjmThanks @andypost and @Mile23!
This issue only changes documentation, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x.