Explain SearchOptions and fix ToSearchOptions (#26542)
Follow #26012 #26490. A detailed description has been added to the comment.
This commit is contained in:
		
							parent
							
								
									1432d4eab9
								
							
						
					
					
						commit
						3b129aaa80
					
				
					 3 changed files with 35 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -14,6 +14,7 @@ import (
 | 
			
		|||
)
 | 
			
		||||
 | 
			
		||||
func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_model.IssuesOptions, error) {
 | 
			
		||||
	// See the comment of issues_model.SearchOptions for the reason why we need to convert
 | 
			
		||||
	convertID := func(id *int64) int64 {
 | 
			
		||||
		if id == nil {
 | 
			
		||||
			return 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue