* fixes#5957
* add tests to make sure config option is respected
* use already defined struct
* - use migration to make the flag repo wide not for the entire gitea instance
Also note that the config value can still be set so as to be able to control the value for new repositories that are to be created
- fix copy/paste error in copyright header year and rearrange import
- use repo config instead of server config value to determine if a commit should close an issue
- update testsuite
* use global config only when creating a new repository
* allow repo admin toggle feature via UI
* fix typo and improve testcase
* fix fixtures
* add DEFAULT prefix to config value
* fix test
* Show total tracked time in issue and milestone list
Show total tracked time at issue page
Signed-off-by: Jonas Franz <[email protected]>
* Optimizing TotalTimes by using SumInt
Signed-off-by: Jonas Franz <[email protected]>
* Fixing wrong total times for milestones caused by a missing JOIN
Adding unit tests for total times
Signed-off-by: Jonas Franz <[email protected]>
* Logging error instead of ignoring it
Signed-off-by: Jonas Franz <[email protected]>
* Correcting spelling mistakes
Signed-off-by: Jonas Franz <[email protected]>
* Change error message to a short version
Signed-off-by: Jonas Franz <[email protected]>
* Add error handling to TotalTimes
Add variable for totalTimes
Signed-off-by: Jonas Franz <[email protected]>
* 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 <[email protected]>
* Fixed test + gofmt
Signed-off-by: Jonas Franz <[email protected]>
* Load TotalTrackedTimes via MilestoneList instead of single requests
Signed-off-by: Jonas Franz <[email protected]>
* Add documentation for MilestoneList
Signed-off-by: Jonas Franz <[email protected]>
* Add documentation for MilestoneList
Signed-off-by: Jonas Franz <[email protected]>
* Fix test
Signed-off-by: Jonas Franz <[email protected]>
* Change comment from SQL query to description
Signed-off-by: Jonas Franz <[email protected]>
* Fix unit test by using int64 instead of int
Signed-off-by: Jonas Franz <[email protected]>
* Fix unit test by using int64 instead of int
Signed-off-by: Jonas Franz <[email protected]>
* Check if timetracker is enabled
Signed-off-by: Jonas Franz <[email protected]>
* Fix test by enabling timetracking
Signed-off-by: Jonas Franz <[email protected]>
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
* Send notifications to partecipants in issue comments
Closes#1216
Includes test (still failing)
* Do not include "labelers" to participants
Fix test to expect what GetParticipants return