Commit Graph

140 Commits

Author SHA1 Message Date
Jean-Philippe Lang 3976e2d15d Tests broken with ruby1.8.6 (#9751).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8128 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 18:50:15 +00:00
Jean-Philippe Lang 5ca558f191 Fixed: error when filtering by numeric custom field with postgresql (#9719).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8098 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-05 20:45:45 +00:00
Jean-Philippe Lang 68149f8c73 Fixes spent time column sort for postgresql.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8077 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 19:13:09 +00:00
Jean-Philippe Lang 6d498a3c46 Makes spent time column available on the issue list (#971).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8073 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 16:43:32 +00:00
Jean-Philippe Lang 5a1fcf826f Sort the issue list by author/assignee according to user display format (#9669).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7938 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-26 17:37:20 +00:00
Jean-Philippe Lang 3adc1c3192 Prevent clash with Rails 3 Query module.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7899 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-23 19:02:50 +00:00
Jean-Philippe Lang 3d23c42fc0 Do not use .merge_conditions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7898 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-23 19:00:54 +00:00
Jean-Philippe Lang 2081730f42 Do not use instance variable.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7897 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-23 18:32:21 +00:00
Jean-Philippe Lang e4cda67cf4 Fixed: Issue filter by assigned_to_role is not project specific (#9540).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7847 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 15:11:20 +00:00
Jean-Philippe Lang 8ec1231dbc Makes author column sortable and groupable on the issue list (#1567).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7843 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 12:47:56 +00:00
Jean-Philippe Lang 12d05431c2 Adds a way to filter issues with or without start date (#9607).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 11:25:36 +00:00
Etienne Massip 4eed0dca15 Reverted r7628.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7629 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-18 21:19:58 +00:00
Etienne Massip 33f65c5a48 Filter out illegal values to prevent raise of PostgreSQL exceptions, restored last test part removed with r7625 (#8371).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7628 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-18 17:51:21 +00:00
Etienne Massip a118c4ccb0 Fixed shot filter expression parsing depending upon field operators (#8371).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7624 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-12 23:45:47 +00:00
Toshi MARUYAMA a17fcac822 Rails3: model: query: parse dates using UTC (ruby 1.9 inside) (#4796)
On Rails 3.0 and Ruby 1.8.7 in Japan (UTC+9), tests fails with following messages.

test_operator_date_equals(QueryTest) [test/unit/query_test.rb:206]:
<"(issues.due_date > '2011-07-09 14:59:59.999999' AND issues.due_date <= '2011-07-10 14:59:59.999999')
 AND (issue_statuses.is_closed='f')"> expected to be =~
</issues\.due_date > '2011-07-09 23:59:59(\.9+)?' AND issues\.due_date <= '2011-07-10 23:59:59(\.9+)?/>.

Contributed by Sylvain Utard.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7591 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-07 00:23:05 +00:00
Etienne Massip 98e18b2141 Allow project column to be removed from the global issue list columns (#8411).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7538 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-26 17:44:20 +00:00
Toshi MARUYAMA 5c46cede2b Rails3: replace deprecated 'validate' method at Query model
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7425 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 16:56:57 +00:00
Toshi MARUYAMA 3605a18137 remove trailing white-spaces from app/models/query.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6465 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-20 03:38:29 +00:00
Jean-Philippe Lang 7f77744e86 Include issues asigned to user's groups when using "assigned to me" filter (#2964).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-31 10:22:36 +00:00
Jean-Philippe Lang 9cebf65568 Fixed: pagination do not show total visible issue count (#8633).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6314 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-24 16:48:26 +00:00
Jean-Philippe Lang 578fdc62f2 Ability to assign issues to groups (#2964).
Option is disabled by default. It can be turned on in application settings.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6306 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-23 18:18:13 +00:00
Jean-Philippe Lang 18103cafbc Refactor: extract specific filter statements to methods.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6301 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-20 17:44:10 +00:00
Jean-Philippe Lang 6c5b29bb68 More accurate date validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6265 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 14:36:43 +00:00
Jean-Philippe Lang 308a922d80 Validate date filters values.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6264 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 14:13:59 +00:00
Jean-Philippe Lang c6da451621 Typo.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6258 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 11:38:46 +00:00
Jean-Philippe Lang 73236e5b41 Fixes "=" filter on float values.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6256 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 11:35:53 +00:00
Jean-Philippe Lang c25a79a61b Keep invalid values and add validation error message.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6229 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 18:34:49 +00:00
Jean-Philippe Lang bedbb166b7 Reject non numeric values for numeric fields.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6228 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 18:19:21 +00:00
Jean-Philippe Lang bf15b06d98 Fixes filters on float values.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6227 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 18:09:40 +00:00
Jean-Philippe Lang 4507aa5014 Adds date based filters (#4729) and date range filter (#6954).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6226 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 17:29:29 +00:00
Jean-Philippe Lang 932d4cdfea Adds "between" operator for numeric filters (#6180).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6217 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 08:00:25 +00:00
Jean-Philippe Lang 4a4a71349a Fixes "less than", "greater than" filters on custom fields with postgres (#6180).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6216 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-09 21:34:35 +00:00
Jean-Philippe Lang 0bd5e22c81 Numeric operators for custom fields in query filters (#6180).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6213 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-09 20:30:51 +00:00
Jean-Philippe Lang d48ea90876 Makes custom queries available through the REST API (#5737).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6186 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-06 16:57:04 +00:00
Jean-Philippe Lang 8914d323ee Fixed: private queries should not be accessible to other users (#8729).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6163 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-03 11:01:08 +00:00
Toshi MARUYAMA 22e80f04ae remove trailing white-spaces from query model source.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5822 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 04:33:19 +00:00
Jean-Philippe Lang 57f63d513c Makes 'This week' filter work with any starting day of week (#7097).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5596 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-29 11:28:27 +00:00
Jean-Philippe Lang 1242e448f3 Extract visibility condition from project statement and use visible scopes instead.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5442 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-12 16:53:39 +00:00
Jean-Philippe Lang 5823481d6e Wrap text custom fields in the issue list (#8064).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-05 22:18:49 +00:00
Jean-Philippe Lang 80b59f3cf4 Skip a few count(*) SQL queries on the issue list.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5292 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-02 10:18:05 +00:00
Jean-Philippe Lang 1cd6a2aa84 Adds User and Version custom field format that can be used to reference a project member or version in custom fields (#2096).
These new field formats are available for project, issue, version and time entry custom fields.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5272 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-01 13:44:58 +00:00
Jean-Philippe Lang fba3d5d327 Adds Issue#visible_condition to build issue visibility statement.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5141 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-15 16:00:39 +00:00
Jean-Philippe Lang f357912d21 Fixed: SQL error when filtering issues with an empty group or role (#7656).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4888 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-20 13:03:32 +00:00
Jean-Philippe Lang 703b0ec422 Fixed: 500 error on issue query grouped by a custom field that was deleted (#7144).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-21 21:46:54 +00:00
Jean-Philippe Lang 8a8ca40364 Prevents n SQL queries (n = project count) on cross-project issues list.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4550 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-20 20:03:22 +00:00
Jean-Philippe Lang 63866407f1 Fixed: unchecking status filter on the issue list has no effect (#6844).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4387 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-07 15:38:51 +00:00
Eric Davis fef21d5aa2 Remember the selected "Member of Role" and "Member of Group" options. #6467
Contributed by Yuki Kita

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4260 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-16 00:00:23 +00:00
Eric Davis d36700eeee Refactor: replace chained finders with an inject. Should handle edge cases better.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4079 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-10 19:53:57 +00:00
Eric Davis 41f8d043eb Added a "Member of Role" to the issues filters. #5869
This filter will check an issue's assigned to field for users who have
(or don't have) a specific Role(s).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4078 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-10 19:44:45 +00:00
Eric Davis 109b42f482 Added a "Member of Group" to the issues filter. #5869
This filter will check an issue's assigned to field for users in (or not in)
specific groups.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4077 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-10 18:46:29 +00:00