Closed (fixed)
Project:
Janrain Registration
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2019 at 04:25 UTC
Updated:
11 Jul 2019 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
victoru commentedComment #3
timmillwoodSwitching to "Needs Review"
Comment #4
manuel garcia commentedNice to see this, just a quick eyeball review.
Nit: missing @return tag
Deprecated, see https://www.drupal.org/node/2774931
Missing use statement use Drupal\user\Entity\User;
This line is using deprecated code, use the file_system service, FileSystemInterface::CREATE_DIRECTORY and FileSystemInterface::MODIFY_PERMISSIONS
Again, deprecated code.
I believe we probably should omit this no?
This isn't necessary I believe.
Comment #5
th_tushar commentedPatch looks good to me.
hcpValidationparameter is returned by Janrain? If not, should be removed.Comment #6
victoru commentedFixed and removed the unnecessary code
Comment #7
manuel garcia commentedComment #8
manuel garcia commentedOOps wrong file
Comment #9
manuel garcia commentedQuick interdiff review:
These use statements aren't necessary.
Let's use $this->messenger() instead.
Let's inject the
file_systemservice intojanrain_capture.screen_loader_managerinstead.Comment #10
victoru commentedShould be fine now
Comment #11
manuel garcia commentedThanks @victoru for following up on this, looks like you included unrelated files in this (the
.ideafolder).Also please attach an interdiff so we can review changes since the last patch easier.
Comment #12
victoru commentedHi Manuel, see the latest .idea folder was removed.
Comment #13
manuel garcia commentedThanks @victoru for removing the .idea folder.
All points on #9 still need to be addressed.
Comment #14
victoru commentedthanks @manuel , the issue with the latest patches was that I accidentally included the previous .patch in them , can you review #14 and the interdiff is for 6_14
Comment #15
timmillwoodThis whitespace needs removing.
WHOA! lots of whitespace to remove.
More whitespace.
Whitespace.
This should be a pretty simple todo, can we do it?
Can these services be injected rather than using `\Drupal::`?
Also it seems like a couple of uses of logger() are logging as "my_module" as if it's been pasted from example code, these need to be replaced by the correct janrain module name.
Can this service be injected?
Comment #16
timmillwood@th_tushar - Can you enable testing on the 8.x branch so we can run testbot on this patch?
Comment #17
th_tushar commented@timmillwood, enabled testing on 8.x branch.
Comment #18
th_tushar commentedRe-uploading the patch and interdiff files.
Comment #19
timmillwoodLooks like tests are failing on PHP 5, which is fine, I guess. Everyone should be running PHP 7 these days.
On PHP 7 I see
JanrainCaptureTest::testJanrainCaptureis failing as it returns a 404 when expecting a 200.Then many coding standards issue, mostly css, which as a non-frontend person I can forgive 🤪
However there are some php issues too:
Comment #20
manuel garcia commentedThis to me looks like it needs to be removed.
Comment #21
victoru commentedFixed all the spacing issues and removed the logger
Comment #22
victoru commentedTook out the unit test and resolved comments related to file_system.
Comment #23
timmillwoodIs that test not supposed to pass?
Comment #24
victoru commentedI added that forgot password check, @timmilwood , the issue with the failed phpunit was because the module itself wasnt enabled during the test, 'public static $modules = ['janrain_capture'];' fixed it , I also resolved some notices with this latest patch.
Comment #25
timmillwoodComment #26
timmillwoodLooks like that might be a false report.
Lets get this released.
Comment #28
th_tushar commentedPatch applied to 8.x-1.x branch.