Commit Graph

297 Commits

Author SHA1 Message Date
Toshi MARUYAMA
1c0b6075ee use "attr_writer" instead of "attr_accessor" for QueryColumn#sortable
QueryColumn#sortable is already defined in this class.

git-svn-id: http://svn.redmine.org/redmine/trunk@18616 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-07 11:45:11 +00:00
Go MAEDA
b3baa5c1ce "starts with" and "ends with" filter operators for string values (#31879).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18534 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-25 16:24:08 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
b0e17e8199 Don't rescue Exception class (#31387).
Patch by Go MAEDA and Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 06:50:25 +00:00
Go MAEDA
470c168783 Changes Query#as_params for more complete serialization (#31276).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@18103 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-30 03:10:43 +00:00
Go MAEDA
72e1451159 Use Regexp#match? to reduce allocations of MatchData object (#28940).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-27 02:15:24 +00:00
Go MAEDA
d4daf4e23b Support frozen_string_literal in issue, journal, and query (#26561).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17980 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 00:29:58 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
6a639cdf0f Translation missing error in "Project's Status" filter options (#30718).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17869 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-15 23:44:20 +00:00
Go MAEDA
489664df7e Show full width layout custom fields as block columns in issue listing (#26081).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17865 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-13 14:06:10 +00:00
Go MAEDA
04ac58b3c5 New date filter operators: tomorrow, next week, next month (#4502).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17811 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-01-19 07:42:26 +00:00
Jean-Philippe Lang
e647e99b74 Allow issues grouping by creation, update and closing date (#13803).
Implemented for PostgreSQL only for now.

git-svn-id: http://svn.redmine.org/redmine/trunk@17724 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-12 19:52:28 +00:00
Go MAEDA
21034c5628 Filter issues after project status (#20081).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17607 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-29 04:03:52 +00:00
Go MAEDA
28c231473f Custom queries are broken by updating with nil parameter values (#29701).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17566 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-04 12:46:32 +00:00
Go MAEDA
824f98e353 Remove unused variable 'filter_options' from Query#add_filter (#29710).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17560 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-02 03:43:39 +00:00
Go MAEDA
b7f15fbadc Replace String#gsub with faster String#tr (#29363).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17469 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-08-12 23:40:44 +00:00
Go MAEDA
eee1c36b4b Replace Enumerable#sort with faster Enumerable#sort_by (#29299).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17462 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-08-02 21:54:21 +00:00
Go MAEDA
ed14823d13 Replace Hash#keys.each with faster Hash#each_key (#29305).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17458 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-08-01 14:28:39 +00:00
Go MAEDA
5a2f924b76 Extend watched_by_me-issue filter to include all project-members instead of only <<me>>-substitution (#8160).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17439 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-07-09 06:07:26 +00:00
Go MAEDA
06d3e897c4 Allow to filter by all versions on the global issue list (#26091).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17421 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-28 00:49:30 +00:00
Jean-Philippe Lang
d8a2024715 Dangerous query method deprecation warnings (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@17411 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-23 05:19:07 +00:00
Go MAEDA
b4d3715dc0 Include locked members in filters (#15201).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17371 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-09 08:07:08 +00:00
Go MAEDA
8ce031ef49 Change default operator for text format custom fields from "is" to "contains" (#28660).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17331 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-05-12 05:42:27 +00:00
Jean-Philippe Lang
af2730de5e Global and public custom queries are shown as editable to non administrators in projects (#28264).
git-svn-id: http://svn.redmine.org/redmine/trunk@17292 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-08 13:23:30 +00:00
Go MAEDA
e5a8bcfd72 Ignore archived project memberships when calculating issue query visibility (#28180).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17257 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-07 00:26:54 +00:00
Jean-Philippe Lang
edbc9611de Fixed that sort_criteria is required (#26513).
git-svn-id: http://svn.redmine.org/redmine/trunk@16877 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-24 17:14:53 +00:00
Jean-Philippe Lang
3320e651d3 Remove ActiveRecord workaround (#26323).
git-svn-id: http://svn.redmine.org/redmine/trunk@16869 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 16:13:25 +00:00
Jean-Philippe Lang
d74f0bfd5c Merged rails-5.1 branch (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
Jean-Philippe Lang
2a721fff4c Set default configuration for the timelog list (#26356).
git-svn-id: http://svn.redmine.org/redmine/trunk@16814 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-12 18:13:20 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
d9418864b6 Show the same trackers and statuses on time entry queries (#5385).
git-svn-id: http://svn.redmine.org/redmine/trunk@16577 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 09:19:14 +00:00
Jean-Philippe Lang
ba37a2c476 Show statuses of project trackers only (#5385).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16575 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 09:12:42 +00:00
Jean-Philippe Lang
6c4b73b448 Query through multiple projects by issue custom field not possible anymore (#25501).
git-svn-id: http://svn.redmine.org/redmine/trunk@16467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-03 14:04:04 +00:00
Jean-Philippe Lang
c23f126f1f Fix link to issues when displaying a project query (#1565).
git-svn-id: http://svn.redmine.org/redmine/trunk@16409 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-15 18:14:58 +00:00
Jean-Philippe Lang
8c7898bb5d Let user choose columns and sort order of issue lists on "My page" (#1565).
git-svn-id: http://svn.redmine.org/redmine/trunk@16400 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-14 18:18:19 +00:00
Jean-Philippe Lang
71d88e5535 Get rid of sort_helper when using queries.
git-svn-id: http://svn.redmine.org/redmine/trunk@16390 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-13 19:17:59 +00:00
Jean-Philippe Lang
b714c71402 Get the count by group from the query directly.
git-svn-id: http://svn.redmine.org/redmine/trunk@16387 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-09 20:01:01 +00:00
Jean-Philippe Lang
58ee62e239 Issue description filter's 'none' operator does not match issues with blank descriptions (#25077).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16378 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-07 17:51:27 +00:00
Jean-Philippe Lang
151a215ea4 Adds updated_by and last_updated_by filters on issues (#17720).
git-svn-id: http://svn.redmine.org/redmine/trunk@16228 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-19 20:16:49 +00:00
Jean-Philippe Lang
d10ab869a7 Handle csv columns selection in query to preload appropriate associations (#24865).
git-svn-id: http://svn.redmine.org/redmine/trunk@16219 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-18 12:51:41 +00:00
Jean-Philippe Lang
4a5ebfb778 Fixed that Query#has_column? returns false with default columns.
git-svn-id: http://svn.redmine.org/redmine/trunk@16217 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-17 21:29:22 +00:00
Jean-Philippe Lang
82afdc7f78 Moves sort joins for issues to IssueQuery.
git-svn-id: http://svn.redmine.org/redmine/trunk@16216 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-17 19:41:35 +00:00
Jean-Philippe Lang
14a98af864 Cast as decimal(30,0) instead of integer (#21249).
git-svn-id: http://svn.redmine.org/redmine/trunk@16197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-14 12:37:16 +00:00
Jean-Philippe Lang
e808c62253 Filtering out specific subprojects (using 'is not' operator) (#15773).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16196 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-14 12:26:13 +00:00
Jean-Philippe Lang
f1678e4f77 Filters on chained custom fields and custom field attributes (#21249).
git-svn-id: http://svn.redmine.org/redmine/trunk@16191 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-14 10:52:38 +00:00
Jean-Philippe Lang
309c6cec86 Don't preload custom field filter values (#24787).
git-svn-id: http://svn.redmine.org/redmine/trunk@16173 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-12 20:19:45 +00:00
Jean-Philippe Lang
fd3c08aaa1 Don't preload all query filters (#24787).
git-svn-id: http://svn.redmine.org/redmine/trunk@16170 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-09 19:59:54 +00:00
Jean-Philippe Lang
c2d97fb4aa Set @available_filters as an empty hash if nil.
git-svn-id: http://svn.redmine.org/redmine/trunk@15911 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-20 16:48:22 +00:00
Jean-Philippe Lang
1810283a66 Error with MS SQL when displaying an issue from a list grouped and sorted by fixed version (#23839).
git-svn-id: http://svn.redmine.org/redmine/trunk@15852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 08:53:31 +00:00
Jean-Philippe Lang
3539cfcf0f Adds issue tracker and status columns and filters on spent time list (#23401).
git-svn-id: http://svn.redmine.org/redmine/trunk@15738 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-08-20 10:27:39 +00:00