Closed Bug 2058873 Opened 4 months ago Closed 3 months ago

Re-enable ordering for microsurvey answers

Categories

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

All
Android
task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: towhite, Assigned: Ansh)

References

(Blocks 1 open bug)

Details

(Whiteboard: [android-activation-trust][fxdroid])

Attachments

(1 external file)

Summary

Enable answer-level controls for fixed or randomized answer ordering, removing the current limitation that prevents special responses (for example, "None of the above") from being pinned to a specific position.

The microsurvey manifest already supports explicit answer ordering:

  MicrosurveyAnswer:
    description: Attributes relating to microsurvey content.
    fields:
      ordering:
        type: Int
        description: >
          Used to sequence the answers top to bottom. E.g. 0 will be the first/top item, 1 will be next and so on.
          Always set either ALL the provided answers ordering or NONE. If ALL answers are default, the the ordering
          used will be the same as provided by the experiment.
        default: 0
      text:
        type: Text
        description: The text for the answer.
        default: "" # This should never be defaulted.

However, this behaviour was overridden in favour of always randomizing the answer list as part of bug 2014170.

Most of the existing implementation can likely be reused by introducing support for one of the following approaches:

  • Randomize flag: Add a flag that enables or disables randomization for the entire answer list.
  • Pinned answers: Allow specific answers to retain their position while randomizing the remaining answers.
  • Hybrid ordering (recommended): Treat ordering > 0 as a fixed position and ordering = 0 as eligible for randomization. Fixed answers would appear first in their defined order, followed by the randomized answers, for example, the following input:
  1. ordering: 1 — "Answer 1"
  2. ordering: 2 — "Answer 2"
  3. ordering: 0 — "Answer 3"
  4. ordering: 0 — "Answer 4"
  5. ordering: 0 — "Answer 5"

could produce:

  1. ordering: 1 — "Answer 1"
  2. ordering: 2 — "Answer 2"
  3. ordering: 0 — "Answer 5"
  4. ordering: 0 — "Answer 3"
  5. ordering: 0 — "Answer 4"

This approach preserves deterministic placement for answers that require it while maintaining the benefits of answer randomization for the remaining options.

Assignee: nobody → ansinha
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: