summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Replaces use of Digest::MD5 / Digest::SHA1 with ActiveSupport::Digest (#35217).Marius Balteanu2024-05-071-2/+2
| | | | | | Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22816 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds the date of the last activity to the list of available columns for ↵Marius Balteanu2024-05-032-2/+35
| | | | | | | | Projects (#23954). Patch by Frederico Camara (@fredsdc) and Marius BĂLTEANU (@marius.balteanu). git-svn-id: https://svn.redmine.org/redmine/trunk@22811 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes RuboCop offense Performance/Sum (#24457, #4682).Marius Balteanu2024-05-021-3/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22805 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Progress of version should be calculated the same way as parent tasks ↵Marius Balteanu2024-05-021-6/+11
| | | | | | (#24457, #4682). git-svn-id: https://svn.redmine.org/redmine/trunk@22803 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/SuperWithArgsParentheses (#37862).Go MAEDA2024-05-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22801 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds estimated remaining hours issue query column calculated based on ↵Marius Balteanu2024-05-011-1/+24
| | | | | | | | estimated time and done ratio (#37862). Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22800 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Watcher list to the list of available query columns for issues (#29894).Marius Balteanu2024-04-282-0/+12
| | | | | | Patch by Felix Schäfer (@felix). git-svn-id: https://svn.redmine.org/redmine/trunk@22793 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds an option to send email notification when an attachment is added (#40569).Marius Balteanu2024-04-281-1/+2
| | | | | | Patch by Mizuki ISHIKAWA (#ishikawa999). git-svn-id: https://svn.redmine.org/redmine/trunk@22790 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert r22764 (#33829).Go MAEDA2024-03-061-1/+0
| | | | | | | It breaks activities_controller_test.rb. git-svn-id: https://svn.redmine.org/redmine/trunk@22770 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix Atom feed for issues to correctly use the updated time for "updated" ↵Go MAEDA2024-03-041-0/+1
| | | | | | | | | element instead of the created time (#33829). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22764 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-2684-84/+84
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Principal.not_member_of scope does not accept ActiveRecord::Relation (#28243).Go MAEDA2024-02-081-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22697 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimize queries visibility check (#39852).Go MAEDA2024-02-011-10/+11
| | | | | | | Patch by Pavel Rosický (@ahorek). git-svn-id: https://svn.redmine.org/redmine/trunk@22669 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add support for IDN (internationalized domain name) email addresses in user ↵Go MAEDA2024-02-011-1/+11
| | | | | | | | | accounts (#29208). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22667 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable "any" and "none" operators for status filter in User listing (#40099).Marius Balteanu2024-01-251-1/+1
| | | | | | Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22624 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Layout/EmptyLineAfterMagicComment (#38975).Go MAEDA2024-01-241-0/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22620 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use ApplicationRecord instead of ActiveRecord::Base (#38975).Marius Balteanu2024-01-2344-43/+75
| | | | | | Patch by Minoru Maeda (@maeda-m). git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r22438 (#35189).Marius Balteanu2024-01-231-15/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22616 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace regular expression matches with String#start_with? / end_with? (#40010).Go MAEDA2024-01-111-1/+1
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22605 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace String#sub with delete_prefix / delete_suffix (#40008).Go MAEDA2024-01-082-3/+3
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22596 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimize Project#notified_users to improve issue create/update speed (#23328).Go MAEDA2024-01-041-7/+2
| | | | | | | Patch by Holger Just (@hjust). git-svn-id: https://svn.redmine.org/redmine/trunk@22590 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "any" operator for text filters to exclude empty text values (#39991).Go MAEDA2024-01-021-1/+1
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22583 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cache the result of `Journal#attachments` (#39847).Go MAEDA2023-12-311-2/+4
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22581 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Extend "contains" operator in "Parent task" filter to support multiple issue ↵Go MAEDA2023-12-291-3/+12
| | | | | | | | | IDs (#39805). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22577 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimize query models by replacing `map` with `pluck` (#39837).Go MAEDA2023-12-295-21/+16
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22575 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimize `Issue#relations` method to improve performance by fetching both ↵Go MAEDA2023-12-281-1/+4
| | | | | | | | | `relations_from` and `relations_to` using a single database query (#39840). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22572 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimize users visibility check (#39857).Go MAEDA2023-12-271-2/+2
| | | | | | | Patch by Pavel Rosický. git-svn-id: https://svn.redmine.org/redmine/trunk@22567 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/StringIdentifierArgument (#39888).Go MAEDA2023-12-209-10/+10
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/HashEachMethods (#39887).Go MAEDA2023-12-205-5/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22532 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Lint/SymbolConversion (#39887).Go MAEDA2023-12-203-6/+6
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22531 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/SuperWithArgsParentheses (#39887).Go MAEDA2023-12-207-8/+8
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22530 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates Rails to 7.1.2 (#36320).Marius Balteanu2023-11-273-10/+10
| | | | | | Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace request_store with ActiveSupport::CurrentAttributes (#39110).Marius Balteanu2023-11-212-2/+14
| | | | | | Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22473 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves create parent issue journal to after_commit hook to work around stale ↵Marius Balteanu2023-11-181-10/+20
| | | | | | | | object errors on concurrency (#39437). Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@22459 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove deprecated methods in Repository and AbstractAdapter (#39558).Marius Balteanu2023-11-181-5/+0
| | | | | | Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22457 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Auto-detection of field wrapper type when importing CSV file (#39511).Go MAEDA2023-11-161-1/+2
| | | | | | | Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22440 e93f8b46-1217-0410-a6f0-8f06a7374b81
* New email notification option "For any event on my bookmarked projects" ↵Go MAEDA2023-11-161-2/+15
| | | | | | | | | (#35189). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22438 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix an expression of non-boolean type specified in a context where a ↵Marius Balteanu2023-11-111-7/+8
| | | | | | | | condition is expected when MSSQL is used (#39443). Patch by Pavel Rosický. git-svn-id: https://svn.redmine.org/redmine/trunk@22417 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove @rss_*@ deprecated methods (#36806).Marius Balteanu2023-11-061-12/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reinitialize an empty Wiki page after after project wiki is deleted (#34634).Marius Balteanu2023-10-232-1/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22370 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert r22368.Marius Balteanu2023-10-232-5/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22369 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Traditional Chinese translation update (#39221).Marius Balteanu2023-10-232-1/+5
| | | | | | Patch by ChunChang (Nagaharu) Lo. git-svn-id: https://svn.redmine.org/redmine/trunk@22368 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offenses due to r22343: Style/RedundantRegexpEscape, ↵Go MAEDA2023-10-161-2/+1
| | | | | | Layout/EmptyLinesAroundMethodBody, and Style/HashSyntax (#39181). git-svn-id: https://svn.redmine.org/redmine/trunk@22346 e93f8b46-1217-0410-a6f0-8f06a7374b81
* API compatibility to legacy status and name query params (#39181, #37674)Go MAEDA2023-10-151-0/+28
| | | | | | | | | | - adds 'name' filter that mimics the old behavior of matching on email, login, first- or lastname - maps the 'status' url parameter to the status_id filter, and the 'name' url parameter to the new name filter Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@22343 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleanup debug code in app/models/mail_handler.rb (#39184).Go MAEDA2023-10-121-1/+1
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22339 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimize IssueQuery#sql_for_assigned_to_role_field for PostgreSQL (#38319).Go MAEDA2023-10-091-3/+3
| | | | | | | Contributed by Vincent Robert. git-svn-id: https://svn.redmine.org/redmine/trunk@22334 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor SQL construction in IssueQuery#sql_for_assigned_to_role_field for ↵Go MAEDA2023-10-091-4/+10
| | | | | | better readability (#38319). git-svn-id: https://svn.redmine.org/redmine/trunk@22333 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace custom EMAIL_REGEXP with URI::MailTo::EMAIL_REGEXP for more accurate ↵Go MAEDA2023-10-072-4/+2
| | | | | | | | | email validation (#36969). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22332 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Avoid exception during validation if the spent_on date of a time entry was ↵Go MAEDA2023-09-201-1/+1
| | | | | | | | | removed (#39079). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22311 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add description for issue statuses and display them in issue new/edit form ↵Go MAEDA2023-08-311-0/+2
| | | | | | | | | (#2568). Patch by Takenori TAKAKI. git-svn-id: https://svn.redmine.org/redmine/trunk@22288 e93f8b46-1217-0410-a6f0-8f06a7374b81