mirror of
https://github.com/discourse/discourse.git
synced 2025-01-20 03:42:44 +08:00
38ab45cb93
When a category is created, we can set `minimum_required_tags` property. When the topic is created, we are checking that field and ensuring that the minimum amount of tags were added - unless topic created by a staff member. Problem is that validation is skipped when we change the category from for example category with 0 tags required to the category with 1 tag required. Changing category is kind of the unicorn as it is a complicated operation: https://github.com/discourse/discourse/blob/master/lib/post_revisor.rb#L84 https://github.com/discourse/discourse/blob/master/app/models/topic.rb#L911 https://github.com/discourse/discourse/blob/master/app/models/topic.rb#L823 Before we start to try to change the category, we should ensure that the tags requirement is fulfilled. https://meta.discourse.org/t/the-category-setting-for-tags-is-not-respected/181214 |
||
---|---|---|
.. | ||
components | ||
fabricators | ||
fixtures | ||
helpers | ||
import_export | ||
initializers | ||
integration | ||
integrity | ||
jobs | ||
lib | ||
mailers | ||
models | ||
multisite | ||
requests | ||
script/import_scripts | ||
serializers | ||
services | ||
support | ||
tasks | ||
views/omniauth_callbacks | ||
rails_helper.rb | ||
swagger_helper.rb |