in experimenter/experimenter/experiments/models.py [0:0]
def bucket_namespace(self):
keys = []
if self.application_config:
keys.append(self.application_config.slug)
keys.extend(
feature_config.slug
for feature_config in self.feature_configs.all().order_by("slug")
)
if self.channel:
keys.append(self.channel)
if self.is_rollout:
if self.targeting_config_slug:
keys.append(self.targeting_config_slug)
keys.append("rollout")
if self.is_desktop and self.use_group_id:
keys.append(BucketRandomizationUnit.GROUP_ID)
return "-".join(keys)