1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

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
This commit is contained in:
6543
2019-11-20 15:50:54 +01:00
committed by Lunny Xiao
parent dfd8b94923
commit 2ab8c78c30
6 changed files with 47 additions and 52 deletions

View File

@@ -3832,8 +3832,8 @@
}
],
"responses": {
"201": {
"$ref": "#/responses/empty"
"200": {
"$ref": "#/responses/UserList"
},
"404": {
"description": "Issue not found"