Closed (fixed)
Project:
REST & JSON API Authentication for Drupal
Version:
2.0.12
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Dec 2023 at 17:28 UTC
Updated:
24 Jun 2024 at 09:31 UTC
Jump to comment: Most recent
Comments
Comment #2
ighosh commentedChecked the module. There are a lot of files that need its coding standards fixed. I'll work on these.
Comment #4
ighosh commentedI have created the Merge Request for this. Please review and let me know if there are any issues with the changes.
https://git.drupalcode.org/project/rest_api_authentication/-/merge_reque...
Comment #5
solideogloria commentedI noticed that you removed a use of
exit()in RestAPI.php. Was that intentional? It might change the effects.Overall, it looks like a good improvement. I don't use this module, however, so it's up to other users to verify the changes work.
Comment #6
ighosh commented@solideogloria Thanks for noticing that. It was not intentional. I'll quickly update the MR. Thanks!
Edit - It is now updated.
Comment #7
solideogloria commentedComment #8
nikolay shapovalov commentedComment #9
solideogloria commentedMarking Critical, because the module's code looks absolutely terrible.
Comment #10
solideogloria commentedAlso, the MR is targeting the wrong branch. It should be against 2.x
Comment #11
solideogloria commentedComment #12
ighosh commentedHi @solideogloria. Thanks for pointing that out. I'll add the updated MR link in this MR itself.
Comment #15
ighosh commentedHi All. Updated MR - https://git.drupalcode.org/project/rest_api_authentication/-/merge_reque...
Please review.
Comment #16
ighosh commentedComment #17
roberttabigue commentedHi @IGhosh,
After applying your latest MR !5 to the Drupal REST & JSON API module against 2.0.12 on Drupal 10, not all of the PHPCS errors were resolved.
See below:
I ran this command on the module:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml rest_api_authenticationI'm moving this to ‘Needs work’ for now.
Thank you!
Comment #18
ighosh commentedHi @roberttabigue, In my system the only phpcs issues that are still coming up are the ones that I am not sure whether to remove or not as those changes/files are created by @arsh244, one of the maintainers of this module.
I updated the names of a few files because those are classes that had names starting with a small letter, but it should've been a capital letter.
I have not removed a few unused variables as I believe a confirmation from one of the maintainers might be required to do so.
Other than these, I have fixed most of the phpcs issues.
BTW, do let me know if there has been any mistake from my end.
Comment #19
purva_shende commentedComment #20
purva_shende commented