Background
GrowthExperiments adds a template collection feature to search, which allows users to submit search queries based on groups of templates. This feature is used to exclude articles with infoboxes from Add Image. It is exposed to administrators using Community Configuration as this:
Since ElasticSearch doesn't allow more than 1024 clauses in a boolean query, the total number of templates is limited. Currently, this limit is set at 500 templates (500 infobox templates). Prior to migrating to CC2.0, GrowthExperiments enforced this restriction via its GrowthConfigValidation. However, this limitation was not migrated to Community Configuration 2.0.
Problem
Currently, Special:CommunityConfiguration/GrowthSuggestedEdits would allow admins to specify as many templates as they want. If they exceed the 500 limit, the template collection feature will not exclude anything. In other words: specifying more than 500 templates results in excluding no articles from Add Link. This is an user facing portion of the impact.
This also makes it more challenging to remove CC legacy, as a portion of GrowthConfigValidation (part of CC legacy) continues to be used (namely, the 500 constant).
