summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
* Include roles of built-in "Non member users" and "Anonymous users" members ↵Marius Balteanu2022-03-271-0/+9
| | | | | | when user is not a member of the project. This fixes #34029. git-svn-id: https://svn.redmine.org/redmine/trunk@21502 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow to filter issues by its version status with shared versions (#36824, ↵Marius Balteanu2022-03-241-2/+4
| | | | | | | | | #30924). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21499 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Increase email address length limit from 60 to 254 (#36825).Go MAEDA2022-03-231-1/+1
| | | | | | | Contributed by Brice Beaumesnil. git-svn-id: https://svn.redmine.org/redmine/trunk@21497 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add tasks to prune registered users after a certain number of days (#30998).Go MAEDA2022-03-221-0/+4
| | | | | | | Patch by Yuichi HARADA and Marius BALTEANU. git-svn-id: https://svn.redmine.org/redmine/trunk@21490 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Skip validation of required custom fields when creating a project if user ↵Marius Balteanu2022-03-211-0/+11
| | | | | | | | | does not have permissions to see those custom fields (#36593). Patch by mathieu-mbru. git-svn-id: https://svn.redmine.org/redmine/trunk@21488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not fire a query to get user default query when user has no default query ↵Go MAEDA2022-03-211-1/+1
| | | | | | | | | set (#36503). Patch by Dmitry Makurin. git-svn-id: https://svn.redmine.org/redmine/trunk@21485 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r21480 (#36503).Go MAEDA2022-03-211-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21484 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not fire a query to get user default query when user has no default query ↵Marius Balteanu2022-03-201-1/+1
| | | | | | | | | | set (#36503). Patch by Dmitry Makurin. git-svn-id: http://svn.redmine.org/redmine/trunk@21480 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Automatically add the user to the watchers list after contributing to an ↵Marius Balteanu2022-03-192-1/+20
| | | | | | | | | issue (#4347). User can enable/disable this feature from My Account. Patch by Takenori TAKAKI and Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21469 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecate and rename rss_* methods to atom_* methods (#15118).Marius Balteanu2022-03-192-8/+20
| | | | | | | Patch by Mischa The Evil and Marius BĂLTEANU git-svn-id: http://svn.redmine.org/redmine/trunk@21467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace Member.find_or_new with ActiveRecord's find_or_initialize_by (#36730).Go MAEDA2022-03-142-12/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21456 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve performance of adding or removing members of a group (#36696).Go MAEDA2022-03-052-27/+24
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21447 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add habtm relation between roles and queries_roles (#36416).Marius Balteanu2022-02-281-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21444 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Destroy overridden time entry activities and rows from the habtm join table ↵Marius Balteanu2022-02-241-2/+2
| | | | | | | | | | @queries_roles@ on project deletion (#36416). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@21437 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow users to be mentioned using @ in issues and wiki pages (#13919):Marius Balteanu2022-02-234-7/+23
| | | | | | | | | | * the user must have add watchers permission on that object in order to mention other users * mentioned user will receive a notification email * only visible users who can view the object can be mentioned git-svn-id: http://svn.redmine.org/redmine/trunk@21435 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix time entries of sub-projects are not listed when activity is specified ↵Marius Balteanu2022-02-201-1/+1
| | | | | | | | | in filters (#36248). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21423 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix import with issue relations and invalid issues hangs without any error ↵Marius Balteanu2022-02-201-1/+5
| | | | | | message in UI (#35656). git-svn-id: http://svn.redmine.org/redmine/trunk@21422 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Return 404 if revision URL doesn't exist (#36561).Marius Balteanu2022-02-181-5/+1
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21413 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "required for administrators" option to Two-factor authentication ↵Marius Balteanu2022-02-012-1/+6
| | | | | | settings that behaves like optional, but will require all users with administration rights to set up two-factor authentication at their next login (#35439). git-svn-id: http://svn.redmine.org/redmine/trunk@21395 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve readability of @must_activate_twofa?@ function (#31920).Marius Balteanu2022-01-291-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21389 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reduce extra database queries in IssueQuery.default (#7360, #36503).Go MAEDA2022-01-231-3/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21387 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update session token only once per minute (#29041).Go MAEDA2022-01-221-1/+8
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@21376 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mailer.with_synched_deliveries doesn't correctly detect other async Queue ↵Go MAEDA2022-01-121-3/+1
| | | | | | | | | adapters (#36393). Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@21362 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix wrong variable name in Import#set_default_settings (#34718).Go MAEDA2022-01-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21354 e93f8b46-1217-0410-a6f0-8f06a7374b81
* RuboCop: fix Style/RedundantSort in app/models/import.rb (#34718).Go MAEDA2022-01-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21353 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Auto guess file encoding when importing CSV file (#34718).Go MAEDA2022-01-071-1/+9
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21352 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-0282-82/+82
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that encoding drop-down in the import settings defaults to US-ASCII ↵Go MAEDA2022-01-021-0/+1
| | | | | | | | | instead of general_csv_encoding in Thai (#36377). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21336 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that encoding drop-down in the import settings defaults to US-ASCII ↵Go MAEDA2022-01-021-0/+1
| | | | | | | | | instead of general_csv_encoding in Korean (#36377). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21335 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes for Performance/StringIdentifierArgument introduced in RuboCop ↵Go MAEDA2021-12-293-8/+8
| | | | | | Performance 1.13.0 (#35142). git-svn-id: http://svn.redmine.org/redmine/trunk@21330 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use File.exist? instead of deprecated File.exists? (#36358).Go MAEDA2021-12-271-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21327 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes for Performance/BigDecimalWithNumericArgument introduced in RuboCop ↵Go MAEDA2021-12-251-1/+1
| | | | | | Performance 1.13.0 (#35142). git-svn-id: http://svn.redmine.org/redmine/trunk@21326 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Saving time tracking activities without any change may turn a system ↵Go MAEDA2021-12-211-1/+1
| | | | | | | | | activity into a project activity (#36318). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21319 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Drop OpenID support (#35755).Go MAEDA2021-12-142-29/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21312 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Include an authentication method name in LDAP connection error messages ↵Go MAEDA2021-12-131-4/+4
| | | | | | | | | (#33345). Contributed by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21310 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Issue Summary: add statistics about issues without assignee, version or ↵Go MAEDA2021-12-121-1/+1
| | | | | | | | | category (#13099). Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@21309 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Psych 4: Psych::DisallowedClass exception when unserializing a setting value ↵Go MAEDA2021-11-251-1/+2
| | | | | | | | | (#36226). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21294 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Download all attachments in a journal (#35462).Go MAEDA2021-11-221-1/+1
| | | | | | | Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@21292 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Switch to zeitwerk autoloader (#29914, #32938).Marius Balteanu2021-11-175-15/+0
| | | | | | Patch by Takashi Kato. git-svn-id: http://svn.redmine.org/redmine/trunk@21287 e93f8b46-1217-0410-a6f0-8f06a7374b81
* You can configure default project queries in the following places (#35795):Marius Balteanu2021-11-154-1/+13
| | | | | | | * App-level: Administration > Projects > Default query (Projects list defaults section) * User-level: My account > Default project query git-svn-id: http://svn.redmine.org/redmine/trunk@21281 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow addition/removal of subtasks to show in parent's history (#6033).Go MAEDA2021-11-081-2/+28
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21273 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move @lib/diff.rb@ to @lib/redmine/string_array_diff@ and extract @Diffable@ ↵Marius Balteanu2021-10-271-1/+1
| | | | | | class to its own file (#29914, #32938). git-svn-id: http://svn.redmine.org/redmine/trunk@21262 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert changes made in r21251 due to a test fail (#29914, #32938).Marius Balteanu2021-10-211-0/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21254 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Split multiple classes and modules that existed in the same file (#29914, ↵Marius Balteanu2021-10-205-101/+155
| | | | | | | | #32938). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21252 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix rubocop "Style/CombinableLoops" offense in wiki_page.rb (#29914, #32938).Marius Balteanu2021-10-201-3/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21251 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disable rubocop Lint/IneffectiveAccessModifier for ↵Marius Balteanu2021-10-091-0/+2
| | | | | | @self.tokenized_like_conditions@ in @app/models/query.rb@ (#35764). git-svn-id: http://svn.redmine.org/redmine/trunk@21241 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Explicitly specify escape character using an ESCAPE on SQLite (#35073).Marius Balteanu2021-10-092-5/+5
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21240 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tokenize search parameter in order to allow multiple search terms in:Marius Balteanu2021-10-052-7/+20
| | | | | | | | | * the "contains" operator of text filters * in issue autocomplete Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix rubocop offense (#35073).Marius Balteanu2021-10-031-4/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21234 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace send with direct call because sanitize_sql_for_conditions is now ↵Marius Balteanu2021-10-031-3/+4
| | | | | | | | public (#35073). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21233 e93f8b46-1217-0410-a6f0-8f06a7374b81