summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r18103 from trunk to 4.0-stable (#31276).Go MAEDA2019-04-301-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@18104 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r17869 from trunk to 4.0-stable (#30718).Go MAEDA2019-02-161-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter issues after project status (#20081).Go MAEDA2018-10-291-0/+8
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17607 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Custom queries are broken by updating with nil parameter values (#29701).Go MAEDA2018-10-041-4/+4
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17566 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove unused variable 'filter_options' from Query#add_filter (#29710).Go MAEDA2018-10-021-1/+0
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17560 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace String#gsub with faster String#tr (#29363).Go MAEDA2018-08-121-1/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17469 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace Enumerable#sort with faster Enumerable#sort_by (#29299).Go MAEDA2018-08-021-1/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17462 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace Hash#keys.each with faster Hash#each_key (#29305).Go MAEDA2018-08-011-2/+2
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17458 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Extend watched_by_me-issue filter to include all project-members instead of ↵Go MAEDA2018-07-091-0/+6
| | | | | | | | | only <<me>>-substitution (#8160). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17439 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow to filter by all versions on the global issue list (#26091).Go MAEDA2018-06-281-1/+1
| | | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17421 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Dangerous query method deprecation warnings (#23630).Jean-Philippe Lang2018-06-231-2/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17411 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Include locked members in filters (#15201).Go MAEDA2018-06-091-3/+3
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17371 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change default operator for text format custom fields from "is" to ↵Go MAEDA2018-05-121-1/+1
| | | | | | | | | "contains" (#28660). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17331 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Global and public custom queries are shown as editable to non administrators ↵Jean-Philippe Lang2018-04-081-6/+6
| | | | | | in projects (#28264). git-svn-id: http://svn.redmine.org/redmine/trunk@17292 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ignore archived project memberships when calculating issue query visibility ↵Go MAEDA2018-04-071-2/+3
| | | | | | | | | (#28180). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17257 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that sort_criteria is required (#26513).Jean-Philippe Lang2017-07-241-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16877 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove ActiveRecord workaround (#26323).Jean-Philippe Lang2017-07-231-6/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16869 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-231-4/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set default configuration for the timelog list (#26356).Jean-Philippe Lang2017-07-121-5/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16814 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
* Show the same trackers and statuses on time entry queries (#5385).Jean-Philippe Lang2017-05-271-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16577 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show statuses of project trackers only (#5385).Jean-Philippe Lang2017-05-271-0/+10
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16575 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Query through multiple projects by issue custom field not possible anymore ↵Jean-Philippe Lang2017-04-031-0/+9
| | | | | | (#25501). git-svn-id: http://svn.redmine.org/redmine/trunk@16467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix link to issues when displaying a project query (#1565).Jean-Philippe Lang2017-03-151-12/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16409 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Let user choose columns and sort order of issue lists on "My page" (#1565).Jean-Philippe Lang2017-03-141-0/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16400 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Get rid of sort_helper when using queries.Jean-Philippe Lang2017-03-131-16/+28
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16390 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Get the count by group from the query directly.Jean-Philippe Lang2017-03-091-0/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16387 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Issue description filter's 'none' operator does not match issues with blank ↵Jean-Philippe Lang2017-03-071-2/+2
| | | | | | | | descriptions (#25077). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16378 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds updated_by and last_updated_by filters on issues (#17720).Jean-Philippe Lang2017-01-191-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16228 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Handle csv columns selection in query to preload appropriate associations ↵Jean-Philippe Lang2017-01-181-0/+3
| | | | | | (#24865). git-svn-id: http://svn.redmine.org/redmine/trunk@16219 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that Query#has_column? returns false with default columns.Jean-Philippe Lang2017-01-171-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16217 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves sort joins for issues to IssueQuery.Jean-Philippe Lang2017-01-171-3/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16216 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cast as decimal(30,0) instead of integer (#21249).Jean-Philippe Lang2017-01-141-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filtering out specific subprojects (using 'is not' operator) (#15773).Jean-Philippe Lang2017-01-141-3/+10
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16196 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filters on chained custom fields and custom field attributes (#21249).Jean-Philippe Lang2017-01-141-1/+82
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16191 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't preload custom field filter values (#24787).Jean-Philippe Lang2017-01-121-5/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16173 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't preload all query filters (#24787).Jean-Philippe Lang2017-01-091-10/+105
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16170 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set @available_filters as an empty hash if nil.Jean-Philippe Lang2016-10-201-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15911 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Error with MS SQL when displaying an issue from a list grouped and sorted by ↵Jean-Philippe Lang2016-10-011-1/+1
| | | | | | fixed version (#23839). git-svn-id: http://svn.redmine.org/redmine/trunk@15852 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds issue tracker and status columns and filters on spent time list (#23401).Jean-Philippe Lang2016-08-201-0/+20
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15738 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make time entries groupable (#16843).Jean-Philippe Lang2016-07-131-5/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15649 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a version filter on time entries (#13558).Jean-Philippe Lang2016-07-131-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15646 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove special behaviour for listing issue time entries, use a filter for that.Jean-Philippe Lang2016-07-121-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15644 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds scopes for retrieving the appropriate queries (#14790).Jean-Philippe Lang2016-07-121-0/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15641 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Pull up query visibility methods.Jean-Philippe Lang2016-07-111-0/+63
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes QueriesController able to handle other Query subclasses.Jean-Philippe Lang2016-07-111-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15635 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Limits the tracker list in filters and issue counts (#285).Jean-Philippe Lang2016-06-181-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15540 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