プロジェクト

全般

プロフィール

Vote #78788

完了

Issue filtering by spent time

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues filter_56
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
56
version_id:
127
issue_org_id:
26826
author_id:
4
assigned_to_id:
332
comments:
9
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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?


journals

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
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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:*
!{width: 232px}.26826-note4-before@2x.png!

*After:*
!{width: 232px}.26826-note4-after@2x.png!

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
I noticed that 'expected' and 'actual' are reversed on the added assertions.
Attaching an updated patch.
--------------------------------------------------------------------------------
Committed the patch. Thank you for improving Redmine.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,35798,Add Total estimated/spent time issue query filters
duplicates,Closed,13947,Add spent time issue list filter

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues filter_56 にセット
  • 対象バージョン4.1.0_127 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0