83 Commits

Author SHA1 Message Date
Alexander Meindl
1730fb05fd Move asynchron delivery job to default Rails directory 2021-08-24 18:01:48 +02:00
Alexander Meindl
7326c81c5f Merge pull request #91 from Contargo/asynchronous-job
Use asynchronous ActiveJob for message delivery
2021-08-24 17:47:56 +02:00
Florian Krupicka
05d4b5bc8d Fix: missed a small param copied from the original network call 2021-08-24 17:13:55 +02:00
Florian Krupicka
f4fbf45895 Use asynchronous ActiveJob for message delivery
Calling out to a 3rd party web service like Slack or Mattermost blocks
the request for the current Redmine user. Depending on network latency,
this can result in very slow response on any action that is notified via
`redmine_messenger`.

Instead the backend call should make use of Rails builtin asynchronous
background job queuing (the same as used for Redmine mails), returning
to the user earlier.

We don't specify the actual queue backend for this job, so any Redmine
installation can select an appropiate queue backend by themselves or
simply use the default builtin backends.
2021-08-24 16:58:40 +02:00
Alexander Meindl
4fa7ed5d71 Remove unused css class 2021-07-15 15:54:04 +02:00
Alexander Meindl
7d39ba99ec use project relation for messenger_setting 2021-07-09 17:09:20 +02:00
Alexander Meindl
dadaa32a57 frozen_string_literal, Coding standards fixed and ruby 2.7 warnings - redmine 4.1 and ruby 2.5 is required 2021-04-18 15:58:57 +02:00
Alexander Meindl
67a8faa284 fix problem with frozen string #85 2021-04-06 10:26:55 +02:00
Alexander Meindl
9823c578a5 Switching from travis to github actions for testing 2020-12-01 07:49:38 +01:00
Iku Iwasa
f7d25d8a28 Resolve copied_from issue ID to show issue URL 2020-12-01 08:31:07 +09:00
Iku Iwasa
5e7b1813c0 Correct to use label_copied_from translation key 2020-11-30 23:47:31 +09:00
Alexander Meindl
16f106712e Merge pull request #81 from iquiw/comment-field
Move update comment to attachment field
2020-11-24 15:31:30 +01:00
Iku Iwasa
e7f6de9af2 Support Group assignee as well as User 2020-11-23 11:15:50 +09:00
Iku Iwasa
e5d5a94119 Move update comment to attachment field
so that it is not hidden when issue description is long.
2020-11-23 10:41:17 +09:00
Alexander Meindl
24095bf9db drop validate_url gem 2020-11-14 18:43:09 +01:00
Iku Iwasa
45531d783a Fix RecordNotFound error when removing parent issue ID
Using find_by instead of find.
2020-10-25 18:07:14 +09:00
Iku Iwasa
e7e6539500 Fix RecordNotFound error when deleting attachments
Using find_by instead of find.
2020-10-25 18:07:14 +09:00
Alexander Meindl
cb23763b63 Fix coding standards 2020-08-30 17:27:05 +02:00
Alexander Meindl
2a59483fca Show author name, if author changes of a issue - refactored 2020-08-25 09:35:39 +02:00
Alexander Meindl
1b6c00b4c0 Show author name, if author changes of a issue 2020-08-25 09:32:51 +02:00
Igor Pronin
f4382f7d86 Added feature to send messages directly to users to be notified
Added setting to enable this feature.
Tested on RocketChatIntegration
2020-08-20 16:33:08 +03:00
Alexander Meindl
18b0ea1adf Fixing coding standards 2020-08-09 08:37:45 +02:00
Alexander Meindl
c58c93005d tag helper instead of content_tag 2020-06-09 14:48:05 +02:00
Alexander Meindl
e0e35e6edf Make rubocop happy, again 2020-06-09 09:23:06 +02:00
Alexander Meindl
8501a98486 remove debug infos 2020-04-28 11:45:47 +02:00
Alexander Meindl
b1d7309d97 Fix problem with & in project name 2020-04-28 11:41:21 +02:00
Alexander Meindl
03fab2c28e #61 fixed bug with description for issue update 2020-04-17 11:13:04 +02:00
Jethro Yu
f13d5c1e55 Fix formatting error of estimated_hours
To fix following error on Redmine 4.1.1
```
NoMethodError (undefined method `floor' for "1.0":String):

lib/redmine/i18n.rb:90:in `format_hours'
plugins/redmine_messenger/app/models/messenger.rb:209:in `detail_to_field'
```

Use redmine's `to_hours` convention on estimated_hours
```
lib/redmine/core_ext/string/conversions.rb
29:        def to_hours

app/models/issue.rb
454:    write_attribute :estimated_hours, (h.is_a?(String) ? (h.to_hours || h) : h)
```
2020-04-15 12:42:35 +08:00
Alexander Meindl
d2ad1fb020 Show attachments in new issues and show flag if private comment 2020-03-03 15:16:02 +01:00
Alexander Meindl
48c4b99882 Always send attachments with payload, to get improved output without attachments with Rocket.Chat 2020-02-23 10:45:31 +01:00
Alexander Meindl
e4eee286ba Fix outgoing hook settings for non-admins within projects 2020-02-21 10:30:47 +01:00
Alexander Meindl
49e847794f Show db entries and password names, if available 2020-01-25 11:59:13 +01:00
Alexander Meindl
442c3fb320 #53 add legend to fieldset. Remove comments in fr.yml to have same line amount (for easier administration of strings) 2020-01-25 11:08:38 +01:00
Alexander Meindl
de5cce957c #50 use formated result for estimated_hours 2020-01-17 10:26:27 +01:00
Alexander Meindl
164bc700e1 Fix bug with assigned_to field twice and fallback values, if objects do not exist anymore 2020-01-07 13:22:53 +01:00
Alexander Meindl
b2e7cca639 #38 fix for Redmine 4.1 for frozen string 2020-01-07 08:33:58 +01:00
Alexander Meindl
2563b8007c Fix another problem with notes 2019-12-31 13:43:06 +01:00
Alexander Meindl
3a9101eda9 Fix password label 2019-12-27 07:59:43 +01:00
Alexander Meindl
8b1fad1745 Fix template for password fieldset 2019-12-27 07:57:33 +01:00
Alexander Meindl
d027d77141 Add administrator link to project settings 2019-12-27 06:23:47 +01:00
Alexander Meindl
7cba13f8cd Fix custom fields 2019-12-26 18:25:19 +01:00
Alexander Meindl
9be229f1c4 Add rubocop to travis 2019-12-26 17:42:36 +01:00
Alexander Meindl
49b282e638 #38 fix problem with escaping 2019-12-26 17:24:28 +01:00
Alexander Meindl
bf8d2d3d4d Ruby 2.3.x or newer is required. Bump to 1.0.5 2019-05-15 20:06:35 +02:00
Alexander Meindl
c670b5606d Fix channel settings 2019-04-11 14:55:28 +02:00
Alexander Meindl
56fa966d92 Fix test for new fr translation and some cleanups 2019-04-11 10:32:42 +02:00
Alexander Meindl
da9102c741 Fix settings for rails 5 2018-09-26 17:20:43 +02:00
Alexander Meindl
58b4a890ca Fix new coding standards 2018-09-10 17:45:53 +02:00
Alexander Meindl
4f5868cc57 Use project helper instead of helper patch 2018-07-27 19:49:36 +02:00
Alexander Meindl
b2780bf618 drop SafeAttributes 2018-07-16 15:59:01 +02:00