Commit Graph

37 Commits

Author SHA1 Message Date
GitLab Bot fb4d571aaf Add latest changes from gitlab-org/gitlab@master 2024-09-05 15:11:22 +00:00
GitLab Bot f58d159d4c Add latest changes from gitlab-org/gitlab@master 2024-08-26 21:12:56 +00:00
GitLab Bot 86a3b1b3ae Add latest changes from gitlab-org/gitlab@master 2023-12-12 15:13:14 +00:00
GitLab Bot d0713b8075 Add latest changes from gitlab-org/gitlab@master 2023-11-30 15:15:02 +00:00
GitLab Bot faa68a0289 Add latest changes from gitlab-org/gitlab@master 2023-08-30 15:11:17 +00:00
GitLab Bot 3ed578edf5 Add latest changes from gitlab-org/gitlab@master 2022-11-14 09:08:04 +00:00
GitLab Bot 16f41a5b04 Add latest changes from gitlab-org/gitlab@master 2021-11-03 21:10:35 +00:00
GitLab Bot be8b477154 Add latest changes from gitlab-org/gitlab@master 2021-06-29 03:07:32 +00:00
GitLab Bot a5605d87fb Add latest changes from gitlab-org/gitlab@master 2021-04-13 18:11:28 +00:00
GitLab Bot 1fdc1d34e8 Add latest changes from gitlab-org/gitlab@master 2021-02-19 12:11:06 +00:00
GitLab Bot 7985071975 Add latest changes from gitlab-org/gitlab@master 2020-09-21 12:09:34 +00:00
GitLab Bot 4203215d54 Add latest changes from gitlab-org/gitlab@master 2020-08-17 12:10:12 +00:00
GitLab Bot 3e71ce5cf0 Add latest changes from gitlab-org/gitlab@master 2020-07-28 03:09:35 +00:00
GitLab Bot 47579e24f3 Add latest changes from gitlab-org/gitlab@master 2020-05-27 21:08:05 +00:00
GitLab Bot e0fa0638a4 Add latest changes from gitlab-org/gitlab@master 2020-02-27 18:09:21 +00:00
GitLab Bot 184c2ced07 Add latest changes from gitlab-org/gitlab@master 2019-10-17 18:08:05 +00:00
Ash McKenzie 19ff9d9899
Replace rails_helper.rb with spec_helper.rb
rails_helper.rb's only logic was to require
spec_helper.rb.
2019-08-30 12:26:18 +10:00
Thong Kuah a2cfc150ce Add # frozen_string_literal to spec/models
Adds `# frozen_string_literal: true` to spec/models ruby files
2019-04-01 14:37:54 +13:00
Jasper Maes 56296f1eda Remove rails4 specific code 2018-12-16 10:48:41 +01:00
Shinya Maeda 45a5ed6d02 fix wording 2018-12-03 22:01:30 +09:00
Shinya Maeda bec4740f30 Fix the coding style 2018-12-03 21:47:26 +09:00
Shinya Maeda dd4a8df4cb Validate enum uniqueness 2018-12-03 20:10:13 +09:00
Mark Chao 8411d1cffc Add email_events to replace EMAIL_EVENTS because it needs to be dynamic,
allowing override for EE.
2018-08-14 14:59:29 +08:00
Felipe Artur ef12973723 Allow to toggle notifications for issues due soon 2018-07-12 12:03:29 -03:00
Lin Jen-Shin 4ee08b77bc Updates from `rubocop -a` 2018-07-09 21:13:08 +08:00
blackst0ne 0319da686d [Rails5] Fix spec/models/notification_setting_spec.rb
In Rails 5 assigning a value which is not explicitly `true` or `false` to a boolean column transforms it to `true`.
In Rails 4 it transforms the value to `false` with the deprecation warning:

```
DEPRECATION WARNING: You attempted to assign a value which is not explicitly `true` or `false` ("nil") to a boolean column. Currently this value casts to `false`. This will change to match Ruby's semantics, and will cast to `true` in Rails 5. If you would like to maintain the current behavior, you should explicitly handle the values you would like cast to `false`.
```

This commit fixes the spec that expects to receive Rails 4 behavior.
2018-05-01 18:30:37 +11:00
Sean McGivern 57a5544f88 Remove events column from notification settings
This was migrated to separate columns in 9.4, and now just needs to be removed
for real.
2017-07-31 11:18:55 +01:00
Keifer Furzland 7e113b6824 Remove superfluous type defs in specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:52 +02:00
Dmitriy Zaporozhets 3a0b9e06e1
Adjust tests to work with latest shoulda gem
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-07-24 19:26:15 +03:00
Dmitriy Zaporozhets cc577b8970
Update tests for new version of shoulda-matchers
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-07-24 15:33:14 +03:00
Sean McGivern e94c1028c1 Deserialise existing custom notification settings
Create a post-deployment migration to update all existing notification settings
with at least one custom level enabled to the new format. Also handle the same
conversion when updating settings, to catch any stragglers.
2017-06-15 15:15:13 +01:00
Sean McGivern ea25e0918b Exclude projects pending delete from notifications
If the Sidekiq job fails for some reason, a project can be 'stuck'
pending deletion. The project can't be viewed, so it shouldn't be
available through the notification settings association as this will
throw an exception when we try to show the link.
2016-07-07 20:49:17 +01:00
Felipe Artur 89a2c8730b Implement custom notification level options 2016-06-15 11:47:50 -03:00
Felipe Artur 8f6d43e0fe Remove notification level from user model 2016-06-10 10:58:13 -03:00
Dmitriy Zaporozhets 630c86a7a3 Add spec for user_id uniq in NotificationSetting model
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-30 10:44:20 +02:00
Dmitriy Zaporozhets 4ca73f56cb Small refactoring and cleanup of notification logic
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-30 10:44:20 +02:00
Dmitriy Zaporozhets 31b0e53015 Introduce NotificationSetting model
It will hold notification setting per group or per project. It will
allow get rid of notification level stored in Member model

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-30 10:44:20 +02:00