Mobile: record enrollment state in RecordedNimbusContext

Open
#17,762 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
12/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
analytics, data, mobile

Research direction

The work spans three repositories: application-services needs TargetingAttributes exposed into RecordedContext, fenix and firefox-ios need RecordedNimbusContext.toJson to record the new fields, and experimenter needs the mapping. The issue names no specific file or test in experimenter, so start by finding how the earlier array and keyed-lookup tickets were done there. Done means mobile enrollment state reaches the recorded context on both platforms and experimenter maps it.

Written by the indexing model from the issue text.

Description

Desktop records active_experiments, active_rollouts and enrollments_map; mobile records none of them. 122 references across Fenix and iOS Drafts are dropped as a result, making this the whole of the remaining mobile gap.

The values already exist in the Rust SDK's TargetingAttributes but are never surfaced into RecordedContext.

  • application-services: expose is_already_enrolled, active_experiments, enrollments and enrollments_map to RecordedContext
  • fenix and firefox-ios: record them in RecordedNimbusContext.toJson
  • experimenter: map them, reusing the array and keyed-lookup work from the earlier tickets

Largest item in the epic and the only one needing SDK changes.

┆Issue is synchronized with this Jira Task

Dominant language
Python
Stars
152
Forks
231
Avg merge
23h 54m
Merged PRs (30d)
201

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/experimenter

All issues in mozilla/experimenter

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.