Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
user.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2015 at 17:17 UTC
Updated:
24 Mar 2015 at 12:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amateescu commented17 files changed, 115 insertions(+), 380 deletions(-)
Comment #3
pcambraI think the form was making wrong assumptions about the current user being the one checked.
Comment #5
amateescu commentedThanks @pcambra, your patch finally made me realize that the comment behavior is so custom that there's no point in trying to use
EntityAutocomplete::validateEntityAutocomplete()at all, so I removed that weird new#process_autocomplete_valuestuff in favor of just overriding#element_validatein CommentForm.Comment #6
wim leersAnother lovely diffstat! :)
Comment #7
jibranThis is perfect. Just two nits. Also updated user interface changes in IS.
Out of the scope. :)
I believe we don't have to add that.
Comment #8
amateescu commentedThanks for reviewing :)
Fixed #7.1 and #7.2 is correct, we don't have to but I added it so it's a bit more clear what we're testing.
Comment #9
jibranThank you @amateescu for the patch this is a huge improvement and thank you for clarifying #7.2.
Comment #10
alexpottHow come we're changing the the form element from name to uid? Whereas we're not in CommentForm. I'm not sure that changing it is correct.
But this is meaning less for anything other than selecting users. Feels like this is blocked on #2436835: Unable to create config schema for entity type specific entity reference selection plugin.
Comment #11
amateescu commentedRe #10:
1. The change is correct because the entity autocomplete form element, by default through
EntityAutocomplete::validateEntityAutocomplete(), returns entity IDs. CommentForm does not use the default behavior of the element, that's why it is not changed.2. The user selection handler already has the 'filter' custom setting that's only used for user entities, which means that #2436835: Unable to create config schema for entity type specific entity reference selection plugin. will have to take the new one into account in a reroll.
Comment #13
amateescu commentedRerolled.
Comment #14
alexpottYep let's handle #10.2 in the other issue.
Committed 3e2af23 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.
Comment #16
alexpott