summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r16196 to 3.3-stable (#15773).Jean-Philippe Lang2019-11-161-3/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@19074 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r16467 (#25501).Jean-Philippe Lang2017-04-061-0/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16505 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r15852 and r15863 (#23839).Jean-Philippe Lang2016-10-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15864 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r15540 (#285).Jean-Philippe Lang2016-06-181-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15542 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2016-05-161-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15418 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Always return an array.Jean-Philippe Lang2016-05-161-4/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15417 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Malformed SQL query with SQLServer when grouping and sorting by fixed ↵Jean-Philippe Lang2016-05-161-1/+1
| | | | | | version (#22808). git-svn-id: http://svn.redmine.org/redmine/trunk@15416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes Query#date_clause timezone handling (#22320).Jean-Philippe Lang2016-05-071-2/+10
| | | | | | | | | When querying time fields based on date values these should be interpreted in the user's time zone, since that's what a user usually expects. Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@15381 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace Date.today with User.current.today (#22320).Jean-Philippe Lang2016-05-071-7/+7
| | | | | | | | | | | | | | 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
* Filter by issue id (#4806).Jean-Philippe Lang2016-05-061-5/+10
| | | | | | A shortcut is added to the context menu to filter the selected issues. git-svn-id: http://svn.redmine.org/redmine/trunk@15371 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SQL server: non ASCII filter on text fields does not work (#22405).Jean-Philippe Lang2016-04-241-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15353 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SQL server: non ASCII filter on issue subject does not work (#22405).Jean-Philippe Lang2016-04-241-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15351 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
* Query project_statement - do not collect ids of subtree (#21611).Jean-Philippe Lang2016-01-301-5/+7
| | | | | | Patch by Ondřej Ezr. git-svn-id: http://svn.redmine.org/redmine/trunk@15135 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved custom fields totals logic to FieldFormat (#21413).Jean-Philippe Lang2015-12-051-16/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14944 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to filter issues blocked by any/no open issues (#16621).Jean-Philippe Lang2015-11-071-3/+5
| | | | | | Patch by Arthur Andersen. git-svn-id: http://svn.redmine.org/redmine/trunk@14809 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add users to assignee/author filters if they are missing (#3398).Jean-Philippe Lang2015-10-211-1/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes float conversion failures (#1561).Jean-Philippe Lang2015-10-091-8/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14668 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display totals for each group on grouped queries (#1561).Jean-Philippe Lang2015-10-091-3/+81
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14665 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds options to display totals on the issue list (#1561).Jean-Philippe Lang2015-10-041-1/+40
| | | | | | Works for estimated hours, spent hours and any numeric custom field. git-svn-id: http://svn.redmine.org/redmine/trunk@14642 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display all versions in query filter (#19271).Jean-Philippe Lang2015-09-261-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14623 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Query doesn't work with non ASCII uppercase symbols (#20438).Jean-Philippe Lang2015-08-021-2/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14476 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that user with "Manage public queries" permission, can create global ↵Jean-Philippe Lang2015-06-291-1/+3
| | | | | | public query (#19842). git-svn-id: http://svn.redmine.org/redmine/trunk@14388 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds issue filters on parent/subtasks (#6118).Jean-Philippe Lang2015-06-131-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14304 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't call #upcase on nil.Jean-Philippe Lang2015-02-081-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13994 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed filtering on date custom field with SQLServer.Jean-Philippe Lang2015-02-081-25/+35
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13993 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed an error in ↵Jean-Philippe Lang2015-02-081-1/+1
| | | | | | IssuesControllerTest#test_index_with_query_grouped_by_tracker_in_reverse_order with SQLServer. git-svn-id: http://svn.redmine.org/redmine/trunk@13991 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
* Let QueryColumn accept a Proc as caption (#18276).Jean-Philippe Lang2014-11-041-1/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13558 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-10/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replace tabs to spaces at app/models/query.rbToshi MARUYAMA2014-04-151-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13088 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix typos of source comments at Query modelToshi MARUYAMA2014-04-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13076 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that Link custom fields are not displayed as links on the issue list ↵Jean-Philippe Lang2014-04-061-4/+19
| | | | | | (#16496). git-svn-id: http://svn.redmine.org/redmine/trunk@13054 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
* back out from r12715 to r12720: #connection replacingToshi MARUYAMA2014-01-271-8/+8
| | | | | | These revisions have performance regression on Rails 3.2.16. git-svn-id: http://svn.redmine.org/redmine/trunk@12735 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated #connection from Query modelToshi MARUYAMA2014-01-271-8/+8
| | | | | | DEPRECATION WARNING: #connection is deprecated in favour of accessing it via the class. git-svn-id: http://svn.redmine.org/redmine/trunk@12720 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed test failure with ruby1.8 (#8842).Jean-Philippe Lang2014-01-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12479 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed test failure with sqlite (#8842).Jean-Philippe Lang2014-01-031-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12478 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow filtering with timestamp (#8842).Jean-Philippe Lang2014-01-031-12/+27
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12477 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged custom fields format refactoring.Jean-Philippe Lang2013-12-141-23/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12400 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Avoid N queries when displaying the issue list with custom fields.Jean-Philippe Lang2013-10-151-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12223 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to save Gantt query filters (#7836).Jean-Philippe Lang2013-07-141-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12020 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Role-based issue custom field visibility (#5037).Jean-Philippe Lang2013-07-131-5/+17
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12012 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Role based custom queries (#1019).Jean-Philippe Lang2013-07-111-2/+17
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11994 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Query#add_custom_fields_filters now takes a custom fields scope.Jean-Philippe Lang2013-06-011-38/+45
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that filtering may return unwanted blank values (#14051).Jean-Philippe Lang2013-05-161-2/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11850 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: makes issue id a regular QueryColumn.Jean-Philippe Lang2013-02-231-3/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11447 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: use an ordered hash to store available filters and remove :order ↵Jean-Philippe Lang2013-02-141-11/+41
| | | | | | option (#13154). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11372 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test failure with JRuby 1.7.2 (#12228).Jean-Philippe Lang2013-01-271-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes issue custom fields available as timelog columns (#1766).Jean-Philippe Lang2013-01-121-0/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11174 e93f8b46-1217-0410-a6f0-8f06a7374b81