Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2015 at 16:19 UTC
Updated:
14 Jun 2016 at 01:54 UTC
Jump to comment: Most recent
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxmmillford2402571git
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 #2
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.
Comment #3
mmillford commentedComment #4
kunalkursija commentedHi,
manual Review :
.info file
1) We must not enter 'version' into info file , Drupal does that automatically for you during release. Please read here https://www.drupal.org/node/542202#version
.install file
Suggestions :
1) if your path "/admin/structure/services/list/" is an configuration path then you can define it inside your .info file with configure parameter.
2) You should try writing drupal_set_message() inside hook_enable() rather than in hook_install().
.module file
1) I guess this should be translatable string
'name' => 'Swagger UI'inside hook_libraries_info() ?Comment #5
mmillford commentedThank you for taking the time to review this code.
.info file - 1) The version info has been removed since the initial commit.
.install - 1) This path isn't so much a configuration page as it is a convenient list of links. Additionally, the router location is only defined based on the existence of an optional dependency (libraries), so I think that setting it as the config path would have unintended consequences.
.install - 2) This suggestion makes sense, so I have updated the code in the repository.
.module - 1) Thank you for catching this. It has been fixed.
Comment #6
webcodin commentedHi, the module looks good. But I have a two small wishes
swagger.module
Comment #7
mmillford commentedThank you for the review. Both of these suggestions have been implemented.
At some point I'd like to remove the includes for services runtime, especially since that file has moved in the more recent versions of services. I'm not sure how common it is to deal with old versions of the module, however, and the check doesn't do any harm, so its still there for now.
Comment #8
tim_marsh commentedI love the idea of this module, I explored doing this for our most recent headless project, but abandoned it due to time pressure.
If theres anything I can do to help , let me know.
Just tried installing it, Can you specify the swagger ui version you used - 2.1.1 didnt seem to work
Comment #9
mmillford commentedThere are two main tasks for this module right now: 1) Drupal 8 version, and 2) Support Swagger v2. I'm waiting for a D8 Services project before I work on #1, so it isn't clear when I'll be able to get to that. #2 has work started on it in the 7.x-2.x branch, but its been a while since I was able to work on it, and I don't believe its been completed. If you'd like to help with either of those, then feel free. Just submit a patch to the relevant ticket in the issue queue and I'll pull it in.
Assuming that you're on the 7.x-1.x branch, then it will only work with swagger 1.x code. Taking a quick look through their tags, the latest seems to be v1.1.15 (https://github.com/swagger-api/swagger-ui/releases/tag/v1.1.15).
Comment #10
i-sibbot commentedAutomated Review
[Best practice issues identified by pareview.sh / drupalcs / coder. Please don't copy/paste all of the results unless they are short. If there are a lot, then post a link to the automated review and mention that problems should be addressed.]
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Not a blocker but nice to have it all linted and clean to meet coding standards.
It helps reviews to have a link to PAreview (below) in the issue header btw.
http://pareview.sh/pareview/httpgitdrupalorgsandboxmmillford2402571git
Comment #11
PA robot commentedFixed the git clone URL in the issue summary for non-maintainer users.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #12
jwilson3Automated Review
Review of the 7.x-1.x branch (commit 77ca3eb):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Source: http://pareview.sh/ - PAReview.sh online service
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Manual Review
'#attached' => 'js' => array()here?hook_helpand providing a link to the help page.swagger_page.tpl.phpfile names instead of underscores. I couldnt find a documentation page about this so can't mark this as a blocker, but the vast majority of modules and all of core templates use dashes, so this is highly recommended.The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
Overall the code is very well written, I think clean up the remaining issues with the JS linter, consider my recommendations above and you're good to go.
This review uses the Project Application Review Template.
Comment #13
jwilson3Comment #14
klausi@jwilson3: thanks for your review! Looks like you didn't find any blocking issues, anything else or can this be RTBC instead?
Comment #15
omarlopesinoAutomated Review
Review result of 7.x-1.x branch: http://pareview.sh/pareview/httpgitdrupalorgsandboxmmillford2402571git
There are some little things to fix.
Manual Review
In swagger.module, line 294, you can use drupal_strlen instead of strlen.
I used the module and main features worked for me. I could access to swagger io json of my resources and test a endpoint using swagger ui library inside the drupal.
Comment #16
omarlopesinoComment #17
damienmckennaThanks for your contribution, Mark!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.