New plugin NewIssueAlerts v0.0.1 released
Added by chantra . about 15 years ago
Hi,
I have released a plugin that might will enable administrator to send a email to a list of email addresses when a new issue is reported.
Here is the path to my github repo: http://github.com/chantra/redmine_newissuealerts/tree/master
Check the README.rdoc for explanation on how to use it/install it.
Users hitting #408 might find this plugin usefull
Replies (12)
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by Nanda P about 15 years ago
Emmanuel,
Nice idea, I was looking for something like this..
I deployed the plug-in, its working fine. except this "translation missing:" messages.
My Configuration:
C:\Program Files\redmine\current>rake script\about (in C:/Program Files/redmine/current) C:\Program Files\redmine\current>ruby script\about About your application's environment Ruby version 1.8.6 (i386-mswin32) RubyGems version 1.3.1 Rails version 2.2.2 Active Record version 2.2.2 Action Pack version 2.2.2 Active Resource version 2.2.2 Action Mailer version 2.2.2 Active Support version 2.2.2 Application root C:/Program Files/redmine/current Environment development Database adapter mysql Database schema version 20090623194413 About your Redmine plugins Charts Plugin 0.0.13 Timesheet Plugin 0.5.0 Bulk Time Entry 0.3.0 Redmine Task Board plugin 1.0.0 Redmine Status Updates 0.1.1 Redmine Graphs plugin 0.1.0 Redmine Blogs plugin 0.0.4 Stuff To Do Plugin 0.3.0 Redmine Exception Handler plugin 0.2.0 Redmine Newissuealerts plugin 0.0.1 ezFAQ plugin 0.3.3 Redmine Schedules plugin 0.4.2 Markdown Extra formatter 0.0.2 Google Calendar Plugin 0.1.2 Redmine System Notification plugin 0.2.0 Redmine Hudson plugin 0.1.5 C:\Program Files\redmine\current>
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by Nanda P about 15 years ago
I take my words back
I deployed the plug-in,
its working fine.except this "translation missing:" messages.
I am getting the following error :(
issues#new (ActionView::MissingTemplate) "Missing template newissuealerts_mailer/newissuealert.erb in view path C:/ProgramFiles/redmine/current/vendor/plugins/timesheet_plugin/app/views:C:/Program Files/redmine/current/vendor/plugins/system_no A ActionView::MissingTemplate occurred in issues#new: Missing template newissuealerts_mailer/newissuealert.erb in view path C:/Program Files/redmine/current/vendor/plugins/timesheet_plugin/app/views:C:/Program Files/redmine/current/vendor/plugins/system_notification_plugin/app/views:C:/Program Files/redmine/current/vendor/plugins/stuff_to_do_plugin/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_task_board/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_status/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_schedules/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_newissuealerts/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_markdown_extra_formatter/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_hudson/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_graphs/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_google_calendar/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_exception_handler_plugin/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_charts/app/views:C:/Program Files/redmine/current/vendor/plugins/redmine_blogs/app/views:C:/Program Files/redmine/current/vendor/plugins/ezfaq_plugin/app/views:C:/Program Files/redmine/current/vendor/plugins/bulk_time_entry_plugin/app/views:C:/Program Files/redmine/current/app/views:C:/Program Files/redmine/current/app/views: C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by chantra . about 15 years ago
Hi Nanda, thanks for reporting.
I am running the following version on Debian Lenny and redmine 0.8.4, and it runs smoothly:
Ruby version 1.8.7 (i486-linux) RubyGems version 1.2.0 Rails version 2.1.2 Active Record version 2.1.2 Action Pack version 2.1.2 Active Resource version 2.1.2 Action Mailer version 2.1.2 Active Support version 2.1.2 Edge Rails revision unknown Application root /var/www/redmine-0.8.4 Environment development Database adapter mysql Database schema version 101
Translation related:
As per http://github.com/chantra/redmine_newissuealerts/blob/45abd8133a59789dbeb229b51c049f486f3a9d1d/lang/en.yml#L15 , the translation is there.
Mssing template related:
The templates for the mailer are here: http://github.com/chantra/redmine_newissuealerts/tree/45abd8133a59789dbeb229b51c049f486f3a9d1d/app/views/newissuealerts_mailer
I am quite new to this ruby/rails stuff, so I will need some help to solve this as I am not able to reproduce it.
Could it be an ActionMailer version issue?
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by chantra . about 15 years ago
Hi Nanda,
I have pushed changes to the git repository that should make the plugin rails 2.2.2 and redmine svn compatible.
Can you give it a spin pls.
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by Nanda P about 15 years ago
Chantra,
I pulled the latest version, it worked like a charm! Nice Job.!! :)
I tested & verified the functionality.
Button "Edit" suppose to be "Save" right?
Suggestion: Instead of having this under Project menu, can we move it to "Administration -> Plugins -> Redmine Newissuealerts plugin -> Configure"
The reason is we have too many menu items going out of the screen.
I understand this plugin is Project based.
Thank you.
Nanda
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by chantra . about 15 years ago
Nahan,
tks for the feedback.
For the edit button, it indeed makes more sense to rename it save :)
Regarding the configure link. I wanted to separate the configure for each projects. Unfortunately, I did not find a way to put it in Project->settings tabs and hence ended up in the main project menu, which I have to admit is not got for the menu real estate :s.
I am not sure there is a way to do so, I will check this out on IRC where people might have ideas or point me to the right direction.
chantra
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by Mischa The Evil about 15 years ago
Nanda Palaniswamy wrote:
Suggestion: Instead of having this under Project menu, can we move it to "Administration -> Plugins -> Redmine Newissuealerts plugin -> Configure"
The reason is we have too many menu items going out of the screen.
For the issue of having too much project-menu items: You could give the Collapse-plugin a try. The problem you are facing was one of the main reasons for implementing the ability to "move" the project-menu into a dedicated sidebar-tab.
Nanda Palaniswamy wrote:
I understand this plugin is Project based.
Especially since this plugin is project-based, as you say, the most logical way of having the tab would be as a project-menu item IMHO. Though, see below :)
chantra wrote:
Regarding the configure link. I wanted to separate the configure for each projects. Unfortunately, I did not find a way to put it in Project->settings tabs and hence ended up in the main project menu
This seems to be do-able using (abusing?) project custom fields for this feature (like how the Google Calendar plugin and the Tab plugin saves the links to the respective services/sites.
I'll fork your repo and take a look if I am able to help you a hand with it upcoming weekend.
Kind regards,
Mischa.
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by Mischa The Evil about 15 years ago
Mischa The Evil wrote:
chantra wrote:
Regarding the configure link. I wanted to separate the configure for each projects. Unfortunately, I did not find a way to put it in Project->settings tabs and hence ended up in the main project menu
This seems to be do-able using (abusing?) project custom fields for this feature (like how the Google Calendar plugin and the Tab plugin saves the links to the respective services/sites.
I'll fork your repo and take a look if I am able to help you a hand with it upcoming weekend.
Hmm... Seems I spoke too soon about that something should be do-able using project custom fields for the feature (see also issue !#2824 at https://projects.littlestreamsoftware.com). After some actual tests with the plugin and after a look at the code it seems to me that you've chosen the best place for the feature at the moment.
It maybe can be done using only a user custom field to enable/disable the notification along with the users email adress from the Redmine "account" on the my page (http://redmine.url/my/account). Though such an implementation would require some more changes than I initially thought... Thus I left it out of my current changes in the forked repo.
- http://redmine.url/newissuealerts?project_id=idofproject
- http://redmine.url/newissuealerts/new?project_id=idofproject
Also at this point it became a bit thougher then I initially thought it would be due to the precise function of the plugin along with the way the feature is currently implemented. Will see what I can do for this in near feature...
Now, what have I done than at this moment? I've just sent a pull-request including the following changes:- Improved documentation and licensing
- Renamed edit-button in the edit-view (including name-param and i18n)
- Added Dutch translations
- Cleaned init.rb
- Fixed layout of new view
I've also created a git tag (0.0.1) and prepped another for 0.0.2, which could be done after the completion of the updates on the French translations. YMMV and see if you agree... :)
Note: My pull-request includes a commit (ec7fe13) which duplicates (thus conflicts) most of the changes you've made already in commit 4eba394. If you'll apply my changes I'd recommend to revert your commit first. My commit includes some changes reflecting the buttons name-change in the i18n-strings also. See how you think about it... ;)
Kind regards,
Mischa.
RE: New plugin NewIssueAlerts v0.0.1 released
-
Added by Thuy Dang about 12 years ago
Hi,
I really like the idea of your plugin. So simple but useful!
But I have some issues during installation. I am using Redmine 1.4.3 and NewIssueAlerts 0.0.2.
I've followed the installation steps and tried many times but the problems still appeared. Please help me to fix it. Here are the things:
- I see no "Configure" button/link although I can see the plug in under Administration -> Plugins.
- The project ID is not realized on the plugin module tab. It only shows Listing of New Issue Alert for {{project}}.
- When I click on Create a New Issue Alert, I received Error 500. The log says it cannot understand f.error function in the erb files, which is in line 3. I tried commenting out that line and everything seemed to be OK until I cannot create a new issue (it was normal before I comment the line out). I look at the log again and this is what I receive:
ActionView::MissingTemplate (Missing template newissuealerts_mailer/newissuealert.text.erb in view path vendor/plugins/redmine_newissuealerts/app/views:app/views)
I think it's because of some incompatibility between different versions. Please tell me how to fix it. I would be very appreciated.
Regards,
Thuy.