summaryrefslogtreecommitdiffstats
path: root/app/models/version.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* <=> operator should return nil when invoked with an incomparable object ↵Go MAEDA2023-06-291-0/+2
| | | | | | | | | (#38772). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22269 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
* 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
* Use sanitize_sql_like in like scopes (#35073).Marius Balteanu2021-10-031-1/+1
| | | | | | Patch Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21231 e93f8b46-1217-0410-a6f0-8f06a7374b81
* DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2021-04-011-1/+1
| | | | | | | | | 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
* use "do end" instead of {} at ActiveRecord scope lambda of app/models/version.rbToshi MARUYAMA2020-11-121-6/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20343 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to app/models/version.rbToshi MARUYAMA2020-11-051-2/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20264 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/version.rbToshi MARUYAMA2020-10-031-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20113 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
* Reverts r19478 (#32897).Go MAEDA2020-01-301-1/+1
| | | | 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-1/+1
| | | | | | | | | 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
* cleanup: rubocop: fix Layout/AlignArguments in app/models/version.rbToshi MARUYAMA2019-11-061-9/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18921 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/EmptyLineBetweenDefs in app/models/version.rbToshi MARUYAMA2019-10-151-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18675 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reject version custom field values not visible for the user (#31954, #23997).Go MAEDA2019-08-271-0/+28
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18402 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Per role visibility settings for version custom fields (#23997).Go MAEDA2019-08-241-0/+7
| | | | | | | Patch by Jens Krämer and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18386 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
* Fix that deleting a version silently deletes its attachments (#31087).Go MAEDA2019-03-261-1/+1
| | | | | | | Patch by Karel Pičman and Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@18008 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
* Moved Version#fixed_issues extension to a module (#30115).Jean-Philippe Lang2018-12-161-82/+84
| | | | | | Patch by Jérôme BATAILLE. git-svn-id: http://svn.redmine.org/redmine/trunk@17754 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Dangerous query method deprecation warnings (#23630).Jean-Philippe Lang2018-06-231-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17411 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter for version name should be case-insensitive (#27122).Go MAEDA2018-04-281-1/+1
| | | | | | | Patch by Holger Just and Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17316 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Performance opt - cache AR Proxy for Version#fixed_issues.visible (#27676).Jean-Philippe Lang2017-11-291-0/+5
| | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@17052 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves issue calculations into the fixed_issues relation (#27676).Jean-Philippe Lang2017-11-291-69/+97
| | | | | | | | | This way, we can reuse them on refined relations, e.g. @version.fixed_issues.closed_count@ vs. @version.fixed_issues.visible.closed_count@ Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@17050 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-231-4/+3
| | | | 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
* remove trailing white space from app/models/version.rbToshi MARUYAMA2017-01-081-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16160 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add length validations for string fields (#24283).Jean-Philippe Lang2016-11-191-1/+1
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@15989 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add option to set a new version as default directly from New Version page ↵Jean-Philippe Lang2016-10-231-0/+26
| | | | | | (#24011). git-svn-id: http://svn.redmine.org/redmine/trunk@15922 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable filtering versions on Project -> Settings -> Versions (#22608).Jean-Philippe Lang2016-08-301-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15759 e93f8b46-1217-0410-a6f0-8f06a7374b81
* 2 spaces instead of a tab.Jean-Philippe Lang2016-07-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15602 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Group versions by status in issue filters (#10412).Jean-Philippe Lang2016-07-021-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15601 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace Date.today with User.current.today (#22320).Jean-Philippe Lang2016-05-071-3/+3
| | | | | | | | | | | | | | Depending on the offset between a user's configured timezone and the server timezone, Date.today may be more or less often wrong from the user's perspective, leading to things like issues marked as overdue too early or too late, or yesterday / tomorrow being displayed / selected where 'today' is intended. A test case illustrating the problem with Issue#overdue? is included Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@15379 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Additional CSS class for version status (#21434).Jean-Philippe Lang2016-03-201-0/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15270 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
* Closed versions should be marked as completed (#21433).Jean-Philippe Lang2016-01-091-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15019 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Default target version for new issues (#1828).Jean-Philippe Lang2015-11-011-0/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14786 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disallow users to delete a version referenced by a custom field (#20159).Jean-Philippe Lang2015-06-271-0/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14376 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't store total estimated hours on parent issues (#16092).Jean-Philippe Lang2015-05-251-1/+1
| | | | | | Parent can now have its own estimate that is summed up with children estimates. git-svn-id: http://svn.redmine.org/redmine/trunk@14272 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing validation for description size of versions (#19840).Jean-Philippe Lang2015-05-231-0/+1
| | | | | | Patch by Bruno Orcha García. git-svn-id: http://svn.redmine.org/redmine/trunk@14267 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
* Edit attachments after upload (#1326).Jean-Philippe Lang2014-11-291-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13665 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Restores commits reverted when rails-4.1 branch was merged (#18174).Jean-Philippe Lang2014-10-241-0/+5
| | | | | | Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@13504 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
* Removed deprecated stuff for Redmine 3.0.Jean-Philippe Lang2014-10-221-12/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13483 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-6/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Files assigned to a version can not be deleted if Issue Tracking ↵Jean-Philippe Lang2014-09-131-0/+4
| | | | | | | | module is disabled (#17163). Patch by Michael Esemplare. git-svn-id: http://svn.redmine.org/redmine/trunk@13390 e93f8b46-1217-0410-a6f0-8f06a7374b81