mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Show total TrackedTime on issue/pull/milestone lists (#26672)
TODOs: - [x] write test for `GetIssueTotalTrackedTime` - [x] frontport kitharas template changes and make them mobile-friendly ---   --- *Sponsored by Kithara Software GmbH*
This commit is contained in:
		| @@ -115,3 +115,15 @@ func TestTotalTimesForEachUser(t *testing.T) { | ||||
| 	assert.NoError(t, err) | ||||
| 	assert.Len(t, total, 2) | ||||
| } | ||||
|  | ||||
| func TestGetIssueTotalTrackedTime(t *testing.T) { | ||||
| 	assert.NoError(t, unittest.PrepareTestDatabase()) | ||||
|  | ||||
| 	ttt, err := issues_model.GetIssueTotalTrackedTime(db.DefaultContext, &issues_model.IssuesOptions{MilestoneIDs: []int64{1}}, false) | ||||
| 	assert.NoError(t, err) | ||||
| 	assert.EqualValues(t, 3682, ttt) | ||||
|  | ||||
| 	ttt, err = issues_model.GetIssueTotalTrackedTime(db.DefaultContext, &issues_model.IssuesOptions{MilestoneIDs: []int64{1}}, true) | ||||
| 	assert.NoError(t, err) | ||||
| 	assert.EqualValues(t, 0, ttt) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user