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)
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 > 0as a fixed position andordering = 0as eligible for randomization. Fixed answers would appear first in their defined order, followed by the randomized answers, for example, the following input:
ordering: 1— "Answer 1"ordering: 2— "Answer 2"ordering: 0— "Answer 3"ordering: 0— "Answer 4"ordering: 0— "Answer 5"
could produce:
ordering: 1— "Answer 1"ordering: 2— "Answer 2"ordering: 0— "Answer 5"ordering: 0— "Answer 3"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.
Updated•4 months ago
|
| Assignee | ||
Updated•4 months ago
|
Assignee: nobody → ansinha
| Assignee | ||
Comment 1•3 months ago
|
||
Pushed by ansinha@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/435bf58f5aa4
https://hg.mozilla.org/integration/autoland/rev/2200afda8a84
Re-enable ordering for microsurvey answers r=android-reviewers,twhite
Comment 3•3 months ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 3 months ago
status-firefox155:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•