GithubHelp home page GithubHelp logo

two-pack / redmine_auto_assign_group Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 1.0 60 KB

Redmine Auto Assign Group Plugin

License: GNU General Public License v2.0

Ruby 93.17% HTML 6.69% CSS 0.14%
redmine-plugin

redmine_auto_assign_group's People

Contributors

tgoeg avatar two-pack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bshade7

redmine_auto_assign_group's Issues

4.1+ support... how to ?

Hey

Apology, I'm new at it all...

Does it support 4.1+ ver?

Also what do I do with this >

$ bundle install --without test
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'test'`, and stop using this flag
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated ../../opt/bitnami/redmine/Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/redmine/Gemfile freeze
by running `bundle config unset deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* activerecord-compatible_legacy_migration
* retryable
$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated ../../opt/bitnami/redmine/Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/redmine/Gemfile freeze
by running `bundle config unset deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* activerecord-compatible_legacy_migration
* retryable

Broken test on travis-ci

Broken test on travis-ci.
https://travis-ci.org/two-pack/redmine_auto_assign_group/jobs/465549831

+bundle install --path vendor/bundle
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    rails (= 4.2.11) was resolved to 4.2.11, which depends on
      bundler (< 2.0, >= 1.3.0)
  Current Bundler version:
    bundler (2.0.1)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails
(= 4.2.11)', in any of the sources.

ruby v2.3.x not found on GitHub Action CI

ruby v2.3.x not found on GitHub Action CI. See the log.

Set up Ruby
##[error]Node run failed with exit code 1
Run actions/setup-ruby@v1
  with:
    ruby-version: v2.3.x
##[error]Version v2.3.x not found
##[error]Node run failed with exit code 1

Failed all tests with Capybara error log.

Failed all tests with Capybara error log on Travis-CI.
Error log is like following:

  1) Error:
RedmineAutoAssignGroup::UsersTest#test_auto_assign_group_when_user_is_added:
LoadError: Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.

Its caused after using Capybara 3.0.3.

Successfully installed , but no "rule" tab.

I have installed it successfully , no errors , and restarted redmine , but there is no "rule" tab.

$ cd plugins
$ git clone https://github.com/two-pack/redmine_auto_assign_group.git redmine_auto_assign_group
$ cd ..
$ bundle install --without test
$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
Environment:
  Redmine version                4.2.9.stable
  Ruby version                   2.7.7-p221 (2022-11-24) [x86_64-linux]
  Rails version                  5.2.8.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.14.1
  Mercurial                      5.6.1
  Bazaar                         3.1.0
  Git                            2.30.2
  Filesystem                     
  GitMirror                      2.30.2
Redmine plugins:
  assign_current_date            0.3.0
  computed_custom_field          1.0.7
  due_date_reminder              0.1
  onlyoffice_redmine             2.1.0
  projects_tree_view             0.0.9_
  redmine_agile                  1.6.5
  redmine_auto_assign_group      0.1.2
  redmine_custom_workflows       2.0.8
  redmine_git_mirror             0.8.0
  redmine_inline_edit_issues     2.0.1
  redmine_issue_templates        1.1.2
  redmine_issues_panel           0.0.7
  redmine_issues_summary_graph   0.0.10
  redmine_issues_tree            0.0.15
  redmine_monitoring_controlling 0.1.1
  redmine_project_attachments    0.0.1_1
  redmine_searchable_selectbox   0.1.10
  redmine_status_history         1.0.1
  redmine_theme_changer          0.6.0
  redmine_work_wechat            0.3.0
  redmine_xls_export             0.2.1.t11
  redmine_xlsx_format_issue_exporter 0.2.0

image

error 500 on Redmine 5.1.2

Hello,

I would like to report an issue where error 500 is returned when new rule link is selected from Role page.

please find the debug log :

D, [2024-05-29T18:25:17.265012 #3600568] DEBUG -- : [84e93142-e32c-4c21-b119-9a75898ddb95] CACHE ViewCustomize Load (0.0ms) SELECT view_customizes.* FROM view_customizes ORDER BY view_customizes.id ASC
I, [2024-05-29T18:25:17.265177 #3600568] INFO -- : [84e93142-e32c-4c21-b119-9a75898ddb95] Rendered layouts/base.html.erb (Duration: 27.2ms | Allocations: 11348)
I, [2024-05-29T18:25:17.265246 #3600568] INFO -- : [84e93142-e32c-4c21-b119-9a75898ddb95] Rendered layout layouts/admin.html.erb (Duration: 36.6ms | Allocations: 20493)
I, [2024-05-29T18:25:17.265465 #3600568] INFO -- : [84e93142-e32c-4c21-b119-9a75898ddb95] Completed 200 OK in 43ms (Views: 32.2ms | ActiveRecord: 6.1ms | Allocations: 22142)
I, [2024-05-29T18:25:25.512940 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Started GET "/groups/374/assign_rules/new" for 10.8.9.174 at 2024-05-29 18:25:25 +0700
I, [2024-05-29T18:25:25.513805 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Processing by AssignRulesController#new as HTML
I, [2024-05-29T18:25:25.513874 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Parameters: {"group_id"=>"374"}
D, [2024-05-29T18:25:25.515906 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] (0.4ms) SELECT MAX(tokens.updated_on) FROM tokens WHERE tokens.user_id = 1 AND tokens.value = 'c0a07ee05a8289f118a8a9c7d603e221f3b24f5c' AND tokens.action = 'session'
D, [2024-05-29T18:25:25.516717 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] (0.3ms) SELECT MAX(settings.updated_on) FROM settings
D, [2024-05-29T18:25:25.517941 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] User Load (0.3ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND users.status = 1 AND users.id = 1 LIMIT 1
I, [2024-05-29T18:25:25.518225 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Current user: admin (id=1)
D, [2024-05-29T18:25:25.519002 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Group Load (0.2ms) SELECT users.* FROM users WHERE users.type IN ('Group', 'GroupBuiltin', 'GroupAnonymous', 'GroupNonMember') AND users.id = 374 LIMIT 1
I, [2024-05-29T18:25:25.519467 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.2ms | Allocations: 1254)
F, [2024-05-29T18:25:25.519866 #3600568] FATAL -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4]
[4d33f48d-8e7d-4315-900c-a590177a4ee4] ArgumentError (wrong number of arguments (given 2, expected 0..1)):
[4d33f48d-8e7d-4315-900c-a590177a4ee4]
[4d33f48d-8e7d-4315-900c-a590177a4ee4] plugins/redmine_auto_assign_group/app/models/assign_rule.rb:23:in initialize' [4d33f48d-8e7d-4315-900c-a590177a4ee4] plugins/redmine_auto_assign_group/app/controllers/assign_rules_controller.rb:10:in new'
[4d33f48d-8e7d-4315-900c-a590177a4ee4] lib/redmine/sudo_mode.rb:61:in `sudo_mode'

