Project

General

Profile

Doodle Plugin

Added by Felix Schäfer about 15 years ago

I'm not sure how many people will need this, but I've put together a little Doodle Plugin, which is a per-project module (like the wiki or the forums). The point is that basic functionality works, but there are still some design decisions to be made (e.g.: should you be able to completely delete your votes to a doodle, or just be able to set all your answers to "no"), and I'd need a little help with the css, so if anyone is interested, follow the discussion here and give me some feedback :-)

Anyway, I'll try to clean up the code tonight and post a link to the subversion repo here, and we'll see where it goes from there. The project is hosted in a redmine, but not a public enough one that we could discuss anything there, so we'll have to stick to this thread for the time being.


Replies (87)

RE: Doodle Plugin - Added by Felix Schäfer almost 14 years ago

Terence Mill wrote:

It would be fantastic if you could add some feature to the plugin.

  • If ya create a doddle to be answered by defined users, a checkbox which makes the user must answer the doodle (eg. which a popup next on next login) before proceeding

Mmh, not sure I'd like that, but I'll think about it.

  • If ya create a doddle to be answered by defined users, a checkbox to send an email invitation to answert the doodle

I think users requested to answer already get an email, don't they? Or do you want a checkbox so you can disable that behavior on a "per-requested-answer-user"?

  • a button to select all users to answer a doodle

Good point, no idea where I'll put that though (UI-wise) :-)

  • a wiki integration to show results of a doodle in a table or even a chart

I've thought about that too, haven't had the time to play with the wiki macros yet though.

RE: Doodle Plugin - Added by Terence Mill almost 14 years ago

Felix Schäfer wrote:

Terence Mill wrote:

It would be fantastic if you could add some feature to the plugin.

  • If ya create a doddle to be answered by defined users, a checkbox which makes the user must answer the doodle (eg. which a popup next on next login) before proceeding

Mmh, not sure I'd like that, but I'll think about it.

That would be very useful ;)

  • If ya create a doddle to be answered by defined users, a checkbox to send an email invitation to answert the doodle

I think users requested to answer already get an email, don't they? Or do you want a checkbox so you can disable that behavior on a "per-requested-answer-user"?

Yes, your right, it works!

  • a button to select all users to answer a doodle

Good point, no idea where I'll put that though (UI-wise) :-)

Just below or above the users list..

  • a wiki integration to show results of a doodle in a table or even a chart

I've thought about that too, haven't had the time to play with the wiki macros yet though.

Maybe the Wiki extensions help

RE: Doodle Plugin - Added by David Brown over 13 years ago

Felix Schäfer wrote:

Whyever the second paragraph got quoted or boxed, or whatever it is O_o

It appears there is not much traffic here. Myself and one collaborator are working on a project using a Redmine repo and issue tracker. We have the Doodles plugin installed and it is great for helping to integrate and coordinate issues with the users.

Now, I am using Doodles as a meeting scheduler and it is working with some limitations. What would be great is if the Calendar allowed the inclusion of the hour of the scheduled meeting. We can do this manually in the Expiration Date field but since our receptionist is wielding the Doodles tool for us it would be great if she could using the little calendar ui set the hour times on the date selected.

How hard would this be to implement the changes needed to use the calendar ui to post a hour time along with the date selected. I have used various frameworks mostly Java based the past 12 years. I have no Ruby background. Please advise.

RE: Doodle Plugin - Added by Alfredo Bonilla over 13 years ago

Hi,

related to the problem with the:

ActionView::MissingTemplate (Missing template mailer/doodle_added.text.plain.rhtml in view path app/views)

I have the same issue... and the only way for solving it is by copying the "vendor\plugins\redmine_doodles\app\views\mailer" files into "redmine\app\views\mailer"...

Does anybody have any idea about this? I have similar inicident in redmine_whining plugin... and in both Windows and Ubuntu installations.

Regards

RE: Doodle Plugin - Added by Felix Schäfer over 13 years ago

Hi David,

David Brown wrote:

Now, I am using Doodles as a meeting scheduler and it is working with some limitations. What would be great is if the Calendar allowed the inclusion of the hour of the scheduled meeting. We can do this manually in the Expiration Date field but since our receptionist is wielding the Doodles tool for us it would be great if she could using the little calendar ui set the hour times on the date selected.

So you'd want the "expiration date" to be a datetime rather than a date, correct?

A short word to the usage you seem to have for the plugin: it currently isn't meant to be used as a meeting planning tool, but as a simple "yes-no"-question tool. I've seen it used to plan meetings in a more casual environment by putting something like "06.04.2011 14:00-16:00" in the option field so as to have several meeting choices, but that's the best I can think of as of now.

