mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	 0974aea300
			
		
	
	0974aea300
	
	
	
		
			
			# Pull Request Template ## Description This PR increases the custom filter limit from 50 to 1000 per user ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## How Has This Been Tested? ### Screenshot <img width="1264" height="71" alt="image" src="https://github.com/user-attachments/assets/e12667bb-147c-4115-b8a8-9113fca471db" /> ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
		
			
				
	
	
		
			15 lines
		
	
	
		
			461 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			461 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| module Limits
 | |
|   BULK_ACTIONS_LIMIT = 100
 | |
|   BULK_EXTERNAL_HTTP_CALLS_LIMIT = 25
 | |
|   URL_LENGTH_LIMIT = 2048 # https://stackoverflow.com/questions/417142
 | |
|   OUT_OF_OFFICE_MESSAGE_MAX_LENGTH = 10_000
 | |
|   GREETING_MESSAGE_MAX_LENGTH = 10_000
 | |
|   CATEGORIES_PER_PAGE = 1000
 | |
|   AUTO_ASSIGNMENT_BULK_LIMIT = 100
 | |
|   MAX_CUSTOM_FILTERS_PER_USER = 1000
 | |
| 
 | |
|   def self.conversation_message_per_minute_limit
 | |
|     ENV.fetch('CONVERSATION_MESSAGE_PER_MINUTE_LIMIT', '200').to_i
 | |
|   end
 | |
| end
 |