This module provides revisions for taxonomy terms.
It is working with Drupal 7, because the taxonomy module wasn't entirely rewritten in Drupal 7, I'm planning to make a Drupal 6 version also if the community will ask for it.
I needed this for a project 4 months ago, I found this issue on drupal.org, but nobody worked on it: http://drupal.org/node/59429
and as I know it the revision support for taxonomy terms is postponed to Drupal 8.
Perhaps if I make the release of this module some of you can use it also.
Project page: http://drupal.org/sandbox/skipyT/1611652
Link to the git repository: git clone http://git.drupal.org/sandbox/skipyT/1611652.git taxonomy_revision
Reviews:
Multisite views: http://drupal.org/node/1630118#comment-6107832
Login redirect: http://drupal.org/node/1626870#comment-6107968
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | drupalcs-result.txt | 6.91 KB | klausi |
Comments
Comment #1
patrickd commentedwelcome back,
As installation and usage instructions are quite important for us to review, please take a moment to make your project page follow the tips for a great project page. Also create a README.txt that follows the guidelines for in-project documentation.
An automated review of your project has found some issues with your code; As coding standards make sure projects are coded in a consistent style we please you to have a look at the report and try to fix them. Anyway, note that issues found are possibly false positives and fixing all issues is not a requirement for getting through the application process.
Report: http://ventral.org/pareview/httpgitdrupalorgsandboxskipyt1611652git
However the module is definitely long enough this time :)
We do really need more hands in the application queue and highly recommend to get a review bonus so we can come back to your application sooner.
regards
Comment #2
atul.bhosale commentedComment #3
patrickd commentedplease leave application issues as tasks
Comment #4
skipyT commentedHi,
Thank you for your review. I added the hook_uninstall() which deletes the revision_id column from the taxonomy_term_data table. I think we really need that column there to be consistent with the other entity types revision systems and not only.
Also I updated the module code to be as the Drupal best practices asks and I edited the README.txt.
Comment #4.0
skipyT commentedreview link added
Comment #5
orakili commentedHi,
After reading the code which appears clean and well structured, I have the following comments/questions:
* In taxonomy_revision.install
- The schema of the taxonomy_term_data_revision says tid is the primary key, but revision_id is defined as it.
- There is no index for (tid, revision_id) but it could be useful for taxonomy_revision_delete
- I think a call to db_drop_unique_key is missing in taxonomy_revision_uninstall
- A authorid field could be useful. Also it's mentioned in taxonomy_term.views.inc
* taxonomy_revision.module
- In taxonomy_revision_term_load: maybe you could use EntityFieldQuery to get the tids matching the condition as recommended on the entity_load page to make it compatible with Drupal 8.
* taxonomy_revision.views.inc
- As mentioned above, there is a reference to the authorid field for the taxonomy_term_data_revision but this field doesn't exist. (I think it would be interesting to have it.)
* Automatic review
http://ventral.org/pareview/httpgitdrupalorgsandboxgarphy1358780git-7x-1x
Several style errors have been detected (mostly class/function names and missing scope for the views plugins) but none is blocking.
So once the issues with the schema have been fixed, I think it's good to go.
Comment #6
skipyT commentedHi,
Thanks for your detailed review. I made most of the proposed changes. I added the author id, I fixed the schema, I modified the view.inc file to define the relation to the user table, updated the uninstall hook to delete the unique key.
I didn't added the key for (tid, revision_id) because I think we don't need a key for this (I don't like to create to many keys on a table) and the delete function is not used frequently I think.
Also for the taxonomy_revision_term_load I really can't use the EntityFieldQuery in this situation. I need to load the revision, which is a custom condition. EntityFieldQuery is not loading the entity, i'm getting back only the id or revision but not the entity. I still need to use the entity_load to get the revision. There it is a discussion to create an entity_load_revision function (http://drupal.org/node/1183452) because if condition is deprecated and it will be out in Drupal 8, we'll not have any other way to load revisions.
Comment #7
orakili commentedHi,
It looks good, thanks for the modifications.
It would be nice to handle the user information in taxonomy_revision_overview to have something similar to node revision ('!date by !username').
Also, apparently there is no way to see a revision. For example for a node we can access it through node/NODEID/revisions/REVISIONID/view. It would be great to have this feature.
I will run a second series of test tomorrow.
Thanks for your work.
Comment #8
orakili commentedNo problem found after second series of test.
This module looks good to me.
Note: I've also created a case (#1643800: Revision view page) with a patch to add the functionality mentioned in #7.
Comment #9
skipyT commentedThank you for your detailed review. Unfortunately I didn't have time to work on this in the weekend but I will try this week to merge your patch.
I will try also to find some time tomorrow evening to check your module and to help you with a manual review.
Comment #10
klausiReview of the 7.x-1.x branch:
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:
require_once dirname(__FILE__) . '/mymodule.inc';Although you should definitively fix those issues they are no blockers, so ...
Thanks for your contribution, skipyT! Welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
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.
As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.
Thanks to the dedicated reviewer(s) as well.
Comment #11.0
(not verified) commentedadded new review