How hard would this be to implement the changes needed to use the calendar ui to post a hour time along with the date selected. I have used various frameworks mostly Java based the past 12 years. I have no Ruby background. Please advise.

If I understood your requirement correctly (change the "expiration date" from date to datetime), I think you'd at least need to change the field type in the DB (in a rails migration) and to change the UI to show the additional time fields. I've had to implement a datetime input in a private plugin, and you have two choices there: either use the rails built-in, which doesn't use the little javascript calendar, or add the fields "manually" and merge it all back together in the controller to keep the javascript calender and keep it somewhat consistent to the rest of Redmine. The problem here is that the javascript calendar is a Redmine-specific thing and intended only for dates, it doesn't support datetimes, i.e. if you want to keep the js calendar, you need to handle the time part of the datetime yourself in the UI and controller.

Now back to the question: I'd say somewhere between a half and a full day for someone proficient with rails but not familiar with Redmine, much more if you're not familiar with rails (the thing with rails is: it's a powerful framework with a somewhat easy slope in the beginning, advanced topics get a little harder though, and getting into the Redmine specifics needs those advanced topics).

RE: Doodle Plugin - Added by Alfredo Bonilla over 13 years ago

Alfredo Bonilla wrote:

Hi,

related to the problem with the:

[...]

I have the same issue... and the only way for solving it is by copying the "vendorplugins

edmine_doodlesappiewsmailer" files into "redmineappiewsmailer"...

Does anybody have any idea about this? I have similar inicident in redmine_whining plugin... and in both Windows and Ubuntu installations.

Regards

Well, finally, at least in my installation, the problem was related to the way that other plugin was "patching" the Redmine core Mailer class. Once solved, the problem dissapeared.

RE: Doodle Plugin - Added by michele bonazza about 13 years ago

Alfredo Bonilla wrote:

Well, finally, at least in my installation, the problem was related to the way that other plugin was "patching" the Redmine core Mailer class. Once solved, the problem dissapeared.

I don't have any other "mailer.rb" file in plugins folder, I only have a wiki_extensions_comments_mailer.rb file. I tried to copy the content of vendor\plugins\redmine_doodles\app\views\mailer to redmine\app\views\mailer but to no avail.

I still get the missing template error (permissions are ok, btw).

Anyone knows how to solve this?

RE: Doodle Plugin - Added by michele bonazza about 13 years ago

michele bonazza wrote:

Alfredo Bonilla wrote:

Well, finally, at least in my installation, the problem was related to the way that other plugin was "patching" the Redmine core Mailer class. Once solved, the problem dissapeared.

I don't have any other "mailer.rb" file in plugins folder, I only have a wiki_extensions_comments_mailer.rb file. I tried to copy the content of vendorplugins

edmine_doodlesappiewsmailer to redmineappiewsmailer but to no avail.

I still get the missing template error (permissions are ok, btw).

Anyone knows how to solve this?

Edit: I had to copy the whole folder and not the content of the folder to redmine/app/views/ . Now it seems to be working!

RE: Doodle Plugin - Added by Simon Belak almost 13 years ago

There is an additional issue at play with ActionView::MissingTemplate. Newer versions of Rails have dropped support for .rhtml. Simply renaming text.html.rhtml -> html.erb and text.plain.rhtml -> text.erb does the trick.

RE: Doodle Plugin - Added by Anonymous over 12 years ago

I have a semiliar issue (related to redmine_meetings) when i try to create a meeting:

ActionView::MissingTemplate (Missing template meeting_mailer/meeting.text.erb in view path app/views):
  vendor/plugins/redmine_meetings/app/models/meeting_mailer.rb:102:in `send_meeting'
  vendor/plugins/redmine_meetings/app/models/meeting_mailer.rb:101:in `send_meeting'
  vendor/plugins/redmine_meetings/app/models/meeting.rb:77:in `deliver'
  vendor/plugins/redmine_meetings/app/models/meeting.rb:76:in `each'
  vendor/plugins/redmine_meetings/app/models/meeting.rb:76:in `deliver'
  vendor/plugins/redmine_meetings/app/controllers/meetings_controller.rb:108:in `create_meeting'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

but the meeting.text.erb exists: vendor/plugins/redmine_meetings/app/views/meeting_mailer/meeting.text.erb

I dont know how to solve this... I use redmine 1.3 stable and the newest version of the meetings plugin.

RE: Doodle Plugin - Added by Arnaud Martel over 12 years ago

Strange and I don't understand why you have this error.
I didn't test this solution but a quick workaround may be to copy redmine_meetings/app/views/meeting_mailer in your $redmine/app/views directory...

RE: Doodle Plugin - Added by Anonymous over 12 years ago

Hmm.. its not working. Same Error Message :(.

(76-87/87)