This is mostly a 'feel' change. The behaviour that is currently on the
access tokens pages is, as far as I know, not present in any other parts
of the frontend, and there's no real good reason to keep the 'Generate
New Token' panel hidden by default in my opinion.
* 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]>
This solves the problem of administrators creating accounts for users
that then do not know their initial password (without the administrator
sending it to them via some other channel).
* add topic models and unit tests
* fix comments
* fix comment
* add the UI to show or add topics for a repo
* show topics on repositories list
* fix test
* don't show manage topics link when no permission
* use green basic as topic label
* fix topic label color
* remove trace content
* remove debug function
I wanted navigation to the page "first" and the page
"last" of the pages of commits. I discovered this
has already been implemented in one of the templates.
Signed-off-by: Tan Pheng Heong <[email protected]>
Modify the call to ping the database to fail gracefully if the
database has not yet been configured by the end user, such as
after a clean install. This allows /healthcheck to return a 200
with a modified status message instead of causing a PANIC.
Signed-off-by: Evan Sherwood <[email protected]>
* Add size column to attachment
Migrate attachments by calculating file sizes
Signed-off-by: Jonas Franz <[email protected]>
* Calculate attachment size on creation
Signed-off-by: Jonas Franz <[email protected]>
* Log error instead of returning error
Signed-off-by: Jonas Franz <[email protected]>