Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor FXIOS-9968 Studies opt out on Firefox iOS when telemetry usage is unchecked #21917

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

nbhasin2
Copy link
Contributor

📜 Tickets

Jira ticket - FXIOS-9968
Github issue

💡 Description

These should mostly be visual changes but I did add additional check to ensure we also disable the toggle and save it in prefs.

Although experiments are by default disabled if you are not reporting telemetry > LINK

Below are some cases I added in the video.

A) Initially both are enabled
B) Turning telemetry Off should also turn Off studies
C) Turning telemetry On doesn't automatically turn on studies

FYI Studies are another name for experiments.

Screen.Recording.2024-09-12.at.12.39.30.AM.mov

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@nbhasin2
Copy link
Contributor Author

cc @jeffreygee Tagging you here since you are working on Settings IA and this is unique case which would be best solved if these are somehow combined together or embedded in another view. Having it on top of settings seems odd and doesn't give user enough knowledge about turning of ONE would also turn OFF other.

See above video for your reference

@mobiletest-ci-bot
Copy link

Messages
📖 Project coverage: 31.65%
📖 Edited 4 files
📖 Created 0 files

Client.app: Coverage: 30.41

File Coverage
SettingsTableViewController.swift 14.45% ⚠️
AppSettingsTableViewController.swift 27.59% ⚠️
StudiesToggleSetting.swift 70.27%
SendAnonymousUsageDataSetting.swift 74.58%

Generated by 🚫 Danger Swift against b887870

Copy link
Collaborator

@ih-codes ih-codes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work well when I tested. 👍

I did see the toggle freeze up once like you described in Coffee Chat yesterday, but I couldn't reproduce it. Might be because I stopped at a breakpoint during initialization. Anyway, seems very edge case.

I left a few comments. You can see if any of them are something to worry about.

@nbhasin2 nbhasin2 merged commit 4a11949 into mozilla-mobile:main Sep 16, 2024
10 checks passed
@nbhasin2
Copy link
Contributor Author

@mergify backport release/v131

Copy link
Contributor

mergify bot commented Sep 16, 2024

backport release/v131

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 16, 2024
…ge is unchecked (#21917)

Refactor FXIOS-9968 Studies opt out on Firefox iOS when telemetry usage is unchecked

(cherry picked from commit 4a11949)
dsmithpadilla pushed a commit that referenced this pull request Oct 7, 2024
…ge is unchecked (backport #21917) (#22009)

Refactor FXIOS-9968 Studies opt out on Firefox iOS when telemetry usage is unchecked (#21917)

Refactor FXIOS-9968 Studies opt out on Firefox iOS when telemetry usage is unchecked

(cherry picked from commit 4a11949)

Co-authored-by: Nishant Bhasin <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants