Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Bug 1876823 - Add action to fetch list of sites that should not be tr… #5463

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

calumozilla
Copy link
Contributor

@calumozilla calumozilla commented Feb 5, 2024

…anslated

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Breaking Changes: If this is a breaking Android Components change, please push a draft PR on Reference Browser to address the breaking issues.

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-apk-{fenix,focus,klar}-debug task you're interested in.
  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

https://bugzilla.mozilla.org/show_bug.cgi?id=1876823

Copy link
Contributor

@ohall-m ohall-m left a comment

Choose a reason for hiding this comment

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

Thanks for working on translations!

Just a few minor comments about things that recently changed and a suggested pattern for the MiddlewareTest.

@@ -203,6 +203,24 @@ class TranslationsActionTest {
assertEquals(supportedLanguages, tabState().translationsState.supportedLanguages)
}

@Test
fun `WHEN a SetNeverTranslateSitesAction is dispatched AND successful THEN update neverTranslateSites`() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I figured out what was going on with the TranslationsMiddlewareTest.kt pattern over in #5389. That test now seems to be verifying as expected and I think could be used as a pattern for an additional test on this patch too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great! I added the setup and tested it out, and will rebase when you have that merged in.

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome, thanks and thanks for the review! #5389 just merged!

@ohall-m ohall-m added the changes required PR that requires some changes before landing. label Feb 5, 2024
@github-actions github-actions bot added approved PR that has been approved and removed 🕵️‍♀️ needs review PRs that need to be reviewed changes required PR that requires some changes before landing. labels Feb 6, 2024
@calumozilla calumozilla added the 🛬 needs landing PRs that are ready to land label Feb 6, 2024
@mergify mergify bot merged commit 5010d52 into mozilla-mobile:main Feb 6, 2024
111 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved PR that has been approved 🛬 needs landing PRs that are ready to land
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants