* 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 c1de540147199f2f1a8dd0d008f54af3603e2229. * better test code * more acurate comments * use assert.False/True instead of Equal * use more assert methodes
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			441 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			441 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| -
 | |
|   id: 1
 | |
|   user_id: 9
 | |
|   issue_id: 1
 | |
|   is_watching: true
 | |
|   created_unix: 946684800
 | |
|   updated_unix: 946684800
 | |
| 
 | |
| -
 | |
|   id: 2
 | |
|   user_id: 2
 | |
|   issue_id: 2
 | |
|   is_watching: false
 | |
|   created_unix: 946684800
 | |
|   updated_unix: 946684800
 | |
| 
 | |
| -
 | |
|   id: 3
 | |
|   user_id: 2
 | |
|   issue_id: 7
 | |
|   is_watching: true
 | |
|   created_unix: 946684800
 | |
|   updated_unix: 946684800
 | |
| 
 | |
| -
 | |
|   id: 4
 | |
|   user_id: 1
 | |
|   issue_id: 7
 | |
|   is_watching: false
 | |
|   created_unix: 946684800
 | |
|   updated_unix: 946684800
 |