Feature #42880
closed
Make 'auto watch issues' default user settings configurable
Added by Jan Catrysse 5 months ago.
Updated 2 months ago.
Category:
Accounts / authentication
Description
- Exposed the new setting in the administration UI, so administrators can choose which events trigger auto watching by default
- Initialized user preferences to use the configured default auto-watch options when creating new users
- Added a new setting in config/settings.yml that lists the default automatic watch options for new users
- Updated unit tests to verify both the configurable default and the built-in fallback options
Files
- Target version set to Candidate for next major release
- Target version changed from Candidate for next major release to 6.1.0
Setting the target version to 6.1.0.
- Status changed from New to Resolved
- Assignee set to Marius BĂLTEANU
- Resolution set to Fixed
Here is the patch for #note-4.
diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb
index fd51b1d9f..582520402 100644
--- a/test/unit/user_preference_test.rb
+++ b/test/unit/user_preference_test.rb
@@ -67,10 +67,8 @@ class UserPreferenceTest < ActiveSupport::TestCase
end
def test_auto_watch_on_should_default_to_options
- with_settings :default_users_auto_watch_on => nil do
- preference = UserPreference.new
- assert_equal %w[issue_created issue_contributed_to], preference.auto_watch_on
- end
+ preference = UserPreference.new
+ assert_equal %w[issue_created issue_contributed_to], preference.auto_watch_on
end
def test_create
I've fixed for now the test by removing the invalid with_settings :default_users_auto_watch_on => nil, I'm going to review the cases later.
Katsuya HIDAKA wrote in #note-5:
Here is the patch for #note-4.
[...]
Thanks, I've already applied the same changes, please see my previous note.
- Status changed from Resolved to Closed
Also available in: Atom
PDF