Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Closes EXP-3078 Use Nimbus.fetchExperiments() more intentionally #28760

Merged
merged 4 commits into from
Feb 6, 2023

Conversation

jhugman
Copy link
Contributor

@jhugman jhugman commented Feb 3, 2023

Fixes EXP-3078.

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

QA

  • QA Needed

To download an APK when reviewing a PR (after all CI tasks finished running):

  1. Click on Checks at the top of the PR page.
  2. Click on the firefoxci-taskcluster group on the left to expand all tasks.
  3. Click on the build-debug task.
  4. Click on View task in Taskcluster in the new DETAILS section.
  5. The APK links should be on the right side of the screen, named for each CPU architecture.

GitHub Automation

Used by GitHub Actions.

@jhugman jhugman requested review from a team as code owners February 3, 2023 15:26
@jhugman jhugman self-assigned this Feb 3, 2023
@jhugman jhugman added the pr:work-in-progress PRs that are not ready to be reviewed yet and are actively being worked on label Feb 3, 2023
@jhugman jhugman force-pushed the jhugman/exp-3078-tighten-up-background-networking branch 2 times, most recently from cb4653e to 5666fc6 Compare February 3, 2023 19:03
@jhugman jhugman changed the title Closes EXP-3078 Make Nimbus.fetchExperiments() to be used more intentionally Closes EXP-3078 Use Nimbus.fetchExperiments() more intentionally Feb 3, 2023
@jhugman jhugman force-pushed the jhugman/exp-3078-tighten-up-background-networking branch from 5666fc6 to 8dee6ba Compare February 6, 2023 19:51
@jhugman jhugman force-pushed the jhugman/exp-3078-tighten-up-background-networking branch from 8dee6ba to fb64656 Compare February 6, 2023 20:16
}

@Test
fun `GIVEN a nimbus object WHEN calling maybeFetchExperiments before an interval THEN do not call fetchExperiments`() {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we also have a test for 'at' interval?

@jhugman jhugman force-pushed the jhugman/exp-3078-tighten-up-background-networking branch from fb64656 to ed7b659 Compare February 6, 2023 20:30
@jhugman jhugman added pr:needs-landing-squashed PRs that are ready to land (squashed) [Will be merged by Mergify] and removed pr:work-in-progress PRs that are not ready to be reviewed yet and are actively being worked on labels Feb 6, 2023
@mergify mergify bot merged commit 1afe929 into main Feb 6, 2023
@bors bors bot deleted the jhugman/exp-3078-tighten-up-background-networking branch February 6, 2023 23:02
@Amejia481
Copy link
Contributor

Amejia481 commented Feb 7, 2023

We are getting really close to release v111, is it OK to ship this feature?

JohanLorenzo pushed a commit to mozilla-mobile/firefox-android that referenced this pull request Feb 13, 2023
…lly (mozilla-mobile/fenix#28760)

* Add maybeFetchExperiments

* Move fetchExperiments from onCreate to after visual completeness

* Address reviewer comments / ktlint
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr:needs-landing-squashed PRs that are ready to land (squashed) [Will be merged by Mergify]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants