Closed (won't fix)
Project:
Rabbit Hole
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2012 at 01:54 UTC
Updated:
24 May 2012 at 12:51 UTC
Bummed, this starts adding "junk" to your database straight away.
It really shouldn't add anything to your node table without asking first. Per node rabbit hole actions seems less likely to be used than content type.
The "301" placed in every node table record by default seems pretty silly.
While it's noble to avoid adding yet-another-table for this module, I'm a little off put by adding three fields to the node table when I actually need none.
After saving two nodes (with no Rabbit node settings, and content types left as default behavior as well). I already have useless data in my node table...
mysql> select nid,rabbit_hole_action,rabbit_hole_redirect,rabbit_hole_redirect_response from node where rabbit_hole_action IS NOT NULL;
+-----+--------------------+----------------------+-------------------------------+
| nid | rabbit_hole_action | rabbit_hole_redirect | rabbit_hole_redirect_response |
+-----+--------------------+----------------------+-------------------------------+
| 2 | -1 | | 301 |
| 9 | -1 | | 301 |
+-----+--------------------+----------------------+-------------------------------+
Comments
Comment #1
doublejosh commentedDon't mean to be negative but Internal Nodes implements this. Feeling like these modules really need to merge.
http://drupal.org/node/1440608#comment-5884322
Comment #2
olofbokedal commentedI can see the point in being able to override the settings per node, and this would obviously need some kind of storage. I believe this could be achieved in three different ways:
Adding an extra table seems unnecessary, and storing the settings as variables would mean extra work. But if the settings are stored in the node table, the data will load automatically every time a node is loaded from the database, and the settings will get saved automatically. And I can't really see the harm in adding extra columns, as this is supported in core, and by the fact that the settings are directly connected to a node.
That's the reason why I choose the third option.
I'll leave this issue open in case you or anyone else are able to convince me =)
As for Internal Nodes, I'll discuss it in #1440608: Duplicate module.
Comment #3
olofbokedal commentedClosing this issue. Feel free to open it again if anyone has any additional comments regarding the additional table columns.