Project

General

Profile

Actions

Feature #26826

closed

Issue filtering by spent time

Feature #26826: Issue filtering by spent time

Added by Anonymous about 9 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues filter
Target version:
Resolution:

Description

Hi!

Here's a patch that adds a filter for spent time to IssueQuery. Any chance this could be included in the next 3.3 and 3.4 versions?


Files

issue-filter-by-spent-time.diff (2.88 KB) issue-filter-by-spent-time.diff Anonymous, 2017-09-01 14:50
issue-filter-by-spent-time-2.diff (2.94 KB) issue-filter-by-spent-time-2.diff Anonymous, 2017-09-15 15:56
26826-note4-before@2x.png (55 KB) 26826-note4-before@2x.png Go MAEDA, 2018-05-13 14:24
26826-note4-after@2x.png (54.6 KB) 26826-note4-after@2x.png Go MAEDA, 2018-05-13 14:30
issue-filter-by-spent-time-3.diff (2.69 KB) issue-filter-by-spent-time-3.diff moves the position of "Spent time" filter Go MAEDA, 2018-05-13 14:35
issue-filter-by-spent-time-4.diff (2.82 KB) issue-filter-by-spent-time-4.diff Takenori TAKAKI, 2018-09-20 08:58
issue-filter-by-spent-time-5.diff (2.82 KB) issue-filter-by-spent-time-5.diff Takenori TAKAKI, 2018-09-20 09:53

Related issues 2 (1 open — 1 closed)

Related to Redmine - Feature #35798: Add Total estimated/spent time issue query filtersNewActions
Has duplicate Redmine - Feature #13947: Add spent time issue list filterClosedActions

Updated by Anonymous about 9 years ago Actions #1

Here's an updated patch based on feedback that meineerde gave me on IRC.

  • An unknown operator leads to invalid SQL, return nil early instead
  • NUMERIC is a non-standard PostgreSQL type, use DECIMAL instead

Updated by Toshi MARUYAMA about 9 years ago Actions #2

  • Target version set to 4.1.0

Updated by Mischa The Evil over 8 years ago Actions #3

  • Has duplicate Feature #13947: Add spent time issue list filter added

Updated by Go MAEDA over 8 years ago Actions #4

I think it would be better to move the position of "Spent time" filter in the filters list. The reasons are as follows:

  • The proposed patch places the filter in the third position. I think it is a too excellent position for the filter because most users don't use the filter so frequently.
  • "Spent time" and "Estimated time" are closely related to each other. These two filters should be next to each other.

Attaching an updated patch.

Before:

After:

Updated by Takenori TAKAKI about 8 years ago Actions #5

I tested the patch "issue-filter-by-spent-time-3.diff" posted by Go Maeda.
As a result, I found that it is necessary to add a fixture of time_entrys to the test code "test/unit/query_test.rb".
Tests were done with MySQL, PostgreSQL, SQLite and all succeeded.
I attach a new patch that added fixture.

Updated by Takenori TAKAKI about 8 years ago Actions #6

I noticed that 'expected' and 'actual' are reversed on the added assertions.
Attaching an updated patch.

Updated by Go MAEDA over 7 years ago Actions #7

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch. Thank you for improving Redmine.

Updated by Jean-Philippe Lang almost 7 years ago Actions #8

  • Tracker changed from Patch to Feature

Updated by Mischa The Evil about 5 years ago Actions #9

  • Related to Feature #35798: Add Total estimated/spent time issue query filters added
Actions

Also available in: PDF Atom