Giter VIP home page Giter VIP logo

redmine_reminder's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_reminder's Issues

no such file to load /var/www/config/environment

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")

Template error in Redmine 1.2.2

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"

Missing template reminder_all/reminder_all.text.plain.rhtml in view path app/views

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:inrender'
/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:inrender'
/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:inrender_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:insend'
/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:increate!'
/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:innew'
/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:inreminders_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:inreminders_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:inexecute'
/usr/lib/ruby/1.8/rake.rb:631:in each' /usr/lib/ruby/1.8/rake.rb:631:inexecute'
/usr/lib/ruby/1.8/rake.rb:597:in invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize'
/usr/lib/ruby/1.8/rake.rb:590:in invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:583:ininvoke'
/usr/lib/ruby/1.8/rake.rb:2051:in invoke_task' /usr/lib/ruby/1.8/rake.rb:2029:intop_level'
/usr/lib/ruby/1.8/rake.rb:2029:in each' /usr/lib/ruby/1.8/rake.rb:2029:intop_level'
/usr/lib/ruby/1.8/rake.rb:2068:in standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:2023:intop_level'
/usr/lib/ruby/1.8/rake.rb:2001:in run' /usr/lib/ruby/1.8/rake.rb:2068:instandard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28

Reminders sent with 0 issues pending

I have the following cron job running:

1 0 * * * test -e $HOME/redmine && cd ${HOME}/redmine && rake redmine:send_reminders_all days=4 project=foo RAILS_ENV=production | grep -v '(in '"$HOME"'/redmine-1.1.0)'

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.

NameError: uninitialized constant Reminder_all::ARCondition

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:inblock (2 levels) in <top (required)>'
Tasks: TOP => redmine:send_reminders_all

Additional options (no due date, priority)

Would be useful to include the following additional options:

  • include where the due date has not been set
  • filter on priority

This would allow emails functionality:

  • send all users an email showing their work pipeline - issues with no due date + issues due in x days
  • send all users an email showing their 'x' priority pipeline (eg: send high priority alerts once a day, low priority once a week etc.)

1.3.0 problem

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?

Feature already included in redmine ?

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.

Per user and per project configurable notification

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. Event type: is new or change on any item, eg. news, tissue, thread, file

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.

  1. Notification schedule
  • immidiately (means one item per notification)
  • hourly (all changes in this hour)
  • daily (all changes this day and optional set time when to fire notification)
  • weekly (all changes this week and optional set day time when to fire notification)
  • on every login (for pop windows only)
  1. Notification format
  • Email
  • browser window popup
  • short summary (means item topic and link)
  • average summary (topic and info on changed fields and author of change and link)
  • full summary ( complete meta data of item and link)

[fr] Update french translation

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}}:"

undefined method `+' for nil:NilClass

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

Italian traslation

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

undefined method `[]' for nil:NilClass

* 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 ?

Error when set up task scheduler

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!

error "undefined method `[]' for nil:NilClass" when running from cron

I just received this email from crontab

rake aborted!
undefined method `[]' for nil:NilClass

(See full trace by running task with --trace)

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:inreminders_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:inexecute'
/usr/lib/ruby/1.8/rake.rb:631:in each' /usr/lib/ruby/1.8/rake.rb:631:inexecute'
/usr/lib/ruby/1.8/rake.rb:597:in invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize'
/usr/lib/ruby/1.8/rake.rb:590:in invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:583:ininvoke'
/usr/lib/ruby/1.8/rake.rb:2051:in invoke_task' /usr/lib/ruby/1.8/rake.rb:2029:intop_level'
/usr/lib/ruby/1.8/rake.rb:2029:in each' /usr/lib/ruby/1.8/rake.rb:2029:intop_level'
/usr/lib/ruby/1.8/rake.rb:2068:in standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:2023:intop_level'
/usr/lib/ruby/1.8/rake.rb:2001:in run' /usr/lib/ruby/1.8/rake.rb:2068:instandard_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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.