summaryrefslogtreecommitdiffstats
path: root/app/models/changeset.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix RuboCop offense Rails/ActiveRecordCallbacksOrder (#39889).Go MAEDA2024-06-171-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22879 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use ApplicationRecord instead of ActiveRecord::Base (#38975).Marius Balteanu2024-01-231-1/+1
| | | | | | Patch by Minoru Maeda (@maeda-m). git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/ConstantRegexp (#38146).Go MAEDA2023-01-111-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22029 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ruby 3.2: `Changeset.normalize_comments` raises Encoding::CompatibilityError ↵Go MAEDA2022-12-261-1/+1
| | | | | | | | | if the string contains an invalid UTF-8 byte sequence (#38099, #38100). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22000 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/Pluck (#37248).Go MAEDA2022-10-281-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2021-04-011-2/+2
| | | | | | | | | sensitive comparison in Rails 6.1. (#29914, #32897). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20880 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove redundant 'return' from app/models/changeset.rbToshi MARUYAMA2020-12-191-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20676 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of app/models/changeset.rbToshi MARUYAMA2020-12-101-10/+23
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20611 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/changeset.rbToshi MARUYAMA2020-11-171-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20410 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at ActiveRecord scope lambda of ↵Toshi MARUYAMA2020-11-121-2/+2
| | | | | | app/models/changeset.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20340 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Evaluate acts_as_activity_provider's scope lazily (#33664).Go MAEDA2020-10-171-1/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20148 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of app/models/changeset.rbToshi MARUYAMA2020-09-261-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20084 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of app/models/changeset.rbToshi MARUYAMA2020-09-121-7/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20021 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to app/models/changeset.rbToshi MARUYAMA2020-07-211-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/changeset.rbToshi MARUYAMA2020-07-211-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19924 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix logging time via a commit message for project specific activities (#29838).Go MAEDA2020-02-111-7/+3
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@19512 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r19478 (#32897).Go MAEDA2020-01-301-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2020-01-281-2/+2
| | | | | | | | | sensitive comparison in Rails 6.1.' (#32897). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19478 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/ElseAlignment in app/models/changeset.rbToshi MARUYAMA2019-10-091-5/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18633 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: fix source code comment in r18607Toshi MARUYAMA2019-10-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18613 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Lint/UselessAccessModifier in app/models/changeset.rbToshi MARUYAMA2019-10-071-8/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18607 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for some files under app and lib directory ↵Go MAEDA2019-03-161-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-231-1/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure that the journal is not created if issue is saved.Jean-Philippe Lang2017-06-031-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16599 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* find_referenced_issue_by_id fails with RangeError for large numbers (#21071).Jean-Philippe Lang2015-10-291-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14758 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Keywords in commit messages: journal entries are created even if nothing was ↵Jean-Philippe Lang2015-04-121-2/+5
| | | | | | changed (#19538). git-svn-id: http://svn.redmine.org/redmine/trunk@14164 e93f8b46-1217-0410-a6f0-8f06a7374b81
* revert r13896 (#14534)Toshi MARUYAMA2015-03-201-11/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14136 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use attribute writers instead of before_create callback to normalize ↵Jean-Philippe Lang2015-01-181-3/+11
| | | | | | | | comments and committer (#14534). Unlike other adapters, SQLite raises Encoding::UndefinedConversionError before the callback that reencodes attributes is called. git-svn-id: http://svn.redmine.org/redmine/trunk@13896 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrites search engine to properly paginate results (#18631).Jean-Philippe Lang2014-12-121-2/+2
| | | | | | Instead of counting and retrieving results based on their timestamps, we now load all result ids then load the appropriate results by their ids. This also brings a 2x performance improvement as we search tokens in one of the 2 queries only. git-svn-id: http://svn.redmine.org/redmine/trunk@13739 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2014-10-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13508 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded "references" of joinsToshi MARUYAMA2014-10-241-1/+0
| | | | | | "references" is needed for includes, but not needed for joins. git-svn-id: http://svn.redmine.org/redmine/trunk@13501 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed an SQL error with SQLServer (#14534).Jean-Philippe Lang2014-10-221-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13490 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-3/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't link multiple changesets from the same commit multiple times (#17931).Jean-Philippe Lang2014-10-051-1/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13427 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed Changeset#text_tag for changeset with hash and repository identifier ↵Jean-Philippe Lang2014-01-121-5/+6
| | | | | | (#13544). git-svn-id: http://svn.redmine.org/redmine/trunk@12660 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated find_by_id at Changeset classToshi MARUYAMA2013-12-291-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12473 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code format cleanup app/models/changeset.rbToshi MARUYAMA2013-10-241-2/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12231 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to define commit keywords per tracker (#7590).Jean-Philippe Lang2013-10-131-5/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12208 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't update issues nor log time when importing old changesets (#4823).Jean-Philippe Lang2013-10-051-2/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12199 e93f8b46-1217-0410-a6f0-8f06a7374b81