a666829a37 
								
							 
						 
						
							
							
								
								Move user related model into models/user ( #17781 )  
							
							... 
							
							
							
							* Move user related model into models/user
* Fix lint for windows
* Fix windows lint
* Fix windows lint
* Move some tests in models
* Merge 
							
						 
						
							2021-11-24 17:49:20 +08:00  
				
					
						
							
							
								 
						
							
								c98dd7a3e0 
								
							 
						 
						
							
							
								
								Remove unnecessary variable assignments ( #17695 )  
							
							... 
							
							
							
							* Remove unnecessary variable assignments
As title
* enable ineffassign
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2021-11-18 09:33:06 +08:00  
				
					
						
							
							
								 
						
							
								81926d61db 
								
							 
						 
						
							
							
								
								Decouple unit test, remove intermediate `unittestbridge` package ( #17662 )  
							
							... 
							
							
							
							Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2021-11-16 16:53:21 +08:00  
				
					
						
							
							
								 
						
							
								a4bfef265d 
								
							 
						 
						
							
							
								
								Move db related basic functions to models/db ( #17075 )  
							
							... 
							
							
							
							* Move db related basic functions to models/db
* Fix lint
* Fix lint
* Fix test
* Fix lint
* Fix lint
* revert unnecessary change
* Fix test
* Fix wrong replace string
* Use *Context
* Correct committer spelling and fix wrong replaced words
Co-authored-by: zeripath <art27@cantab.net> 
							
						 
						
							2021-09-19 19:49:59 +08:00  
				
					
						
							
							
								 
						
							
								3607f79d78 
								
							 
						 
						
							
							
								
								Fixed assert statements. ( #16089 )  
							
							
							
						 
						
							2021-06-07 07:27:09 +02:00  
				
					
						
							
							
								 
						
							
								63591016b3 
								
							 
						 
						
							
							
								
								Extend Notifications API and return pinned notifications by default ( #12164 )  
							
							... 
							
							
							
							* Extend notifications API and return pinned notifications in notifications list
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix swagger
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix swagger again
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix test
Signed-off-by: Andrew Thornton <art27@cantab.net>
* remove spurious debugs
* as per @6543
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update models/notification.go
* as per @6543
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io> 
							
						 
						
							2020-07-12 00:46:01 +03:00  
				
					
						
							
							
								 
						
							
								0dadea19bc 
								
							 
						 
						
							
							
								
								[Api] Check Notify (always return json) ( #10059 )  
							
							... 
							
							
							
							* BEAKING: check return status based on struct not httpStatus
* update Tests
* CI.restart() 
							
						 
						
							2020-04-10 19:49:39 -04:00  
				
					
						
							
							
								 
						
							
								44de66bf50 
								
							 
						 
						
							
							
								
								[API] add endpoint to check notifications [Extend  #9488 ] ( #9595 )  
							
							... 
							
							
							
							* introduce GET /notifications/new
* add TEST
* use Sprintf instead of path.Join
* Error more verbose
* return number of notifications if unreaded exist
* 200 http status for available notifications 
							
						 
						
							2020-01-14 16:37:19 +01:00  
				
					
						
							
							
								 
						
							
								6baa5d7588 
								
							 
						 
						
							
							
								
								[API] Add notification endpoint ( #9488 )  
							
							... 
							
							
							
							* [API] Add notification endpoints
 * add func GetNotifications(opts FindNotificationOptions)
 * add func (n *Notification) APIFormat()
 * add func (nl NotificationList) APIFormat()
 * add func (n *Notification) APIURL()
 * add func (nl NotificationList) APIFormat()
 * add LoadAttributes functions (loadRepo, loadIssue, loadComment, loadUser)
 * add func (c *Comment) APIURL()
 * add func (issue *Issue) GetLastComment()
 * add endpoint GET /notifications
 * add endpoint PUT /notifications
 * add endpoint GET /repos/{owner}/{repo}/notifications
 * add endpoint PUT /repos/{owner}/{repo}/notifications
 * add endpoint GET /notifications/threads/{id}
 * add endpoint PATCH /notifications/threads/{id}
* Add TEST
* code format
* code format 
							
						 
						
							2020-01-09 11:56:32 +00:00