summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
Commit message (Collapse)AuthorAgeFilesLines
* Speeds up Project.allowed_to_condition for users who belong to hundreds of ↵Jean-Philippe Lang2017-01-031-3/+3
| | | | | | projects. git-svn-id: http://svn.redmine.org/redmine/trunk@16124 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Unarchive link not working for subprojects of closed projects (#24595).Jean-Philippe Lang2016-12-131-2/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16071 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enforce issue assignee validation (#23921).Jean-Philippe Lang2016-12-101-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't return 2 errors when identifier is blank (blank + too short).Jean-Philippe Lang2016-11-191-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15987 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Speedup remove_inherited_roles (#22850).Jean-Philippe Lang2016-10-021-1/+1
| | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@15883 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds pagination to admin project list.Jean-Philippe Lang2016-08-301-1/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disable "Select project modules" permission does not apply to the new ↵Jean-Philippe Lang2016-08-301-2/+18
| | | | | | project form (#23470). git-svn-id: http://svn.redmine.org/redmine/trunk@15752 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that restricted custom permissions on for non member/anonymous does ↵Jean-Philippe Lang2016-08-301-1/+3
| | | | | | not work (#23655). git-svn-id: http://svn.redmine.org/redmine/trunk@15750 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't pass conditions to #delete_all.Jean-Philippe Lang2016-07-161-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15675 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use .distinct instead of .uniq.Jean-Philippe Lang2016-07-141-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15654 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Assignable users should not include users that cannot view the tracker (#23172).Jean-Philippe Lang2016-06-281-2/+13
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15586 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Limits the tracker list in filters and issue counts (#285).Jean-Philippe Lang2016-06-181-10/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15540 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Preload principals.Jean-Philippe Lang2016-06-121-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15518 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace Date.today with User.current.today (#22320).Jean-Philippe Lang2016-05-071-1/+1
| | | | | | | | | | | | | | 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
* 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
* Use association instead of a manual JOIN (#21583).Jean-Philippe Lang2016-01-161-2/+2
| | | | | | Patch by Ondřej. git-svn-id: http://svn.redmine.org/redmine/trunk@15062 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't show projects created more than 30 days ago in "Latest projects" (#21148).Jean-Philippe Lang2015-11-081-1/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14854 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Default target version for new issues (#1828).Jean-Philippe Lang2015-11-011-1/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14786 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Conditions cleanup.Jean-Philippe Lang2015-10-191-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14692 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Error message when editing a child project without add project/subprojects ↵Jean-Philippe Lang2015-09-211-6/+8
| | | | | | permissions (#20282). git-svn-id: http://svn.redmine.org/redmine/trunk@14619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Project copy does not copy custom field settings (#20360).Jean-Philippe Lang2015-09-201-5/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14618 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Project copy does not update custom field of version type values (#20361).Jean-Philippe Lang2015-09-201-0/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14615 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed invalid search link on the new project form (#20565).Jean-Philippe Lang2015-09-201-2/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14614 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't propose projects without trackers when editing an issue (#20463).Jean-Philippe Lang2015-09-201-0/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14613 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Project.copy_from deletes enabled_modules on source (#20512).Jean-Philippe Lang2015-08-181-1/+1
| | | | | | Fix by Ondřej Ezr. git-svn-id: http://svn.redmine.org/redmine/trunk@14508 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use String#casecmp for case insensitive comparison (#20369)Toshi MARUYAMA2015-08-121-1/+1
| | | | | | Contributed by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@14484 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that members without view issues permission are able to list issues on ↵Jean-Philippe Lang2015-07-251-1/+5
| | | | | | public projects if the non member role has the permission (#20206). git-svn-id: http://svn.redmine.org/redmine/trunk@14450 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecates Project#member_principals.Jean-Philippe Lang2015-06-181-9/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14332 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that project activity without parent hides system activities and ↵Jean-Philippe Lang2015-05-301-40/+10
| | | | | | removed duplicated code. git-svn-id: http://svn.redmine.org/redmine/trunk@14292 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Memorize project override roles.Jean-Philippe Lang2015-01-241-1/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13934 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
* Option to search attachment filenames and description (#4383).Jean-Philippe Lang2015-01-091-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13856 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecates Project#set_allowed_parent!.Jean-Philippe Lang2015-01-071-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13849 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that project copy triggers a 500 error if project validation fails.Jean-Philippe Lang2015-01-071-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13848 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleans up parent project assignment in ProjectsController.Jean-Philippe Lang2015-01-071-38/+44
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13847 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved Project#hierarchy to NestedSet::Traversing.Jean-Philippe Lang2015-01-071-9/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13843 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces awesome_nested_set gem with a simple and more robust implementation ↵Jean-Philippe Lang2015-01-071-49/+6
| | | | | | | | of nested sets. The concurrency tests added in this commit trigger dead locks and/or nested set inconsistency with awesome_nested_set. git-svn-id: http://svn.redmine.org/redmine/trunk@13841 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use logger.info? (#18605).Jean-Philippe Lang2014-12-141-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13766 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Skip some validations if attribute did not change.Jean-Philippe Lang2014-12-061-2/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13723 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Get version ids with a single query (was n+1).Jean-Philippe Lang2014-12-021-3/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13694 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed broken and unused method added in r5313.Jean-Philippe Lang2014-12-021-6/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13693 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use scope.Jean-Philippe Lang2014-12-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13692 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
* Moved controller code to new method Project#add_default_member.Jean-Philippe Lang2014-11-021-0/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13542 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a 'sorted' scope to Project.Jean-Philippe Lang2014-11-021-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13541 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed SQL errors with SQLServer (column specified more than once in the ↵Jean-Philippe Lang2014-10-291-1/+1
| | | | | | order by list) after r13526. git-svn-id: http://svn.redmine.org/redmine/trunk@13527 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2014-10-281-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13525 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Clear @assignable_users on reload.Jean-Philippe Lang2014-10-251-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13510 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes Project#assignable_users return a scope that prevents 2*n queries.Jean-Philippe Lang2014-10-251-5/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13509 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Restores commits reverted when rails-4.1 branch was merged (#18174).Jean-Philippe Lang2014-10-241-1/+2
| | | | | | Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@13504 e93f8b46-1217-0410-a6f0-8f06a7374b81