GithubHelp home page GithubHelp logo

stpl / redmine_mention_plugin Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 9.0 62 KB

Add user to the watchers list of an issue/wiki after mentioning him/her in the note.

JavaScript 60.92% CSS 16.30% Ruby 22.79%

redmine_mention_plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redmine_mention_plugin's Issues

Doesn't render in issue description (only works in notes)

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:

  • the "[~foo]" is not rendered into a hyperlinked proper name when the description is rendered; it's just shown as the un-parsed "[~foo]".
  • the addition of "[~foo]" in the issue description field doesn't cause the user to be added to the watcher list

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.

Error after install plugin on redmine 3.3.0

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'

Plugin not working Redmine 2.5.0

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

Suggestion list shows all users across all projects

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.

Error at installing

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

Redmine 4.0.x compatability

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?

redmine 2.3.2 cannot install

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)

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.