Need a way to ensure all newly created paid groups are indexed
The way we are doing our rollout today is that we are explicitly adding group ids to the ElasticsearchIndexedNamespace
table in batches.
When we get to 100% then it will only be 100% of the groups that existed at the time we executed the rollout but if a new group is created after that then it will not be indexed/searchable.
One way to deal with this issue is to ensure that this feature is enabled for any newly created paid groups or newly upgraded paid groups (ie. add them to this table when they are created/upgraded). If this is deployed before we hit the 100% rollout it will stay at 100%. Since groups won't be created too frequently we likely won't impact load too much even if we deployed this behaviour today.
After we stay at 100% for a while we may wish to change all the logic so that paid groups are just always enabled and we don't need to check the ElasticsearchIndexedNamespace
table at all for paid groups. Then we might be able to delete ElasticsearchIndexedNamespace
concept all together. But perhaps we'd still want to know if we'll use that mechanism for eventually doing a percentage rollout of free tier groups or just on case by case for free tier groups so may not necessarily be able to delete it.