Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2013 at 12:05 UTC
Updated:
6 Aug 2014 at 16:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Zapper Limited commentedComment #2
Zapper Limited commentedComment #3
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxZapperLimited2134705git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
krknth commentedChange git clone link
Comment #5
Zapper Limited commentedComment #6
Zapper Limited commentedHi krishnakanth17,
I've updated the git clone link to point to the correct branch.
I've gone through the module and corrected all the code formatting errors that pareview pointed out EXCEPT in the one javascript file. It contains minified code and code that belongs to our library that shouldn't be changed.
Can I leave this javascript file unchanged? That is the only thing outstanding that CodeSniffer pointed out.
Thanks
Comment #7
Zapper Limited commentedComment #8
idebr commentedHi Zapper Limited,
Great idea for a module! Some pointer before you release:
Comment #9
Zapper Limited commentedThanks for the feedback idebr, I am updating these now and will update when done
Comment #10
Zapper Limited commentedHi idebr,
I've made the updates you advised, I've left one or two of them as it's necessary they remain as they are. See feedback of your #8 points below:
Please advise if this is OK?
Comment #11
Zapper Limited commentedComment #12
Zapper Limited commentedAny updates on this? :)
Comment #13
xqus commentedHello,
In classes / scantologinhelper.inc some of the arrays does not follow the Drupal coding standard for arrays
scan_to_login_init() is quite heavy, and will probably cause quite a performance loss. Take a look at hook_form_alter() and my Authy Authy module for some inspiration on how to "intercept" logins.
can be replaced by
Good luck!
Comment #14
ram4nd commentedComment #15
Zapper Limited commentedComment #16
Zapper Limited commented@xqus:
@ram4nd:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ZapperLimited/2134705.gitComment #17
Zapper Limited commentedComment #18
idebr commentedHey Zapper Unlimited,
For an example how to include an external library in your module, have a look at one of this project:
- https://drupal.org/project/chosen: http://drupalcode.org/project/chosen.git/tree
Comment #19
Zapper Limited commentedHi @idebr:
It's not an external library though, it's an internal one written by us that won't be written or modified by anyone other than us.
Is it not acceptable to include a minified javascript file into our project?
Comment #20
Zapper Limited commentedComment #21
ram4nd commentedIf you wan't it to have different kind of legal licence than Drupal then you can't include it in your module.
Comment #22
Zapper Limited commentedIt's free to modify, and we're including it with the same license as Drupal. But official updates to it that interact with the API we still roll out. The included "library" javascript file would be pointless without a module though, this is why we would like to get into the marketplace :) This shouldn't hold up the review process though surely?
Comment #23
rmn commentedHi Jonathan
There are 2000+ errors in your code as per parview.sh. Please use pareview as a first level of check. Although these are minor indentation/spacing errors - so I am not blocking the review of your code. But, please make the changes to make your module adhere to Drupal coding standards.
Thanks
Raman
Comment #24
Zapper Limited commentedHi Raman,
I've dealt with the 2000+ errors you have found that were minor indentation / spacing errors.
Where do we go from here?
Thanks,
Comment #25
Zapper Limited commentedCan this be approved?
Comment #26
dsim commentedHi,
Coding standard check as per the pareview displays the following, can you please look into it?
Attached a file for your reference.
Comment #27
Zapper Limited commentedWe have fixed the last error that was appearing in pareview.
Comment #28
deepakaryan1988Hey Zapper,
According to me, you did superb work, really appreciate that. The code seems to be nice and well maintained.
I have few suggestion:-
1. on line 70-- if ($action == 'authenticate') {
and also on line 77 --- elseif ($action == 'register') {
Here you are comparing it by one string, it has to be translatable. Please pass t() to strings.
2. Why don't you have used switch case rather than elseif?
Better to use switch case according to me.
But apart from this, everything looks fine.
Comment #29
Zapper Limited commentedHi deepakaryan1988,
Thank you for the kind words, we expect to keep building on the module, releasing new updates as our product adds more features.
In response to your questions:
1) Those $action values are only being compared to $_GET variables that won't change even if the user isn't using english, these are things the user won't ever see.
2) If / else conditionals are faster on a few conditions, switch being more optimal on more than about 3 conditions
-Zapper
Comment #30
Zapper Limited commentedComment #31
Zapper Limited commentedCan we get rights to promote our sandbox project to a full project?
- Zapper Limited
Comment #32
Zapper Limited commentedComment #33
ram4nd commentedYou need to do the review bonus or the moderators won't take a look at your project.
Comment #34
chuta commentedI have followed this sandbox project reviewstring with keen interest. Moderators pls do the needful and lets see the module live at drupal.org. Am quite sure a lot more people are waiting for projects like this.
Comment #35
joachim commented> description = A module that allows you to scan a QR code to register and log in on a drupal site
Needs a full stop. Also, users already know that this is a module and that it's for Drupal sites!
First sentence after @file should fit on a single line. Is @package a standard docblock code? I don't recognize it.
No need to document what hook implementations do, unless they do something out of the ordinary.
Missing full stop.
Incorrect docs -- this is a hook implementation.
Should be a verb in the imperative. Look at other config menu items for examples to follow.
Better to use hook_form_FORM_ID_alter() here.
It looks a lot to me like you are trying to work with the form submission in a form builder. If that's the case, then it's a total misuse of FormAPI. What are you trying to do here? (Can't tell without any code comments!!)
That's not true in the admin.inc file.
Are you sure you want to put a '0' in the field when the user first goes to configure? I'd find it awkward UX to have to remove that 0 before entering my ID.
Hm....
Spelling mistake. Also, loading a different jQuery version automatically is a bad idea. Better to add a dependency of jquery_update module.
Git clone has an empty scan_to_login folder it seems (though not sure how, as git doesn't track folders?! Maybe that's a glitch at my end.
> * Authorise a user programmatically through the drupal "api".
No need for scare quotes!
Needs parameter documentation.
You're calling the submit handler for another form with faked data!!! That's a total hack, and bound to cause problems. If you want to log in a user, there's an API function for that.
Comment #36
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.