6543 
							
						 
					 
					
						
						
							
						
						43c252dfea 
					 
					
						
						
							
							Calculate PublicOnly for org membership only once ( #32234 )  
						
						... 
						
						
						
						Refactoring of #32211 
this move the PublicOnly() filter calcuation next to the DB querys and
let it be decided by the Doer
---
*Sponsored by Kithara Software GmbH* 
						
						
					 
					
						2024-11-11 01:38:30 +01:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						daf2a4c047 
					 
					
						
						
							
							Fix wrong display of recently pushed notification ( #25812 )  
						
						... 
						
						
						
						There's a bug in #25715 : 
If user pushed a commit into another repo with same branch name, the
no-related repo will display the recently pushed notification
incorrectly.
It is simple to fix this, we should match the repo id in the sql query.

The latest commit is 2 weeks ago.

The notification comes from another repo with same branch name:

After:
In forked repo:

New PR Link will redirect to the original repo:

In the original repo:

New PR Link:

In the same repo:

New PR Link:

08/15 Update:
Follow #26257 , added permission check and logic fix mentioned in
https://github.com/go-gitea/gitea/pull/26257#discussion_r1294085203 
2024/04/25 Update:
Fix  #30611 
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-05-21 17:00:35 +00:00 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						76659b1114 
					 
					
						
						
							
							Reduce usage of db.DefaultContext ( #27073 )  
						
						... 
						
						
						
						Part of #27065 
This reduces the usage of `db.DefaultContext`. I think I've got enough
files for the first PR. When this is merged, I will continue working on
this.
Considering how many files this PR affect, I hope it won't take to long
to merge, so I don't end up in the merge conflict hell.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-09-14 17:09:32 +00:00 
						 
				 
			
				
					
						
							
							
								Philip Peterson 
							
						 
					 
					
						
						
							
						
						63d5e762d8 
					 
					
						
						
							
							Add missing test case and fix typo in tests ( #24915 )  
						
						... 
						
						
						
						This PR adds a missing assertion in the `TestGetOrgUsersByOrgID`
function. It also incidentally fixes a small typo. 
						
						
					 
					
						2023-05-24 21:06:04 +02: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 
						 
				 
			
				
					
						
							
							
								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 
							
						 
					 
					
						
						
							
						
						d91d4db344 
					 
					
						
						
							
							Move tests as seperate sub packages to reduce duplicated file names ( #19951 )  
						
						
						
						
					 
					
						2022-06-15 09:02:00 +02:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						fd7d83ace6 
					 
					
						
						
							
							Move almost all functions' parameter db.Engine to context.Context ( #19748 )  
						
						... 
						
						
						
						* Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions 
						
						
					 
					
						2022-05-20 22:08:52 +08:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						d81e31ad78 
					 
					
						
						
							
							Move org functions ( #19753 )  
						
						... 
						
						
						
						* Move org functions
* Fix comment 
						
						
					 
					
						2022-05-20 12:20:51 +02:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						b06b9a056c 
					 
					
						
						
							
							Move organization related structs into sub package ( #18518 )  
						
						... 
						
						
						
						* Move organization related structs into sub package
* Fix test
* Fix lint
* Move more functions into sub packages
* Fix bug
* Fix test
* Update models/organization/team_repo.go
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
* Apply suggestions from code review
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
* Fix fmt
* Follow suggestion from @Gusted
* Fix test
* Fix test
* Fix bug
* Use ctx but db.DefaultContext on routers
* Fix bug
* Fix bug
* fix bug
* Update models/organization/team_user.go
* Fix bug
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2022-03-29 14:29:02 +08:00