This is my setup :

Environment:
Redmine version 5.1.2.stable
Ruby version 3.0.2-p107 (2021-07-07) [x86_64-linux-gnu]
Rails version 6.1.7.7
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Purplemine2-2.16.2 (includes JavaScript)
SCM:
Git 2.34.1
Filesystem
Redmine plugins:
computed_custom_field 1.0.7
flux_tags 1.0.3
inplace_issue_editor 1.1.0
periodictask 4.2.1
redmine_advanced_checklists 2.1.3
redmine_auto_assign_group 0.1.2
redmine_base_deface 5.1.1
redmine_better_overview 5.1.0
redmine_closed_date 0.1.1
redmine_contacts 4.4.0
redmine_custom_workflows 2.1.0
redmine_customize_core_fields 1.0.0
redmine_dashboard 2.15.0
redmine_dmsf 3.1.3
redmine_home_page_redirector 2.0.0
redmine_impersonate 2.0.0
redmine_indicator 0.2.16
redmine_issue_dynamic_edit 0.9.2
redmine_issue_todo_lists2 2.1.8
redmine_issues_tree 0.0.15
redmine_ldap_sync 2.3.1
redmine_logs 0.3.0
redmine_mail_recipient 0.3.0
redmine_mail_template 0.3.0
redmine_reply_to_author_email 0.0.1
redmine_reveal 0.4.1
redmine_tint_issues 1.3.2
redmine_webhook_plugin 1.0.0
redmine_wiki_fix_toc 0.1.0
redmine_xapian 3.0.5
view_customize 3.5.1
watchers 0.0.2

Regex rule for member name

We use some predefined member name rules for different projects and roles. For example, we have some customers with a role "software-tester" and they have to use their customer-id for login. Dependent on some parts of that id, we can identify the role and so we would be able to assign such customers to a specific group. But only, if there is a possibility to define a rule for the member name. ;-)

Would be very nice to have such a feature! :)

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.