Closed Bug 2014170 Opened 9 months ago Closed 5 months ago

Add randomization to microsurveys

Categories

(Firefox for Android :: Experimentation and Telemetry, enhancement)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: jbillman, Assigned: Ansh)

References

Details

(Whiteboard: [fxdroid][group2] )

Attachments

(1 external file)

Steps to reproduce

Expected behavior

Surveys must be randomized to avoid bias (e.g. putting the same answer at the top every time will likely be selected most, regardless of relevance)

Actual behavior

Device information

  • Firefox version:
  • Android device model:
  • Android OS version:

Any additional information?

For reference:

fun Message.toMicrosurveyUIData() = if (hasValidMicrosurveyConfig()) {
    MicrosurveyUIData(
        id = id,
        // title null checked in hasValidMicrosurveyConfig
        promptTitle = title!!,
        // microsurvey null checked in hasValidMicrosurveyConfig
        icon = microsurvey!!.icon?.resourceId ?: iconsR.drawable.mozac_ic_lightbulb_24,
        question = text,
        // microsurvey null checked in hasValidMicrosurveyConfig
        answers = microsurvey!!.toSortedAnswers(),
        utmContent = microsurvey?.utmContent,
    )
} else {
    null
}
Assignee: nobody → ansinha
Attachment #9592237 - Attachment description: WIP: Bug 2014170 - Add randomization to microsurveys → Bug 2014170 - Add randomization to microsurveys
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: