Patch #3274
openWiki Page Categories
0%
Description
This patch is a preliminary implementation of wiki page categories (think: Wikipedia) for Redmine.
The patch is against Redmine 0.8.3. Watch it in action here:
http://www.bitcetera.com/assets/media/wiki_page_categories.mov
Please note that I haven't written nor adapted any tests/fixtures yet. If you choose to adopt this patch, I'll catch up on this.
Files
Updated by Sven Schwyn over 15 years ago
I've just seen that patches are supposed to be against the trunk. No problem, I can do that, but I'd love to hear beforehand if the patch stands a chance to be merged at all. Thanks!
Updated by Eric Davis over 15 years ago
I love the feature idea but we will need to have the patch apply to trunk and also to have some tests (especially for ApplicationHelper). Would you mind updating the patch?
Also the screencast was great. It really made it easy to see what functionality was included.
Updated by Sven Schwyn about 15 years ago
- % Done changed from 80 to 100
I've applied the patch (with routes adapted) against the mirror on Github and added "Index by category" and "Pages without category" to the featureset. Furthermore, I've written a bunch of tests as well.
http://github.com/svoop/redmine/tree/master
Shall I create a patch against the current master or do a pull request on Github?
Updated by Sven Schwyn about 15 years ago
Here are the changes against upstream master as of today.
Updated by Eric Davis about 15 years ago
- Assignee set to Eric Davis
- % Done changed from 100 to 0
Sven has asked me to take a look at this patch. Assigning to myself as a reminder.
Updated by Sven Schwyn almost 15 years ago
I'm trying to clean up my contributions to a few projects before I loose the overview. This patch is several months now, do you see a chance to apply it any time soon? Or is there anything I can do to make this more likely to happen such as rebasing on Github or creating a new patch against the current trunk?
Updated by Sven Schwyn almost 15 years ago
I've forked anew on Github and added the wiki page categories feature again. (Rebasing caused a funky issue I couldn't resolve.)
Please DON'T use the above patch, it has a bug which is fixed in this new commit on Github:
http://github.com/svoop/redmine/commit/e06a07e0f004e2f826687e1d10611a5162eef4f2
Updated by Eric Davis almost 15 years ago
- File wiki-categories-3274.patch wiki-categories-3274.patch added
- Status changed from New to 7
I did a quick review of the patch (included) and the feature looks good. A concern I have is storing the categories as a delimited string on a wiki page. It makes querying for the categories harder (e.g. SQL LIKE) and requires the code to do a bunch of string processing to split and join them each time they are used. What if we use a full database model to store the Wiki categories and associte them with the wiki pages themselves?
Updated by Jean-Philippe Lang almost 15 years ago
- Status changed from 7 to New
Updated by Jean-Philippe Lang almost 15 years ago
Instead, we'd better review the existing Tagging plugins for Rails app to choose one.
Updated by Sven Schwyn almost 15 years ago
Fair point, Jean-Philippe. I'm used to Mediawiki, so I took the approach from there which may or may not be a fit for Redmine. (However, I would have preferred to get opinions before doing the extra work, after all, it was easy to see from the screencast. Don't particularly like to code into the wastebin.)
Never mind, is there a particular tagging plugin you have in mind?
Updated by Sven Schwyn almost 15 years ago
I've only used tagging once so far (with the acts-as-taggable-on plugin). From a UI point of view, would it be better to edit the tags on the "edit wiki page" view or directly in the sidebar?
By the way, I guess the reason why Mediawiki sets the page category (or tag) in the content itself is to include the page category (or tag) in the history.
Updated by Sven Schwyn over 14 years ago
I'll do an alternative implementation based on tagging. The tags will be displayed in the show view sidebar and can be edited in the edit view. (A future enhancement could be AJAX editing directly in the sidebar.)
I favour acts_as_taggable_on (as it's the only one I have used so far). Any other suggestions for the tagging plugin?
http://return42.blogspot.com/2009/07/many-ways-to-tag-taggables.html