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

Bug 1877203 - Update Translations Page Settings #5498

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

ohall-m
Copy link
Contributor

@ohall-m ohall-m commented Feb 7, 2024

The goal of this bug is to have a way to update page settings.

It adds:

  • A new action, UpdatePageSettingAction
    • This action has four options:
      • UPDATE_ALWAYS_OFFER_POPUP
      • UPDATE_ALWAYS_TRANSLATE_LANGUAGE
      • UPDATE_NEVER_TRANSLATE_LANGUAGE
      • UPDATE_NEVER_TRANSLATE_SITE
  • Each operation eagerly sets the new setting on the browser store, then
    sends the request to the engine. If setting on the engine fails, then
    they will re-request the page settings in order to remain in-sync.

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=1877203

@ohall-m ohall-m added the work in progress Not ready to land yet. Work in progress (WIP). label Feb 7, 2024
@github-actions github-actions bot added 🕵️‍♀️ needs review PRs that need to be reviewed and removed work in progress Not ready to land yet. Work in progress (WIP). labels Feb 7, 2024
Copy link
Contributor

mergify bot commented Feb 7, 2024

This pull request has conflicts when rebasing. Could you fix it @ohall-m? 🙏

@ohall-m ohall-m added work in progress Not ready to land yet. Work in progress (WIP). and removed 🕵️‍♀️ needs review PRs that need to be reviewed labels Feb 7, 2024
@ohall-m ohall-m changed the title Bug 1877203 - Update Translations Page Settings WIP - Bug 1877203 - Update Translations Page Settings Feb 7, 2024
@github-actions github-actions bot added 🕵️‍♀️ needs review PRs that need to be reviewed and removed work in progress Not ready to land yet. Work in progress (WIP). labels Feb 7, 2024
@ohall-m ohall-m added work in progress Not ready to land yet. Work in progress (WIP). and removed 🕵️‍♀️ needs review PRs that need to be reviewed labels Feb 7, 2024
@ohall-m ohall-m changed the title WIP - Bug 1877203 - Update Translations Page Settings Bug 1877203 - Update Translations Page Settings Feb 12, 2024
@github-actions github-actions bot added 🕵️‍♀️ needs review PRs that need to be reviewed and removed work in progress Not ready to land yet. Work in progress (WIP). labels Feb 12, 2024
@ohall-m ohall-m added work in progress Not ready to land yet. Work in progress (WIP). and removed 🕵️‍♀️ needs review PRs that need to be reviewed labels Feb 12, 2024
@github-actions github-actions bot added 🕵️‍♀️ needs review PRs that need to be reviewed and removed work in progress Not ready to land yet. Work in progress (WIP). labels Feb 12, 2024
@ohall-m ohall-m added 🕵️‍♀️ needs review PRs that need to be reviewed and removed 🕵️‍♀️ needs review PRs that need to be reviewed labels Feb 12, 2024
@ohall-m ohall-m requested a review from calumozilla February 13, 2024 16:20
onError = errorCallback.capture(),
),
)
.thenAnswer { errorCallback.value.invoke(Throwable()) }
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove the indent or move it up one line for better readability?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, ty!

@github-actions github-actions bot removed the 🕵️‍♀️ needs review PRs that need to be reviewed label Feb 13, 2024
@github-actions github-actions bot added the approved PR that has been approved label Feb 13, 2024
@ohall-m ohall-m closed this Feb 13, 2024
@ohall-m ohall-m reopened this Feb 13, 2024
@ohall-m ohall-m added the 🛬 needs landing PRs that are ready to land label Feb 13, 2024
Copy link
Contributor

mergify bot commented Feb 13, 2024

This pull request has conflicts when rebasing. Could you fix it @ohall-m? 🙏

The goal of this bug is to have a way to update page settings.

It adds:
* A new action, `UpdatePageSettingAction`
  * This action has four options:
     * `UPDATE_ALWAYS_OFFER_POPUP`
     * `UPDATE_ALWAYS_TRANSLATE_LANGUAGE`
     * `UPDATE_NEVER_TRANSLATE_LANGUAGE`
     * `UPDATE_NEVER_TRANSLATE_SITE`
* Each operation eagerly sets the new setting on the browser store, then
sends the request to the engine. If setting on the engine fails, then
they will re-request the page settings in order to remain in-sync.
@mergify mergify bot merged commit 1a01b8c into mozilla-mobile:main Feb 13, 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