two-pack / redmine_auto_assign_group Goto Github PK
View Code? Open in Web Editor NEWRedmine Auto Assign Group Plugin
License: GNU General Public License v2.0
Redmine Auto Assign Group Plugin
License: GNU General Public License v2.0
Fail to install bundler with Redmine 3.4.x on Actions.
https://github.com/two-pack/redmine_auto_assign_group/commit/6b75a3fcfacac590b30965517c3294d7987403bf/checks?check_suite_id=376204185
Broken test on travis-ci.
https://travis-ci.org/two-pack/redmine_auto_assign_group
This issue is caused after following.
http://www.redmine.org/projects/redmine/repository/revisions/18071
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.
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.
Test on Redmine 3.4.6, 3.3.8.
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 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.
A trunk repository of Redmine still don't fix following issue.
http://www.redmine.org/issues/28934
So Travis-CI build is always failed.
I decided to remove build target for Redmine trunk.
Support Redmine 5.0.0.
This plugin's CI uses Travis CI.
I decide to change it to GitHub Actions.
Changes Travis-CI conditions for the issue in redmine.org.
http://www.redmine.org/issues/32223
Now tests are run on trunk and released versions, but they have errors related above issue.
So I change the environment of tests released versions to stable branches.
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
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
.* FROMview_customizes
ORDER BYview_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
) FROMtokens
WHEREtokens
.user_id
= 1 ANDtokens
.value
= 'c0a07ee05a8289f118a8a9c7d603e221f3b24f5c' ANDtokens
.action
= 'session'
D, [2024-05-29T18:25:25.516717 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] (0.3ms) SELECT MAX(settings
.updated_on
) FROMsettings
D, [2024-05-29T18:25:25.517941 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] User Load (0.3ms) SELECTusers
.* FROMusers
WHEREusers
.type
IN ('User', 'AnonymousUser') ANDusers
.status
= 1 ANDusers
.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) SELECTusers
.* FROMusers
WHEREusers
.type
IN ('Group', 'GroupBuiltin', 'GroupAnonymous', 'GroupNonMember') ANDusers
.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:ininitialize' [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
Can you and redmine 3.2.x support?
Hello, @two-pack
I don't see Rules tab at Administration -> Groups -> My group :-( after plugin was installed.
Test on Redmine 4.0.3, 3.4.10
This plugin tests use poltergeist, but Redmine already use chrome headless.
And plotergeist is not maintained. So this plugin should use chrome headless for tests.
see: http://www.redmine.org/issues/32063
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! :)
Test on Redmine 4.0.0.
Test on Redmine 4.0.2, 3.4.9.
Changes version to 0.1.1.
Some users need to support rules with firstname and lastname.
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.