mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +02:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
20 lines
687 B
Scala
20 lines
687 B
Scala
package com.twitter.visibility.configapi.params
|
|
|
|
import com.twitter.timelines.configapi.BucketName
|
|
import com.twitter.timelines.configapi.Experiment
|
|
import com.twitter.timelines.configapi.UseFeatureContext
|
|
|
|
object VisibilityExperiment {
|
|
val Control = "control"
|
|
val Treatment = "treatment"
|
|
}
|
|
|
|
abstract class VisibilityExperiment(experimentKey: String)
|
|
extends Experiment(experimentKey)
|
|
with UseFeatureContext {
|
|
val TreatmentBucket: String = VisibilityExperiment.Treatment
|
|
override def experimentBuckets: Set[BucketName] = Set(TreatmentBucket)
|
|
val ControlBucket: String = VisibilityExperiment.Control
|
|
override def controlBuckets: Set[BucketName] = Set(ControlBucket)
|
|
}
|