Project

General

Profile

Is it possible to set "wiki edits" viewable by default in Activity view?

Added by Dave Hrycyszyn over 14 years ago

Hi, I was just wondering - is it possible to set "wiki edits" as a default event type which shows up in the Activity view in Redmine? Currently on our installation, it's the case that the "wiki edits" check box is always unticked by default until a user ticks it. After going off and doing some other stuff for a while, "wiki edits" are unticked again.

We're starting to work on a project where the use of the wiki is actually the main thing that people will do in the project, so we want that activity to show up by default in the activity list.

I can see in the code that there's an :all and a :default set of event types to be monitored in the Activity view but am unclear on whether I need to hack Redmine to set wiki edits viewable or whether there's a simpler way to go about things that I'm simply not seeing.


Replies (3)

RE: Is it possible to set "wiki edits" viewable by default in Activity view? - Added by Dave Hrycyszyn over 14 years ago

Aha, interesting:

http://www.redmine.org/projects/redmine/repository/revisions/370

There's a (very old) patch which hacks the the activity page to accomplish this, but (no offense intended to the author of the patch) this seems like the nuclear option:

http://www.redmine.org/projects/redmine/repository/revisions/370/diff/trunk/app/controllers/projects_controller.rb

I think that code is no longer in projects_controller, I'll keep digging around, but if anybody has any tips I'd be very happy to hear them.

RE: Is it possible to set "wiki edits" viewable by default in Activity view? - Added by Miroslav Škultéty about 14 years ago

I think this patch will do:

Index: lib/redmine.rb
===================================================================
--- lib/redmine.rb      (revision 39)
+++ lib/redmine.rb      (working copy)
@@ -165,7 +165,7 @@
   activity.register :news
   activity.register :documents, :class_name => %w(Document Attachment)
   activity.register :files, :class_name => 'Attachment'
-  activity.register :wiki_edits, :class_name => 'WikiContent::Version', :default => false
+  activity.register :wiki_edits, :class_name => 'WikiContent::Version', :default => true
   activity.register :messages, :default => false
   activity.register :time_entries, :default => false
 end

RE: Is it possible to set "wiki edits" viewable by default in Activity view? - Added by Philip Nordenfelt over 13 years ago

Sorry for waking the dead... I was looking to do the same thing and changed my source code. The change won't get reflected though... do I need to recompile or something like sometimes with ASP.NET? Never used ruby on rails before but I love redmine!

    (1-3/3)