alvila / redmine_reminder Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://www.alvila.com/
Home Page: http://www.alvila.com/
This is giving me an error in rake because this path is not correct in my application.. or.. in latest redmine svn version?
in reminder_all.rake
require File.expand_path(File.dirname(FILE) + "/../../../../../config/environment")
nueva incidencia jose
In Redmine 1.2.0 everything works good.
Rails=2.3.11
But when i update to 1.2.2 (rails =2.3.14) i got an error
"Missing template reminder_all/reminder_all.text.erb in view path vendor/plugins/redmine_issue_notification/app/views:vendor/plugins/redmine_reminder/app/views:app/viewsvendor/plugins/redmine_issue_notification/app/views:vendor/plugins/redmine_reminder/app/views:app/views"
Would be useful for overdue items to have a CSS tag to allow for highlighting
Hi
I'am installed plugin with redmine 1.1.2 (mongrel-cluster):
sudo ./script/plugin install git://github.com/alvila/redmine_reminder.git
sudo chown www-data:www-data -R /data/redmine
Then I trying to test plugin:
mst@redmine:/data/redmine$ sudo rake redmine:send_reminders_all days=30 RAILS_ENV=production --trace
(in /data/redmine)
** Invoke redmine:send_reminders_all (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:send_reminders_all
rake aborted!
Missing template reminder_all/reminder_all.text.plain.rhtml in view path app/views
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/paths.rb:66:in find_template' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:264:in
render'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:348:in _render_with_layout' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:262:in
render'
/var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:567:in render' /data/redmine/app/models/mailer.rb:432:in
render_multipart'
/data/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:48:in reminder_all' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:459:in
send'
/var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:459:in create_without_messenger!' /data/redmine/vendor/plugins/redmine_messenger/lib/redmine_messenger/mailer.rb:6:in
create!'
/var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:452:in initialize' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:395:in
new'
/var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:395:in method_missing' /data/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:142:in
reminders_all'
/data/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:117:in each' /data/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:117:in
reminders_all'
/data/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:171
/usr/lib/ruby/1.8/rake.rb:636:in call' /usr/lib/ruby/1.8/rake.rb:636:in
execute'
/usr/lib/ruby/1.8/rake.rb:631:in each' /usr/lib/ruby/1.8/rake.rb:631:in
execute'
/usr/lib/ruby/1.8/rake.rb:597:in invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in
synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:583:in
invoke'
/usr/lib/ruby/1.8/rake.rb:2051:in invoke_task' /usr/lib/ruby/1.8/rake.rb:2029:in
top_level'
/usr/lib/ruby/1.8/rake.rb:2029:in each' /usr/lib/ruby/1.8/rake.rb:2029:in
top_level'
/usr/lib/ruby/1.8/rake.rb:2068:in standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:2023:in
top_level'
/usr/lib/ruby/1.8/rake.rb:2001:in run' /usr/lib/ruby/1.8/rake.rb:2068:in
standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28
I have the following cron job running:
1 0 * * * test -e
Today I got an email with the following subject:
Subject: 0 issues due in the next 4 days
And of course, it contained nothing but a link to the list of issues in project foo and the standard disclaimer.
I'm a bit nervous about this feature, because after the plugin seemed to work fine for some time in project foo, I'd like to roll it out for all projects, but that won't fly if every user receives such useless email.
rake aborted!
NameError: uninitialized constant Reminder_all::ARCondition
/home/fyz/redmine-2.6.5/plugins/redmine_reminder0511/lib/tasks/reminder_all.rake:55:in reminders_all' /home/fyz/redmine-2.6.5/plugins/redmine_reminder0511/lib/tasks/reminder_all.rake:171:in
block (2 levels) in <top (required)>'
Tasks: TOP => redmine:send_reminders_all
Would be useful to include the following additional options:
This would allow emails functionality:
Is there any fork which works with redmine 2.1.4 ?
In my redmine 1.3.0 installation, i have just cloned from this repo, and with this line:
rake --trace redmine:send_reminders_all days=1 RAILS_ENV=production
I get this error:
Missing template reminder_all/reminder_all.text.erb in view path vendor/plugins/redmine_reminder/app/views:app/views
What can i do?
On 2008-05-25, revision 1459, redmine included this feature :
Adds a rake task to send reminders. An email is sent to each user with a list of the issues due in the next days, if any.
See rake -D redmine:send_reminders for options.
Refs:
It looks stunningly close to what this plugin does, including options days
, project
and tracker
. It also has users
that this plugin does not have.
Is this plugin still needed ? What benefit does it add ?
(Some of your other plugins, like "add watcher by role/group" seem definitely better than stock redmine !)
Thank you for your attention.
For use the plugin would be very usefuly if every user can set at whan events and how often ge shall get notified.
E.g on news changes every week with all changes of the week, or on new bugs every day at 7 o'clock with summary of all new bugs and on changes of tickets i am owver or watcher immidiately.
It would need a extension on the user account menue with an extensiable list where you can choose "event type" and "notification schedule" and "notification format"
1.1 New: Just a new entry in any project i am involved and have view rights
1.2 Change: changes on Item in project i am involved, have view rights and the filter is met. If no filter is set any change will be notified.
Optional filter settings for this kind of event: oOne ore more fields (or relation) for which the the change event shall fired can be choosen, so only if the fields are changed or set to a certain value use gets notified. In view that would mean you could addfilter items to a list where every list item consists of "Event type" (e.g issue) field and filter value (e.g certain value or "any change"). For an easy first step all tems can be concatenated logical with "and".
This way a filter can set be defined too, that only notifies for changes i am author or watcher and on special projects.
Here is the text with correct translation :
fr:
mail_reminder_all_day1: "jour"
mail_reminder_all_day2: "jours"
mail_reminder_all_day5: "jours"
mail_subject_reminder_all1: "{{count}} demande est due dans moins de {{days}} {{day}}"
mail_body_reminder_auth1: "{{count}} demande crée par vous est due dans moins de {{days}} {{day}} :"
mail_body_reminder_assigned1: "{{count}} demande qui vous est assignée est due dans moins de {{days}} {{day}} :"
mail_body_reminder_watched1: "{{count}} demande que vous observez est due dans moins de {{days}} {{day}} :"
mail_subject_reminder_all2: "{{count}} demandes sont dues dans moins de {{days}} {{day}}"
mail_body_reminder_auth2: "{{count}} demandes créées par vous sont dues dans moins de {{days}} {{day}}:"
mail_body_reminder_assigned2: "{{count}} demandes qui vous sont assignées sont dues dans moins de {{days}} {{day}}:"
mail_body_reminder_watched2: "{{count}} demandes que vous observez sont dues dans moins de {{days}} {{day}}:"
mail_subject_reminder_all5: "{{count}} demandes sont dues dans moins de {{days}} {{day}}"
mail_body_reminder_auth5: "{{count}} demandes créées par vous sont dues dans moins de {{days}} {{day}}:"
mail_body_reminder_assigned5: "{{count}} demandes qui vous sont assignées sont dues dans moins de {{days}} {{day}}:"
mail_body_reminder_watched5: "{{count}} demandes que vous observez sont dues dans moins de {{days}} {{day}}:"
Hi,
I'm using redmine 1.2.1 without problem with your problem until I start to completely remove old users (not only desactivated... removed). Your plugin generate this kind of trace:
root@web /usr/local/lib/redmine # cd /usr/local/lib/redmine && rake --trace redmine:send_reminders_all days=14 RAILS_ENV=production
(in /usr/local/lib/redmine-1.2.1)
** Invoke redmine:send_reminders_all (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:send_reminders_all
rake aborted!
undefined method `+' for nil:NilClass
/usr/local/lib/redmine-1.2.1/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:111:in `reminders_all'
/usr/local/lib/redmine-1.2.1/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:111:in `sort!'
/usr/local/lib/redmine-1.2.1/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:111:in `reminders_all'
/usr/local/lib/redmine-1.2.1/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:171
/usr/lib/ruby/1.8/rake.rb:636:in `call'
/usr/lib/ruby/1.8/rake.rb:636:in `execute'
/usr/lib/ruby/1.8/rake.rb:631:in `each'
/usr/lib/ruby/1.8/rake.rb:631:in `execute'
/usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:583:in `invoke'
/usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2029:in `each'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:2023:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2001:in `run'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28
The problem is that redmine automatically assign the issues that were created by this user to the Anonymous one... which don't have any email address of course.
I simply corrected the issue with this simple patch:
diff --git a/lib/tasks/reminder_all.rake b/lib/tasks/reminder_all.rake
index 35e83d2..5ad0335 100644
--- a/lib/tasks/reminder_all.rake
+++ b/lib/tasks/reminder_all.rake
@@ -90,7 +90,9 @@ class Reminder_all < Mailer
end
end
if found==0 then
- over_due<<[author, "author", issues]
+ if !author.mail.nil? then
+ over_due<<[author, "author", issues]
+ end
end
end
issues_by.group_by(&:watchers).each do |watchers, issues|
All the best,
Jérôme
Hi,
please add the following Italian translation to your plugin (as config/locales/it.yml):
it:
mail_reminder_all_day1: "giorno"
mail_reminder_all_day2: "giorni"
mail_reminder_all_day5: "giorni"
mail_subject_reminder_all1: "{{count}} issue scadrà nei prossimi {{days}} {{day}}"
mail_body_reminder_auth1: "{{count}} issue creata da te scadrà nei prossimi {{days}} {{day}}:"
mail_body_reminder_assigned1: "{{count}} issue che ti è assegnata scadrà nei prossimi {{days}} {{day}}:"
mail_body_reminder_watched1: "{{count}} issue che stai guardando scadrà nei prossimi {{days}} {{day}}:"
mail_subject_reminder_all2: "{{count}} issue scadranno nei prossimi {{days}} {{day}}"
mail_body_reminder_auth2: "{{count}} issue create da te scadranno nei prossimi {{days}} {{day}}:"
mail_body_reminder_assigned2: "{{count}} issue che ti sono assegnate scadranno nei prossimi {{days}} {{day}}:"
mail_body_reminder_watched2: "{{count}} issue che stai guardando scadranno nei prossimi {{days}} {{day}}:"
mail_subject_reminder_all5: "{{count}} issue scadranno nei prossimi {{days}} {{day}}"
mail_body_reminder_auth5: "{{count}} issue create da te scadranno nei prossimi {{days}} {{day}}:"
mail_body_reminder_assigned5: "{{count}} issue che ti sono assegnate scadranno nei prossimi {{days}} {{day}}:"
mail_body_reminder_watched5: "{{count}} issue che stai guardando scadranno nei prossimi {{days}} {{day}}:"
Thanks,
Giuseppe
* Invoke redmine:send_reminders_all (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:send_reminders_all
rake aborted!
undefined method `[]' for nil:NilClass
/usr/share/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:112:in `reminders_all'
/usr/share/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:171
/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `call'
/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:200:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:200:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:144:in `invoke'
/usr/lib/ruby/vendor_ruby/rake/application.rb:116:in `invoke_task'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `each'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:88:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:66:in `run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:63:in `run'
/usr/bin/rake:27
Tasks: TOP => redmine:send_reminders_all
Any sugestions ?
In Redmine 1.1.3, I followed the guide at https://github.com/alvila/redmine_reminder to install redmine_installer plugin. When running the command rake redmine:send_reminders_all days=1RAILS_ENV=production, it got an error:
NOTE: SourceIndex.new(hash) is deprecated; From /usr/share/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in 'new'.
Please install RDoc 2.4.2+ to generate documentation.
config.load_paths os deprecated and removed in Rails 3, please use autoload_paths instead
config.load_paths= is deprecated and remove in Rails 3, please use aitoload_paths= instead
Could you help me to solve this problem. Besides, I want to modify this plugin to automatically send reminder email base on due date of each issues. Could this plugin do that?
Thank you for all your helps!
rake aborted!
undefined method `[]' for nil:NilClass
Then, connecting as root, and esecuting the command in a terminal using the --trace argument, I get this screen:
centrum:~# cd /usr/share/redmine && rake --trace redmine:send_reminders_all RAILS_ENV=production
(in /usr/share/redmine)
** Invoke redmine:send_reminders_all (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:send_reminders_all
rake aborted!
undefined method []' for nil:NilClass /usr/share/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:112:in
reminders_all'
/usr/share/redmine/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:171
/usr/lib/ruby/1.8/rake.rb:636:in call' /usr/lib/ruby/1.8/rake.rb:636:in
execute'
/usr/lib/ruby/1.8/rake.rb:631:in each' /usr/lib/ruby/1.8/rake.rb:631:in
execute'
/usr/lib/ruby/1.8/rake.rb:597:in invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in
synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:583:in
invoke'
/usr/lib/ruby/1.8/rake.rb:2051:in invoke_task' /usr/lib/ruby/1.8/rake.rb:2029:in
top_level'
/usr/lib/ruby/1.8/rake.rb:2029:in each' /usr/lib/ruby/1.8/rake.rb:2029:in
top_level'
/usr/lib/ruby/1.8/rake.rb:2068:in standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:2023:in
top_level'
/usr/lib/ruby/1.8/rake.rb:2001:in run' /usr/lib/ruby/1.8/rake.rb:2068:in
standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28
I am currently uting the version shipped with Debian stable:
centrum:/usr/share/redmine# RAILS_ENV=production ruby script/about./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.7
Rack version 1.1
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter postgresql
Database schema version 20100819172912
About your Redmine plugins
Advanced reminder 0.0.1
Redmine Attach Screenshot plugin 0.0.4
Redmine Extended Spent Time plugin 0.0.1
Redmine Newissuealerts plugin 0.0.2
Timesheet Plugin 0.6.0
Redmine Logs plugin 0.0.1
Thanks,
Giuseppe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.