0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 05:54:24 +01:00
gitea/routers
Jonas Franz 8d5f58d834 Shows total tracked time in issue and milestone list (#3341)
* Show total tracked time in issue and milestone list
Show total tracked time at issue page

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Optimizing TotalTimes by using SumInt

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fixing wrong total times for milestones caused by a missing JOIN
Adding unit tests for total times

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Logging error instead of ignoring it

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Correcting spelling mistakes

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Change error message to a short version

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add error handling to TotalTimes
Add variable for totalTimes

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Introduce TotalTrackedTimes as variable of issue
Load TotalTrackedTimes by loading attributes of IssueList
Load TotalTrackedTimes by loading attributes of single issue
Add Sec2Time as helper to use it in templates

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fixed test + gofmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Load TotalTrackedTimes via MilestoneList instead of single requests

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add documentation for MilestoneList

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add documentation for MilestoneList

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix test

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Change comment from SQL query to description

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix unit test by using int64 instead of int

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix unit test by using int64 instead of int

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Check if timetracker is enabled

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix test by enabling timetracking

Signed-off-by: Jonas Franz <info@jonasfranz.de>
2018-04-29 13:58:47 +08:00
..
admin Add admin dashboard option to run health checks (#3606) 2018-03-02 11:09:43 +02:00
api/v1 don't reset team/repo count when updating team via API (#3831) 2018-04-29 13:22:57 +08:00
dev Make time diff translatable (#2057) 2017-06-28 13:43:28 +08:00
org Address issues pointed out by @lunny in #3339 (#3352) 2018-01-12 08:37:30 -06:00
private improve protected branch to add whitelist support (#2451) 2017-09-14 16:16:22 +08:00
repo Shows total tracked time in issue and milestone list (#3341) 2018-04-29 13:58:47 +08:00
routes Add topic support (#3711) 2018-04-11 10:51:44 +08:00
user Refactor and simplify redirect to url (#3674) 2018-03-15 22:13:34 +01:00
utils Allow adding collaborators with (fullname) (#3103) 2017-12-07 15:00:09 +08:00
home.go Global code search support (#3664) 2018-03-16 22:04:33 +08:00
init.go Set session and indexers' data files rel to AppDataPath (#2192) 2017-11-03 10:56:20 +02:00
install.go Implements generator cli for secrets (#3531) 2018-02-18 20:14:37 +02:00