summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure we don't cast an empty string to numeric (#12713).Jean-Philippe Lang2013-01-031-5/+5
| | | | | | SQLServer evaluates the CAST condition even if the <> '' condition is false. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11103 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SQLServer: The size (60) given to the type 'decimal' exceeds the maximum ↵Jean-Philippe Lang2013-01-031-5/+5
| | | | | | allowed (#12713). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11098 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds filters for regular/custom fields to the time entries list/report (#10191).Jean-Philippe Lang2012-12-091-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10970 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed syntax for ruby1.8.Jean-Philippe Lang2012-12-091-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10969 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds TimeEntryQuery for listing time entries.Jean-Philippe Lang2012-12-091-5/+43
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10967 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved build_query_from_params helper to Query#build_from_params.Jean-Philippe Lang2012-12-091-0/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10966 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves issue specific code to IssueQuery.Jean-Philippe Lang2012-12-091-112/+24
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10965 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds STI to Query model. Issue queries are now IssueQuery instances.Jean-Philippe Lang2012-12-091-297/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10964 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use inheritable class attributes in Query model.Jean-Philippe Lang2012-12-091-53/+46
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrites named scopes with ARel queries.Jean-Philippe Lang2012-12-071-4/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10950 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds an option for displaying the issue description on the issue list (#3447).Jean-Philippe Lang2012-12-061-1/+24
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:first/:all) calls.Jean-Philippe Lang2012-12-031-12/+19
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10931 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:all) calls.Jean-Philippe Lang2012-12-021-9/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changes how relative date filters work and adds specific filters for ↵Jean-Philippe Lang2012-10-301-5/+21
| | | | | | filtering dates in past/next n days (#11426). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10768 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Validate value for date filters.Jean-Philippe Lang2012-10-301-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10767 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to sort issues by grouped column (#3511).Jean-Philippe Lang2012-10-291-3/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10765 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds label_any string for filters.Jean-Philippe Lang2012-10-041-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10562 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds no_issue_in_project operator for relations filter (#3265).Jean-Philippe Lang2012-10-041-6/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10559 e93f8b46-1217-0410-a6f0-8f06a7374b81
* sort custom field issue filter by type and position (#12018)Toshi MARUYAMA2012-10-041-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10555 e93f8b46-1217-0410-a6f0-8f06a7374b81
* change "is_private" issue filter order from 15 to 16 (#12018)Toshi MARUYAMA2012-10-041-1/+1
| | | | | | Order 15 is duplicate with "watcher_id" filter. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10552 e93f8b46-1217-0410-a6f0-8f06a7374b81
* change "status" issue filter order from 1 to 0 (#12018)Toshi MARUYAMA2012-10-041-1/+1
| | | | | | Order 1 is duplicate with "project" filter. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10551 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout cleanup Query available_filters methodToshi MARUYAMA2012-10-021-33/+71
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10545 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Call sort for array with more than one element only.Jean-Philippe Lang2012-09-291-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10519 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test failure.Jean-Philippe Lang2012-09-291-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10518 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes related issues available for display and filtering on the issue list ↵Jean-Philippe Lang2012-09-291-8/+65
| | | | | | (#3239, #3265). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10513 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/query.rbToshi MARUYAMA2012-09-251-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10469 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replace tab to space at app/models/query.rbToshi MARUYAMA2012-09-251-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10468 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to filter issues using project, author, assignee and target version ↵Jean-Philippe Lang2012-08-071-5/+35
| | | | | | | | custom fields (#8161). Custom fields must be marked as "Used as filter" to show up in the filters list. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10164 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Build issue filters using javascript.Jean-Philippe Lang2012-08-071-0/+18
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10162 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Sort versions ascending when grouping issues by version (#11153).Jean-Philippe Lang2012-07-241-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10076 e93f8b46-1217-0410-a6f0-8f06a7374b81
* In case the column is not found.Jean-Philippe Lang2012-07-241-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10074 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to group and sort the issue list by user/version custom field (#9419).Jean-Philippe Lang2012-07-241-6/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10073 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Version.fields_for_order_statement.Jean-Philippe Lang2012-07-241-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10072 e93f8b46-1217-0410-a6f0-8f06a7374b81