JakobDev 
							
						 
					 
					
						
						
							
						
						cc5df26680 
					 
					
						
						
							
							Even more db.DefaultContext refactor ( #27352 )  
						
						 
						
						... 
						
						
						
						Part of #27065 
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: delvh <dev.lh@web.de > 
						
						
					 
					
						2023-10-03 10:30:41 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nanguan Lin 
							
						 
					 
					
						
						
							
						
						da50be7360 
					 
					
						
						
							
							Replace 'userxx' with 'orgxx' in all test files when the user type is org  ( #27052 )  
						
						 
						
						... 
						
						
						
						Currently 'userxx' and 'orgxx' are both used as username in test files
when the user type is org, which is confusing. This PR replaces all
'userxx' with 'orgxx' when the user type is org(`user.type==1`).
Some non-trivial changes
1. Rename `user3` dir to `org3` in `tests/git-repositories-meta` 
2. Change `end` in `issue reference` because 'org3' is one char shorter
than 'user3'

3. Change the search result number of `user/repo2` because
`user3/repo21` can't be searched now

4. Change the first org name getting from API because the result is
ordered by alphabet asc and now `org 17` is before `org25`


Other modifications are just find all and replace all.
Unit tests with SQLite are all passed.
---------
Co-authored-by: caicandong <1290147055@qq.com > 
						
						
					 
					
						2023-09-14 02:59:53 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						cfe3d6e9b5 
					 
					
						
						
							
							Make more functions use ctx instead of db.DefaultContext ( #24068 )  
						
						 
						
						... 
						
						
						
						Continue the "ctx refactoring" work.
There are still a lot db.DefaultContext, incorrect context could cause
database deadlock errors. 
						
						
					 
					
						2023-04-14 14:18:28 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						0a7d3ff786 
					 
					
						
						
							
							refactor some functions to support ctx as first parameter ( #21878 )  
						
						 
						
						... 
						
						
						
						Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
Co-authored-by: Lauris BH <lauris@nix.lv > 
						
						
					 
					
						2022-12-03 10:48:26 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								flynnnnnnnnnn 
							
						 
					 
					
						
						
							
						
						e81ccc406b 
					 
					
						
						
							
							Implement FSFE REUSE for golang files ( #21840 )  
						
						 
						
						... 
						
						
						
						Change all license headers to comply with REUSE specification.
Fix  #16132 
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com > 
						
						
					 
					
						2022-11-27 18:20:29 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								KN4CK3R 
							
						 
					 
					
						
						
							
						
						044c754ea5 
					 
					
						
						
							
							Add context.Context to more methods ( #21546 )  
						
						 
						
						... 
						
						
						
						This PR adds a context parameter to a bunch of methods. Some helper
`xxxCtx()` methods got replaced with the normal name now.
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2022-11-19 16:12:33 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						86c85c19b6 
					 
					
						
						
							
							Refactor AssertExistsAndLoadBean to use generics ( #20797 )  
						
						 
						
						... 
						
						
						
						* Refactor AssertExistsAndLoadBean to use generics
* Fix tests
Co-authored-by: zeripath <art27@cantab.net > 
						
						
					 
					
						2022-08-16 10:22:25 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						1a9821f57a 
					 
					
						
						
							
							Move issues related files into models/issues ( #19931 )  
						
						 
						
						... 
						
						
						
						* Move access and repo permission to models/perm/access
* fix test
* fix git test
* Move functions sequence
* Some improvements per @KN4CK3R and @delvh
* Move issues related code to models/issues
* Move some issues related sub package
* Merge
* Fix test
* Fix test
* Fix test
* Fix test
* Rename some files 
						
						
					 
					
						2022-06-13 17:37:59 +08:00