-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make tracked time representation display as hours #33315
Make tracked time representation display as hours #33315
Conversation
39ad067
to
e184c21
Compare
Maybe it should be a per-user setting? It only affects the display, so it's user's preference? |
@wxiaoguang, thank you for your review. My points are:
I am personally definitely prefer that default behaviour of estimated/tracked time representation will be in "hours". Because this representation elliminates many differences with shifts, days, WW and other managements stuffs. |
Thank you for the explanation. TBH if there is a chance to avoid a new global config option, I think it's better to do that, meanwhile I won't block the current approach. But I can see there are other related PRs:
|
Yes, I took a look on #25213 and did several comments in this PR. But #25213 isn't moving forward for more than a year. IMHO, default behaviour should be changed as I've written in previous comment. Estimated time and tracked time should be shown in hours to be comparable and minimise cultural and management differences around the World. |
Maybe it is a good chance to completely remove the legacy |
If it will be suitable I remove SecToTime and replaced it with SecToHours. |
e184c21
to
d8a50df
Compare
Tracked time in the issue represented not in the same manner as estimated. Because of estimated time viewed in hours it might be convinient to have tracked time represented in the same way. Signed-off-by: Sysoev, Vladimir <[email protected]>
d8a50df
to
fa65e25
Compare
We also need to fix frontend: f333786 |
* giteaofficial/main: [skip ci] Updated licenses and gitignores Fix typo in documentation of GetBranchNames() (go-gitea#33330) Fix Account linking page (go-gitea#33325) Fix parentCommit invalid memory address or nil pointer dereference. (go-gitea#33204) Make tracked time representation display as hours (go-gitea#33315) [skip ci] Updated translations via Crowdin [skip ci] Updated translations via Crowdin Fix push message behavior (go-gitea#33215) Add golang back to nix dev environment and pin v1.23 (go-gitea#33275) Trivial fixes (go-gitea#33304)
Estimated time represented in hours it might be convenient to have tracked time represented in the same way to be compared and managed. --------- Co-authored-by: Sysoev, Vladimir <[email protected]> Co-authored-by: wxiaoguang <[email protected]> # Conflicts: # modules/templates/helper.go
Try to backport #33315, the only trivial conflict is in the helper functions map in the helper.go Fix #33333 Co-authored-by: Sysoev, Vladimir <[email protected]>
Since #25213 is not moving forward, I propose another minimal approach to change tracked time representation.
Tracked time in the issue represented not in the same manner as estimated.
Because of estimated time represented in hours it might be convenient to have tracked time represented in the same way to be compared and managed.
(oudated)
Option TRACKED_TIMESTAMP_TENSE added to [ui] section.
[ui]
TRACKED_TIMESTAMP_TENSE='mixed|hours'