Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2012 at 20:48 UTC
Updated:
11 Aug 2013 at 08:51 UTC
Module name: Restore
Drupal core version: 7.x
Restore is a very simple set of modules:
* The main core module that will display the restore scripts and the current state of each.
* The differences module which provide a display of differences between the current state and the restore state.
* The generator module which provides an interface for exporting and generating restore scripts, either to the database, or script file.
http://drupal.org/sandbox/Orgun109uk/1809734
git clone --recursive --branch 7.x-1.x http://git.drupal.org/sandbox/Orgun109uk/1809734.git restore
Comments
Comment #1
bripatand commentedImpressive module. Seems well written and designed.
There are some drupal coding standard issues in your module code.
For automated testing you can use http://ventral.org/pareview
I installed the module and I may be dumb but I have a hard time understanding how to use it.
It is a sophisticated module and I think it would deserve more explanation for the dummies like me...
For instance, I generated a module restore script but I had to look at the code to figure out what the operation would do.
I would suggest you describe some typical and basic use cases and how to implement them with your module.
Nothing fancy, but just the few steps to reach a specific backup/restore goal.
I also got a White Screen Of Death. I logged an issue for it.
Comment #2
klausiYou need to set the status to "needs review" if you want to get a review.
We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #3
NicA109 commentedThanks :) been working on and off for a little while.
Thanks, i will have a look through it, and start working on some documentation.
Thanks, should be fixed in the latest commit.
And thanks klausi, and i will try and have a look at some when i get back from work.
Comment #4
NicA109 commentedPhew finally got the million and one warnings fixed from the pareview.
edit: http://ventral.org/pareview/httpgitdrupalorgsandboxorgun109uk1809734git
Comment #5
NicA109 commentedJust an update since the initial post,
I have added a few more minor features (including db storage of scripts) and fixed some bugs i had found, added a few more operation classes and example restore scripts, another example module and added more documentation both in the UI and in the files.
Comment #6
paravibe commentedHello,
Some manual review:
restore.module: line 109, this line does not make sense, just remove this line and leave this
$output = '<p>' . t('This provides a list of available restore scripts and displays the status of the script.') . '</p>';the same at line 118.
line 474 - 501, you often use this variable
$status[$script_id]['operations'][$operation_class]['actions'][$action_id]['status'], maybe it make sense to announce a new short name variable and use it.Everything else is good as for me. Nice work :)
Comment #7
NicA109 commentedHi,
Thanks for the review :)
I have made amendments, as you recommended, and done another automated review:
http://ventral.org/pareview/httpgitdrupalorgsandboxorgun109uk1809734git
Thanks :)
Comment #8
NicA109 commentedComment #9
hhhc commentedHello,
some feedback.
* I would suggest to extend the documentation: the project page as well as README could be extended by a 2 sentence big picture explanation of what this module actually does. From my perspective, a more detailed explanation would be necessary if you would like a broader audience to use this module. I think I get the general idea of it but it really would require more information to really use it.
* admin/config/development/restore/diff shows differences between "authenticated user" and "administrator" although they were not changed. Is it a bug?
* The source code is very well documented!
Looks promising! Please continue.
Thanks
Comment #10
NicA109 commentedThanks for the feedback,
I have made some amends to the page and readme text to better explain the module and submodules.
I installed the modules on a fresh install and not getting the same problem, im guessing its probably to do with encoding, i have made the difference checking to not be so strict so hopfully helps.
Thanks :)
Comment #11
hhhc commentedHI,
Path: /system/ajax
ReadyState: 4
After clicking ok it forwards me to the code page showing the restore code.
Please, don't misunderstand, I like the general idea but it is very complex for a new user who did not work with it to understand...
hhhc
Comment #12
NicA109 commentedThanks again for the review,
I have fixed all the issues from PAReview, except for one which seems to be a problem with code sniffer (?) as its telling me to use getdir which does not exist, and i can not find anything about such a function in the PHP docs.
939 | ERROR | dir() is a function name alias, use getdir() insteadI am unable to reproduce the problem you where having, it maybe because of some of the changes i had made. Have you tried to remove the module (disable and uninstall) and tried again?
I have updated the module page, and added a "help" page within the module to better explain the module and usage of it.
Comment #13
pirog commentedThe code looks pretty good to me. Good formatting, standards compliance and documentation.
For the dir() error above, could you use file_scan_directory instead?
Some other minor issues i saw:
Comment #14
NicA109 commentedThanks :)
I have amended the code to use the file_scan_directory instead, and while i was there added some static caching around it.
Also added a documentation area on drupal.org (linked in the projects page) and broken up the README into INSTALL and TODO, and removed the git ignore file.
Many thanks,
Comment #15
sreynen commentedComment #16
NicA109 commentedComment #17
seworthi commentedComment #18
seworthi commentedReview of code and checklist on http://ventral.org show's module is RTBC. Did not install and test.
Comment #19
seworthi commentedComment #20
kscheirerThis is quite a large module! Looks RTBC from me, but I will have to ask for a second opinion before fixing this issue. Overall nice quality and abstraction!
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #21
kscheirerThanks for your contribution, Orgun109uk!
I updated your account to let you 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 get 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.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #22
NicA109 commentedGreat, many thanks to everyone :)
Comment #23.0
(not verified) commentedAdded git clone info.