Browse Source
Refactor Issues Subscription (#8738)
Refactor Issues Subscription (#8738)
* FIX: getIssueWatchers() get only aktive suscriber
* save query to work later with it or not ...
* fix test + add new case
* corect tests + GetIssueWatch
* API issue_subscripton: Put/Delete require tocken
* remove redundant code
* swagger specify return value
* remove unused binding
* remove note
because I'll implement this in a different way and in another PR
* ID should be unique!
* use xorm session
* Revert "use xorm session"
This reverts commit c1de540147
.
* better test code
* more acurate comments
* use assert.False/True instead of Equal
* use more assert methodes
lunny/display_deleted_branch2
committed by
Lunny Xiao
6 changed files with 47 additions and 52 deletions
-
16models/fixtures/issue_watch.yml
-
2models/issue_watch.go
-
23models/issue_watch_test.go
-
6routers/api/v1/api.go
-
48routers/api/v1/repo/issue_subscription.go
-
4templates/swagger/v1_json.tmpl
Write
Preview
Loading…
Cancel
Save
Reference in new issue