Updated: Comment #8
Problem/Motivation
Rooms Node extend the funcionalities of the Rooms module for all node types.
- Availability and prices dates for the nodes types
- An index of dates with prices and availabilities for using views exposed filters
- All of the fields of a rooms_unit is cloned into the node type
- When a node is deleted also the Room unit is deleted
- When a price, availability or a customer booking a resource the index is updated automatically
- Provide a block with checkin checkout selection for booking into the node page
At the moment all this functionalities working without any hack to the Rooms module.
WHY ROOMS NODE
Proposed resolution
This module is thinked to manage thousands of bookable items and search them using views, at the moment this is not possible with rooms.
To bypass this issue, all functionalities of rooms module are been imported into node types for better flexibility and management.
Rooms node provide a linear index that add a row for each day/nid with price and state. Is possible to query the availabilities of rooms_unit using "sql standard" and not php code using views by a new filter rooms date, that search in a range of dates.
A secondary improvement is in node management that provide per user permissions.
LINKS
GIT: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ziomizar/2086255.git rooms_node
SANDBOX PAGE: https://drupal.org/sandbox/ziomizar/2086255
PAREVIEW
http://pareview.sh/pareview/httpgitdrupalorgsandboxziomizar2086255git
Review of other projects:
1. https://www.drupal.org/node/2477289#comment-9864511
2. https://www.drupal.org/node/2477121#comment-9864547
3. https://www.drupal.org/node/2478481#comment-9872273
4. https://www.drupal.org/node/2479227#comment-9875829
5. https://www.drupal.org/node/2479471#comment-9875869
6. https://www.drupal.org/node/2477359#comment-9876001
Comments
Comment #1
ziomizar commentedComment #2
klausiI guess this needs review? See the project applications workflow.
Comment #3
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxziomizar2086255git
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
ziomizar commentedComment #5
ziomizar commentedTnx klausi need review!
Comment #6
balagan commentedThis still needs work. Check the http://pareview.sh/pareview/httpgitdrupalorgsandboxziomizar2086255git page, and try to correct the errors listed there.
Comment #7
balagan commentedComment #8
areke commentedComment #9
christianadamski commentedHey,
would it be a good idea to offer your improvements to the rooms module itself?
Would your module supersede the original rooms module completely?
Are you in contact with the creators of that module?
Comment #10
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #11
ziomizar commentedHi,
I've restarted to work on this project, after some months i tried to search something similar to this module but no luck.
ChristianAdamski:
- i've let some messages on the issue list of rooms but the creator of the module dont responded me.
- this module don't superseded rooms, but improve it, offer some functionalities like views search, book now button in full node page, and integrate into node the rooms functionalities.
I've commited some improvements and fix all open issues on the sandbox page.
Comment #12
ziomizar commentedComment #13
ziomizar commentedFixed a lot of errors on pareview i think that remain only false positive.
http://pareview.sh/pareview/httpgitdrupalorgsandboxziomizar2086255git
Comment #14
ziomizar commentedComment #15
ziomizar commentedComment #16
ziomizar commentedComment #17
ziomizar commentedComment #18
ziomizar commentedComment #19
ziomizar commentedComment #20
RavindraSingh commentedThere are still many errors needs fix:
Comment #21
ziomizar commentedHi RavindraSingh,
This errors are views related, i follow the style of views to write extend the views handler, i think that the errors you reported are minor or false positive.
Comment #22
ziomizar commentedI have corrected only the Date parameters in the comment that was different from the function parameters.
Comment #23
novitsh commentedFirst of all your GIT clone url should be: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ziomizar/2086255.git rooms_node
This is without your username in it.
Automated Review
You have issues (as mentioned above) according to PAReview: http://pareview.sh/pareview/httpgitdrupalorgsandboxziomizar2086255git
Manual Review
Conclusion: I have not tested the module in my local, I've just looked at the code. It seems like a very good module and I know for sure that this could benefit many people. I have a feeling your module can use finetuning like mentioned in the topics above. But then again, those are probably minor things and easy to fix.
I'm really looking forward to this module myself! Keep up the work.
This review uses the Project Application Review Template.
Comment #24
ziomizar commentedComment #25
ziomizar commentedHi Novitsh,
Tnx for your review!
I set these points:
I will not solve the problems in Pareview because it is the same style used in filters handler of the views module.
I hope you will test it soon!
Comment #26
ziomizar commentedComment #27
ziomizar commentedComment #28
ziomizar commentedComment #29
ziomizar commentedComment #30
klausiGit errors:
Review of the 7.x-1.x branch (commit 00af6e9):
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.
manual review:
But that are not critical application blockers, looks RTBC to me otherwise.
Assigning to Naveen as he might have time to take a final look at this.
Comment #31
ziomizar commentedHi klausi,
- I have removed the master branch.
1. The mantainer of rooms do not seems interested on include rooms_node into rooms module.
2. I have added on rooms_node_schema() the primary key, foreign keys, indexes and unique keys and fixed all the descriptions
3. rooms_node_admin_paths() is not used on this version of the module and has been removed
4. rooms_node_block_view now return just the render array without call any theme or render functions
5. Changed the concatenated variables in t() functions with placeholders
6. Changed db_query with db_insert on rooms_node_update_index()
7. Fix doc description of the hook in hook_form_FORM_ID_alter()
Thanks for your review..
Comment #32
naveenvalechaReview of the 7.x-1.x branch (commit 8b4ba03):
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.
Manual Review :
Already RTBC by@klausi.Found no blocker.
Comment #33
naveenvalechaThanks for your contribution, @ziomizar!
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.
Comment #34
ziomizar commentedHi naveenvalecha,
- the code in rooms_node.admin.inc alter the content type configuration form, like admin/structure/types/manage/your-content-type
- I've fixed views dependencies and implemented hook_help
Thanks! :)