You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
6 years ago
..
activity.go Handle refactor (#3339) 7 years ago
attachment.go Log attachment blocked events (#3615) 6 years ago
branch.go Handle refactor (#3339) 7 years ago
commit.go Handle refactor (#3339) 7 years ago
download.go Handle refactor (#3339) 7 years ago
editor.go Handle refactor (#3339) 7 years ago
http.go Correctly check http git access rights for reverse proxy authorized users (#3721) 6 years ago
issue.go Shows total tracked time in issue and milestone list (#3341) 6 years ago
issue_label.go Add label descriptions (#3662) 6 years ago
issue_label_test.go fix go vet error (#3740) 6 years ago
issue_stopwatch.go Handle refactor (#3339) 7 years ago
issue_timetrack.go Handle refactor (#3339) 7 years ago
issue_watch.go Handle refactor (#3339) 7 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go Handle refactor (#3339) 7 years ago
pull.go Fix branch deletion for squash or rebase merged pull requests (#3425) 7 years ago
release.go Handle refactor (#3339) 7 years ago
release_test.go Fix missing branch in release bug (#3108) 7 years ago
repo.go Refactor and simplify redirect to url (#3674) 6 years ago
search.go Global code search support (#3664) 6 years ago
setting.go Add repository setting to enable/disable health checks (#3607) 6 years ago
setting_protected_branch.go Add protected branch whitelists for merging (#3689) 6 years ago
settings_test.go Writable deploy keys (closes #671) (#3225) 7 years ago
topic.go Add topic support (#3711) 6 years ago
view.go Add topic support (#3711) 6 years ago
webhook.go Handle refactor (#3339) 7 years ago
wiki.go Fix rendering of wiki page list if wiki repo contains other files (#3454) 6 years ago
wiki_test.go Improve wiki test (#3493) 6 years ago