Closed (fixed)
Project:
AJAX Comments
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2016 at 02:16 UTC
Updated:
17 Aug 2016 at 15:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
danmuzyka commentedTest failure was a fluke. This is ready for community review.
Comment #4
danmuzyka commentedMinor change to routes.
Comment #5
mroycroft commentedPulled in the patch and tested it, reply feature works great. Changes look good to me.
Comment #6
kevin.dutra commentedOverall things look really good, just a couple minor things that I noticed.
Nitpick: Didn't
update()get renamed tosave()?Technically, I think that the static entity loading methods are discouraged from within OO code. (https://www.drupal.org/node/2720343) I'm not sure it's worth doing a huge cleanup for this review though, especially since it's happening within a test.
Nitpick: Need one more indent.
Comment #7
danmuzyka commentedI've attached an updated patch to address #1 and #3.
Per #2, I currently see at least 64 test classes in core that call
Node::load(), specifically (I searched using:find core/ -name \*Test\.php | xargs grep "Node::load").I'm also not seeing any specific policies about using the static load methods in the coding standards documentation at https://www.drupal.org/coding-standards and https://www.drupal.org/node/608152 , so at this point I agree that it doesn't seem worth refactoring the tests to avoid use of
Node::load().Comment #8
kevin.dutra commentedCool beans. Between what @mroycroft and I have covered, I'd say this is RTBC.
Comment #10
danmuzyka commentedGreat! I've committed the patch.