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

remove device-specifc 'isEnabled' checks #523

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

shakyShane
Copy link
Collaborator

@shakyShane shakyShane commented Mar 7, 2024

Reviewer:
Asana:

Description

All platforms provide RuntimeConfiguration now - either async or via global config variable replacements, so we should remove all device-specific implementations and defer only to device.settings.enabled. This gives a single place check/debug.

Now the mental model matches on every platform:

    1. each platform provides RuntimeConfiguration via their transport (can be async or sync)
    1. Settings.enabled is then derived from it
    1. then device.settings.enabled is the single go-to source of truth

The only original call I left in place, is within the very first first stage of initialization, as that acts as a nice early return when possible

Steps to test

  • tested in the extension + macos + windows
    • I verified that remote config still takes effect
    • I verified that email signup still works correctly
    • I verified that all autofill functionality still works as expected

@shakyShane
Copy link
Collaborator Author

shakyShane commented Mar 7, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @shakyShane and the rest of your teammates on Graphite Graphite

@shakyShane shakyShane force-pushed the 03-07-remove_device-specifc_isEnabled_checks branch from 20899b0 to 3d7f66a Compare March 7, 2024 11:35
@shakyShane shakyShane changed the base branch from main to 03-07-marking_flaky_tests March 7, 2024 11:35
@shakyShane shakyShane force-pushed the 03-07-remove_device-specifc_isEnabled_checks branch from 3d7f66a to 7207a7b Compare March 7, 2024 13:35
@shakyShane shakyShane changed the base branch from 03-07-marking_flaky_tests to main March 7, 2024 13:35
@shakyShane shakyShane enabled auto-merge (squash) March 7, 2024 13:36
Copy link
Member

@GioSensation GioSensation left a comment

Choose a reason for hiding this comment

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

🚀 Great progress today, thank you, man!

@shakyShane shakyShane merged commit 417b6b9 into main Mar 7, 2024
1 check passed
@GioSensation GioSensation deleted the 03-07-remove_device-specifc_isEnabled_checks branch March 7, 2024 15:28
CDRussell pushed a commit to duckduckgo/Android that referenced this pull request Mar 18, 2024
Task/Issue URL:
https://app.asana.com/0/1206839421155384/1206839421155384
Autofill Release:
https://github.com/duckduckgo/duckduckgo-autofill/releases/tag/10.2.0


## Description
Updates Autofill to version
[10.2.0](https://github.com/duckduckgo/duckduckgo-autofill/releases/tag/10.2.0).

### Autofill 10.2.0 release notes
## What's Changed
* Remove unused Android UA check by @jonathanKingston in
duckduckgo/duckduckgo-autofill#494
* fix tracker radar kit reference by @brindy in
duckduckgo/duckduckgo-autofill#505
* Update password-related json files (2024-03-04) by @daxmobile in
duckduckgo/duckduckgo-autofill#518
* separate 'third party provider' feature by @shakyShane in
duckduckgo/duckduckgo-autofill#252
* marking flaky tests by @shakyShane in
duckduckgo/duckduckgo-autofill#524
* remove device-specifc 'isEnabled' checks by @shakyShane in
duckduckgo/duckduckgo-autofill#523
* fixing some flaky tests by @shakyShane in
duckduckgo/duckduckgo-autofill#526
* Fixes bugs for Lufthansa, Twitter, Rumble by @GioSensation in
duckduckgo/duckduckgo-autofill#529
* Update Github action dependency by @GioSensation in
duckduckgo/duckduckgo-autofill#531

## New Contributors
* @brindy made their first contribution in
duckduckgo/duckduckgo-autofill#505

**Full Changelog**:
duckduckgo/duckduckgo-autofill@10.1.0...10.2.0

## Steps to test
This release has been tested during autofill development. For smoke test
steps see [this
task](https://app.asana.com/0/1198964220583541/1200583647142330/f).

Co-authored-by: GioSensation <1828326+GioSensation@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.

2 participants