Description:
Some time it is require to see the database frequently if we are developing application on multiple server then its very difficult to login again and again and check weather the database entry is done or not.
This module provides a page to display all the current drupal 7 instance schema's table's data.
Project Page:
https://www.drupal.org/sandbox/rajveergangwar/2767031
GIT Clone:
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/rajveergangwar/2767031.git schemadata
http://pareview.sh/ http://pareview.sh/pareview/httpsgitdrupalorgsandboxrajveergangwar276703...
Review Comment:
https://www.drupal.org/node/2770539#comment-11426665
https://www.drupal.org/node/2771203#comment-11434535
https://www.drupal.org/node/2775811#comment-11456997
https://www.drupal.org/node/2770539#comment-11426671
https://www.drupal.org/node/2770539#comment-11426681
https://www.drupal.org/node/2771203#comment-11690127
Comment | File | Size | Author |
---|---|---|---|
#44 | Screen Shot 2016-10-12 at 12.39.01 PM.png | 75.28 KB | 3ssom |
#17 | step2.png | 41.39 KB | rajveergangwar |
#17 | step1.png | 28.97 KB | rajveergangwar |
Comments
Comment #2
rajveergangwarComment #3
rajveergangwarComment #4
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxrajveergangwar276703...
Fixed the git clone URL in the issue summary for non-maintainer users.
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 #5
rajveergangwarhi ,
I have solved all the issues. Now please check http://pareview.sh/pareview/httpsgitdrupalorgsandboxrajveergangwar276703.... There are 0 wranning and 0 error
Comment #6
rajveergangwarComment #7
yogeshmpawarAdding [D7] to title.
Comment #8
rajveergangwarThanks Yogesh Pawar.
I have fixed table breaking issue. Please reivew
http://pareview.sh/pareview/httpsgitdrupalorgsandboxrajveergangwar276703...
Comment #9
rajveergangwarComment #10
rishabh318 CreditAttribution: rishabh318 commentedHi rajveergang,
1) In schemadata.module under function schemadata_show_rows() you should use t() function at line 142.
Thanks
Rishabh
Comment #11
manish.upadhyay CreditAttribution: manish.upadhyay as a volunteer commentedHi rajveergang,
Please fix below minor changes :
1) Please fix the spelling of "schemadata" from all the instances in the module file, you have written this as "scemadata", for example : "This shows all the scemadata" this string in all the hook_menu items.
2) Access arguments should be a string and it is consider as a good practice as you have written "administer_scemadata" and it is looks like a function name you should use this as "administer schemadata" and also fix the spelling in it as well.
Thanks,
Comment #12
polaki_viswanath CreditAttribution: polaki_viswanath commentedHi Rajveer,
You need to check the following points.
1. Use t() for return "table not found";
2. Check the spelling of $sortable_filed .
3. Give proper name to $temp_array variable.
4. Use global $base_url; first in the function.
5. "scemadata" typo should be "schemadata".
6. I would suggest url should be more clean / readable schemadata/allschema must be schema-data/all-schemas .
7. Check the sentence "Shows you schema's data" .
8. Check your readme file, Installation section needs change. it should be
"Install as you would normally install a contributed Drupal module. See:
https://drupal.org/documentation/install/modules-themes/modules-7
for further information.".
Comment #13
rajveergangwar@rishabh318
@manish.upadhyay
@polaki_viswanath
Issue which you all are mentioned has been fixed. Please verify it. Thanks
Comment #14
rajveergangwarComment #15
polaki_viswanath CreditAttribution: polaki_viswanath commentedHi Rajveer
1. Hook_help is missing.
2. The Readme file must be a bit more descriptive.
3. I would suggest to simply display the list of tables. Remove unnecessary logic in schemadata_show_all() to display in table format with rows containing 6 records each. You can simply display in list.
4. The module contains spell errors "scemadata" in schemadata_permission().
5. In your comment you have "mysl" change it to mysql at line no 7 of .module file.
6. The lines
"// Get all schema name.
$schema = drupal_get_schema(NULL, TRUE);
// Sort schema.
ksort($schema);
// Get table name.
$tables = array_keys($schema);"
are written twice. You can reduce them by creating a function "getSchema" to return the schema array in sorted format.
7. $output variable is not required. You can return directly.
Suggestions are upto you to implement it.
Thanks
Comment #16
rajveergangwarComment #17
rajveergangwarComment #18
rajveergangwarComment #19
rajveergangwarHI polaki_viswanath
Above mentioned issues has been fixed
Comment #20
rajveergangwarComment #21
haripalrao CreditAttribution: haripalrao at Kellton Tech Solutions Ltd commentedHi rajveergang,
Please fix these small things:
In hook_help:
1) Use para tag for new lines instead of multiple "br" in a single para tag. For ref: you can see admin_menu.module.
2) And check for spelling in your help text : localsystem should be local system OR local machine.
Thanks
Comment #22
rajveergangwarComment #23
rajveergangwarHello,
Haripal thanks for review , suggestions which y have mentioned has been implemented.
Pls assign it to RTBC.
Comment #24
rajveergangwarComment #25
polaki_viswanath CreditAttribution: polaki_viswanath commentedJust few things more.
Move the hook_help to the top. This would keep your module code in proper order.
You are showing "table not found" and in my opinion it must be drupal access denied as the url is malformed.
Thanks
Comment #26
joachim CreditAttribution: joachim at Torchbox commented- missing newline at the end of the module file
- docblocks are not correctly formed, eg:
Please compare with core modules. I suggest using Module Builder to generate hook implementations for you!
- one of your menu items has no callback:
- you're not sanitizing output, so if you look at tables that contain user input, there is a security risk:
- you've got 3 variables called row something! It's a bit confusing.
Instead of using fetchAll(), you can iterate over your DB result in the foreach.
Comment #27
rajveergangwar@polaki_viswanath ,
changes done which you suggest
Comment #28
rajveergangwar@joachim
- missing newline at the end of the module file : done
- docblocks are not correctly formed, : done
- one of your menu items has no callback: removed menu
- you've got 3 variables called row something! It's a bit confusing. : variable name has been changed
- sanitizing output , as of now its not required here , because developers will use this module, permission is given to module. this module is something like phpmyadmin.
in future i will create one supportive module for this to give exact phpmyamdin functionality on drupal 7.
Comment #29
joachim CreditAttribution: joachim at Torchbox commented> sanitizing output , as of now its not required here , because developers will use this module, permission is given to module
No, sanitizing output is definitely required. See https://www.drupal.org/writing-secure-code:
You don't know which fields of which tables are user-submitted content. Certainly, everything in an entity base table or a field table.
Comment #30
rajveergangwar@joachim
Thank you for help , now i got what is sanitizing. I have applied filter_xss on every row. Which will print on browser.
Comment #31
rajveergangwar@joachim
Pls change status.
Comment #32
rajveergangwarComment #33
rajveergangwarComment #34
joachim CreditAttribution: joachim at Torchbox commentedErrmmm I don't think you should be setting your own project application to RTBC! You can however set it back to Needs Review once you've taken care of any issues raised by a reviewer.
Comment #35
rajveergangwar@joachim,
Yes you are right. Thanks you :)
Comment #36
polaki_viswanath CreditAttribution: polaki_viswanath commentedlooks like RTBC +1
Comment #37
rajveergangwarComment #38
Yogesh Kushwaha CreditAttribution: Yogesh Kushwaha commentedlooks like RTBC +1
Comment #39
ganesan g CreditAttribution: ganesan g commented@rajveergang Please find my comments below.
Comment #40
rajveergangwar@ganesan gopal,
changes you mentioned has been done. Please check
Comment #41
rajveergangwarComment #42
3ssom CreditAttribution: 3ssom commentedHello rajveergang,
Reviewers here have done great work ,, and you followed that so I'll do a review to see if this is a RTBC.
Automated Review
None.
Manual Review
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.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
although I see no blockers here so I think this is a RTBC :)
Thank you
Comment #43
rajveergangwarHi 3ssom,
Thanks for review module.
point 1:- Done
point 2:-
WARNING | Do not use check_plain() on the first argument of l(), | | because l() will sanitize it for you by default.
point 3:- I have tested the path in both enable/disable clean url , its working in both case.
Comment #44
3ssom CreditAttribution: 3ssom commentedGreat work ,, I pulled your work but I still have the same error when clean URL is disabled .. I've attached error it might help getting a closer look.
have a nice day :)
Comment #45
heykarthikwithuComment #46
heykarthikwithu@rajveergang,
1. you can remove this unused variable.
2. And
i was not able to reproduce this..
Else all looks fine :)
RTBC +1
Comment #47
rajveergangwarHi 3ssom,
I have fixed url issue. Please reivew again.
thanks
Comment #48
rajveergangwar@heykarthikwithu ,
@field variable is removed. Please check.
thanks
Comment #49
3ssom CreditAttribution: 3ssom commentedHello,
I confirm the issue is fixed :)
Comment #50
rajveergangwar@3ssom
thanks for review
Comment #51
ARUN AK CreditAttribution: ARUN AK as a volunteer and commentedI have promoted the project for you. Now you can create the release of the project.
Thanks for your contribution, rajveergang!
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.
Comment #52
rajveergangwarHi ARUN AK,
Thanks for promoting the project.
Thanks you so much to all reviewers.