Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Mar 2015 at 19:24 UTC
Updated:
22 Apr 2015 at 10:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kgoel commentedComment #2
bburgWorking on this at Drupal4Gov code sprint Co-Sponsored by Forum One ;)
Comment #3
xjmComment #4
jhodgdonThis issue is critical as per parent issue.
Comment #5
dawehnerLet's remove the assignment, as it might block people from working on it.
Comment #6
dawehnerehem, nearly.
Comment #7
geertvd commentedComment #8
jhodgdonDid we really need a special formatter for this? I would think the standard formatters that were previously available would have worked. What options/formatting was missing?
Comment #9
dawehnerThe feature, which is not provided is the special logic for the anonymous user. For them, we get the username from the manually entered
username in the comment form, there is simply no formatter for that yet.
Comment #10
dawehnerThank you @geertvd!
I think we will need a test though ... :)
Comment #11
geertvd commentedComment #12
dawehnerIdeally we should remove the full entry of
views.field.comment_usernameNote: #2454163: Replace comment_username handler with generic views handler should better use those tools.
Note: Also this code should probably not always create an issue, but instead use the author if the author is not the anonymous one.
It would be great to add a newline.
Comment #13
geertvd commentedThanks for the help, this one actually works :)
Comment #14
geertvd commentedI'll work on some tests next.
Comment #15
larowlanI think the default is field, so this line can go
should be the ID, i.e. 'comment_username'?
Comment #16
larowlanWorking on tests
Comment #17
larowlanMy first patch in over a week...
Comment #18
larowlanThink we need cache tags too?
Comment #19
larowlanAnd we need to limit the availability.
Comment #20
andypostPatch could have conflict with related
Comment #21
dawehnerCan we add a todo for the issue I linked in the different comment?
IMHO we should also check for the entity type.
Comment #22
geertvd commentedWhich issue are you referring to? You linked to this ticket in #12
Comment #23
dawehnerEhem sorry, #2458817: Creating new user entities for anonymous users is very slow is it.
Comment #24
geertvd commentedcomment_prepare_authorcan be replaced with$comment->getOwner()when #2458817: Creating new user entities for anonymous users is very slow is fixed again.Added the check for entity type.
Comment #25
dawehnerAwesome, do you mind adding a follow up for replacing that, once the other issue is in?
Comment #26
dawehnerNote: this does not need tests:
Comment #27
alexpottI think CommentViewsFieldAccessTest needs updating to cover this too - see #2462589: Provide test coverage for access checking of all views fields.
Comment #28
geertvd commented#2458817: Creating new user entities for anonymous users is very slow just got fixed so we should replace
comment_prepare_authorwith$comment->getOwner()in this ticket.Comment #29
rteijeiro commentedAddressed #27 (I guess) and #28.
Comment #30
dawehnerIn indeed does!
Comment #31
alexpottThis issue addresses a critical bug and is allowed per https://www.drupal.org/core/beta-changes. Committed 6a7d1bb and pushed to 8.0.x. Thanks!