プロジェクト

全般

プロフィール

Vote #76509

完了

Time entry query : column week

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

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

0%

予定工数:
category_id:
13
version_id:
102
issue_org_id:
20221
author_id:
36999
assigned_to_id:
1
comments:
11
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

journals

Here is the patch working on any version of Redmine.

Please feel free to integrate this straightforward patch
--------------------------------------------------------------------------------
Could you add tests?
* source:tags/3.1.0/test/unit/time_entry_query_test.rb
* source:tags/3.1.0/test/functional/timelog_controller_test.rb
--------------------------------------------------------------------------------
Here is a patch, only the unit test, there is no controller test about queries available columns
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Does it make sense to display the week number without the year? Sorting on this column will result in time entries from different years appear with the same week.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Does it make sense to display the week number without the year? Sorting on this column will result in time entries from different years appear with the same week.
I don't see a use case that makes this sort useful, but on the other hand displaying this column is useful to have the week number without duplicating informations in other columns (spent_on). The yyyy-ww sort can be done with spent_on.

Thank to have added this patch to 3.2.0

If you have some time to review my other pending patches I will be very pleased !

--------------------------------------------------------------------------------
Jérôme BATAILLE wrote:
> I don't see a use case that makes this sort useful

Just asking... because the patch makes it sortable.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Just asking... because the patch makes it sortable.

We are at the frontier of YAGNI :-) I can't see a use case, but perhaps some folks will, and adding the sort costs nothing.

--------------------------------------------------------------------------------
Column added in r14723. But sort is done on spent_on, as sorting by week number does make no sense when we have time entries on several years.
--------------------------------------------------------------------------------
Thanks a lot !
--------------------------------------------------------------------------------

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


related_issues

relates,Closed,26780,Translation for label_week in time report is not working

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

  • カテゴリTime tracking_13 にセット
  • 対象バージョン3.2.0_102 にセット

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

いいね!0
いいね!0