stpl / redmine_mention_plugin Goto Github PK
View Code? Open in Web Editor NEWAdd user to the watchers list of an issue/wiki after mentioning him/her in the note.
Add user to the watchers list of an issue/wiki after mentioning him/her in the note.
Typing "@foo" when editing the issue description field (either when creating a new issue or when editing an existing issue) does pop up a user-selector, and selecting a user from the list does insert "[~foo] " into the description, but:
It seems like those features should work when the "[~foo]" is written into the description field, or the user-selection popup should not be shown when editing the description.
I'm using Bitnami Redmine stack based on Redmine 3.3.0 (https://bitnami.com/stack/redmine-plus-agile).
Here is the apache log:
[ 2016-09-19 11:31:53.3372 12933/7f1ad091f700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 04785e47. Please see earlier logs for details abils about the error.
App 13248 stdout:
App 13248 stdout: An error occurred while loading the routes definition of redmine-mention plugin (/opt/bitnami/apps/redmineplusagile/htdocs/plugins/redmine-mention/config/routes.rb): You should not use the 'match' method in your router without specifying an HTTP method.
App 13248 stdout: If you want to expose your action to both GET and POST, add 'via: [:get, :post]' option.
App 13248 stdout: If you want to expose your action to GET, use 'get' in the router:
App 13248 stdout: Instead of: match "controller#action"
App 13248 stdout: Do: get "controller#action".
App 13248 stdout:
[ 2016-09-19 11:32:17.8811 12933/7f1ad37fb700 App/Implementation.cpp:287 ]: Could not spawn process for application /opt/bitnami/apps/redmineplusagile/htdocs/: An error occured while starting up the preloader.
Error ID: 95ef5ab7
Error details saved to: /tmp/passenger-error.ptkKD6
Message from application: exit (SystemExit)
/opt/bitnami/apps/redmineplusagile/htdocs/config/routes.rb:376:in 'exit'
/opt/bitnami/apps/redmineplusagile/htdocs/config/routes.rb:376:in 'rescue in block (2 levels) in <top (required)>'
/opt/bitnami/apps/redmineplusagile/htdocs/config/routes.rb:372:in 'block (2 levels) in <top (required)>'
/opt/bitnami/apps/redmineplusagile/htdocs/config/routes.rb:369:in 'glob'
/opt/bitnami/apps/redmineplusagile/htdocs/config/routes.rb:369:in 'block in <top (required)>'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:432:in 'instance_exec'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:432:in 'eval_block'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:410:in 'draw'
/opt/bitnami/apps/redmineplusagile/htdocs/config/routes.rb:18:in '<top (required)>'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in 'load'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in 'block in load'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in 'load_dependency'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in 'load'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application/routes_reloader.rb:40:in 'block in load_paths'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application/routes_reloader.rb:40:in 'each'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application/routes_reloader.rb:40:in 'load_paths'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application/routes_reloader.rb:16:in 'reload!'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application/routes_reloader.rb:26:in 'block in updater'
/opt/bitnami/apps/redmineplusagile/htdocs/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/file_update_checker.rb:75:in 'call'
Mention plugin installed successfully and is listed in plugins. Auto does not list users suggest and does not add user to watch list send email when enter @
Environment:
Redmine version 2.5.0.stable
Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux]
Rails version 3.2.17
Currently, when you write "@UserN..." suggestion list shows all users even those who has no right to access specific task nor its project.
We have very strict rules that restrict direct communications vai emails between specific departments which, respectively have separate projects in our Redmine.
We would love to use this plugin - we have tested it and everything worked like a charm, except this issue.
The current TAG_SCAN_REGEX does not cover all username cases
Here is the current validation from redmine-2.5.2/app/models/users.rb
validates_format_of :login, :with => /\A[a-z0-9_\-@\.]*\z/i
So a username like foo.foo
would not be parsed
After bundle exec rake redmine:plugins NAME=redmine_mention_plugin RAILS_ENV=production
I get an error message:
An error occurred while loading the routes definition of redmine_mention_plugin plugin (/plugins/redmine_mention_plugin/config/routes.rb): You should not use the match
method in your router without specifying an HTTP method.
If you want to expose your action to both GET and POST, add via: [:get, :post]
option.
If you want to expose your action to GET, use get
in the router:
Instead of: match "controller#action"
Do: get "controller#action".
With the above mentioned modification, I manage to have a working plugin.
Environment:
Redmine version 3.0.7.stable
Ruby version 1.9.3-p551 (2014-11-13) [x86_64-linux]
Rails version 4.2.3
Environment production
Database adapter Mysql2
SCM:
Git 2.1.4
Filesystem
Redmine plugins:
progressive_projects_list 2.0.1
redmine_checklists 3.1.3
redmine_lightbox2 0.2.4
redmine_slack 0.1
time_logger 0.5.3
On redmine 4.0.x, the plug-in seems to be functional except for the autocomplete. Are there plans to support redmine 4.0.x?
In e-mail notices generated by issue updates, the "[~foo]" forms are rendered literally rather than as hyperlinked proper-name expansions like they should be.
The same is true of the preview area when editing issues to add notes.
Hi, I installed under redmine 2.3.2, there is such error
rake aborted!
undefined method `descendants' for Mention:Module
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
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.