mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 01:32:23 +08:00
5257c80064
This patch sets some limits on custom fields: - an entity can’t have more than 100 custom fields defined on it - a custom field can’t hold a value greater than 10,000,000 characters The current implementation of custom fields is relatively complex and does an upsert in SQL at some point, thus preventing to simply add an `ActiveRecord` validation on the custom field model without having to rewrite a part of the existing logic. That’s one of the reasons this patch is implementing validations in the `HasCustomField` module adding them to the model including the module. |
||
---|---|---|
.. | ||
reports | ||
anon_cache_invalidator.rb | ||
cached_counting.rb | ||
category_hashtag.rb | ||
has_custom_fields.rb | ||
has_destroyed_web_hook.rb | ||
has_sanitizable_fields.rb | ||
has_search_data.rb | ||
has_url.rb | ||
limited_edit.rb | ||
positionable.rb | ||
roleable.rb | ||
searchable.rb | ||
second_factor_manager.rb | ||
stats_cacheable.rb | ||
topic_tracking_state_publishable.rb | ||
trashable.rb |