summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Raise the maximum length of the last name to 255 characters (#37679).Go MAEDA2023-08-271-1/+2
| | | | | | | Patch by Anthony Mallet. git-svn-id: https://svn.redmine.org/redmine/trunk@22284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/MapMethodChain (#37247).Go MAEDA2023-08-231-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Retry in case of stale issue during Issue.update_versions (#38820).Go MAEDA2023-08-231-3/+12
| | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@22279 e93f8b46-1217-0410-a6f0-8f06a7374b81
* "has been" and "has never been" filter operators can be very slow (#38527, ↵Go MAEDA2023-06-301-4/+6
| | | | | | | | | #38788). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22271 e93f8b46-1217-0410-a6f0-8f06a7374b81
* <=> operator should return nil when invoked with an incomparable object ↵Go MAEDA2023-06-2913-13/+35
| | | | | | | | | (#38772). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22269 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantSelfAssignmentBranch (#36919).Go MAEDA2023-06-291-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22263 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix SQL error when passing invalid value to "Related to" filter (#38301).Go MAEDA2023-06-211-8/+12
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22256 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Lint/RedundantSafeNavigation (#36919).Go MAEDA2023-06-071-3/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22253 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add X-Redmine-Issue-Priority headers to issue notification mails (#2746).Go MAEDA2023-05-131-0/+2
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22244 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix PostgreSQL error caused by comparing text with integer values (#38527).Go MAEDA2023-05-111-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22242 e93f8b46-1217-0410-a6f0-8f06a7374b81
* New issues filter operators "has been", "has never been", and "changed from" ↵Go MAEDA2023-05-112-6/+34
| | | | | | | | | (#38527). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22240 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make the "Any searchable text" filter search only open issues when the ↵Go MAEDA2023-05-011-1/+4
| | | | | | status filter is set to "open" (#38402). git-svn-id: https://svn.redmine.org/redmine/trunk@22221 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "Any searchable text" filter doesn't support the project filter with the ↵Go MAEDA2023-04-181-1/+9
| | | | | | value "my projects" or "my bookmarks" (#38402). git-svn-id: https://svn.redmine.org/redmine/trunk@22203 e93f8b46-1217-0410-a6f0-8f06a7374b81
* OR search with multiple terms for "starts with" and "ends with" filter ↵Go MAEDA2023-04-171-15/+17
| | | | | | | | | operators (#38456). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22202 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change the notation of "contains any of" filter operator to "*~" (#38435).Go MAEDA2023-04-162-10/+10
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22197 e93f8b46-1217-0410-a6f0-8f06a7374b81