summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r22746 from trunk to 5.0-stable (#40043).Marius Balteanu2024-02-271-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22756 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r22155 from trunk to 5.0-stable (#38286).Go MAEDA2023-03-251-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22157 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/branches/5.0-stable@22014 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r21994 from trunk to 5.0-stable (#38064).Go MAEDA2022-12-211-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21995 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
* Replace Member.find_or_new with ActiveRecord's find_or_initialize_by (#36730).Go MAEDA2022-03-141-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21456 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
* 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
* Explicitly specify escape character using an ESCAPE on SQLite (#35073).Marius Balteanu2021-10-091-1/+1
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21240 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
* Locked users should not be displayed in the members box of the project ↵Go MAEDA2021-07-271-1/+1
| | | | | | | | | overview page (#35606). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21090 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Default issue query (#7360).Go MAEDA2021-07-061-0/+6
| | | | | | | Patch by Katsuya HIDAKA (the author of https://github.com/hidakatsuya/redmine_default_custom_query), Takenori TAKAKI, Olivier Chabert, and Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21061 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove deprecated Project#members_by_role (#35031).Go MAEDA2021-05-151-8/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21003 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
* Reverts r20653.Go MAEDA2021-03-181-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20815 e93f8b46-1217-0410-a6f0-8f06a7374b81
* place the '.' on the previous line of the method call at app/models/project.rbToshi MARUYAMA2020-12-171-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20653 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of app/models/project.rbToshi MARUYAMA2020-12-121-11/+24
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20639 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of app/models/project.rbToshi MARUYAMA2020-12-091-31/+97
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20589 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use sum { ... } instead of map { ... }.sum (#34399).Go MAEDA2020-12-061-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20581 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at ActiveRecord scope lambda of app/models/project.rbToshi MARUYAMA2020-11-121-8/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20341 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to app/models/project.rbToshi MARUYAMA2020-11-031-1/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20237 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at app/models/project.rbToshi MARUYAMA2020-09-261-4/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20079 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/project.rbToshi MARUYAMA2020-09-241-6/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20075 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow normal users to delete a project (#33945).Go MAEDA2020-09-151-0/+8
| | | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@20034 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show groups in members box on project overview page (#33174).Go MAEDA2020-04-221-4/+10
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19718 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-0/+9
| | | | | | | 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-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/SpaceInsidePercentLiteralDelimiters in ↵Toshi MARUYAMA2019-11-241-1/+1
| | | | | | app/models/project.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentFirstArrayElement in app/models/project.rbToshi MARUYAMA2019-11-091-10/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19049 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/BlockAlignment in app/models/project.rbToshi MARUYAMA2019-11-091-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19009 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in app/models/project.rbToshi MARUYAMA2019-11-091-6/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18998 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/ParenthesesAroundCondition in ↵Toshi MARUYAMA2019-10-221-2/+2
| | | | | | app/models/project.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18832 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/WhileUntilModifier in app/models/project.rbToshi MARUYAMA2019-10-191-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18758 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reject project custom field values not visible for the user (#31954, #31925).Go MAEDA2019-08-271-0/+17
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18401 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup: RuboCop: Fix Style/IdenticalConditionalBranches in ↵Go MAEDA2019-08-201-8/+2
| | | | | | app/models/project.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18380 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Per role visibility settings for project custom fields (#31925).Go MAEDA2019-08-201-0/+7
| | | | | | | Patch by Jens Krämer and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18379 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup: RuboCop: Rails/ActiveRecordAliasesGo MAEDA2019-08-171-1/+1
| | | | | | | update_attributes is deprecated in Rails 6.0 and will be removed in Rails 6.1 (#29914). git-svn-id: http://svn.redmine.org/redmine/trunk@18375 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
* Use Regexp#match? to reduce allocations of MatchData object (#28940).Go MAEDA2019-03-271-2/+2
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in app/**/*.rb (#26561).Go MAEDA2019-03-171-3/+3
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17987 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
* Translation missing error in "Project's Status" filter options (#30718).Go MAEDA2019-02-151-6/+0
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17869 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Let admin users unarchive subprojects of archived projects (#29993).Jean-Philippe Lang2018-12-021-8/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17681 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter issues after project status (#20081).Go MAEDA2018-10-291-0/+6
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17607 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add CSS class to identify public projects (#28413).Go MAEDA2018-07-221-0/+1
| | | | | | | Patch by Sho HASHIMOTO. git-svn-id: http://svn.redmine.org/redmine/trunk@17452 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copy project attachments (#26622).Go MAEDA2018-05-131-0/+5
| | | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17333 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copy version attachments (i.e. Files) along with the versions on project ↵Go MAEDA2018-05-131-0/+5
| | | | | | | | | copy (#26622). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17332 e93f8b46-1217-0410-a6f0-8f06a7374b81