Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Closes #5715: Login storage refactor #6128

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

grigoryk
Copy link
Contributor


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

  • Milestone: Make sure issues closed by this pull request are added to the milestone of the version currently in development.
  • Breaking Changes: If this is a breaking change, please push a draft PR on Reference Browser to address the breaking issues.

@grigoryk grigoryk added the do not land PRs that requires coordination before landing label Feb 28, 2020
@codecov
Copy link

codecov bot commented Feb 28, 2020

Codecov Report

Merging #6128 into master will increase coverage by 0.18%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #6128      +/-   ##
============================================
+ Coverage     78.25%   78.43%   +0.18%     
+ Complexity     4580     4414     -166     
============================================
  Files           606      573      -33     
  Lines         21973    21193     -780     
  Branches       3199     3074     -125     
============================================
- Hits          17194    16622     -572     
+ Misses         3462     3323     -139     
+ Partials       1317     1248      -69     
Impacted Files Coverage Δ Complexity Δ
...onents/support/sync/telemetry/BaseGleanSyncPing.kt 100.00% <0.00%> (ø) 11.00% <0.00%> (ø%) ⬆️
...ponents/service/fxa/sync/WorkManagerSyncManager.kt 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%) ⬆️
...eature/customtabs/feature/OriginVerifierFeature.kt
...re/pwa/intent/TrustedWebActivityIntentProcessor.kt
...nents/feature/customtabs/store/CustomTabsAction.kt
...la/components/feature/pwa/WebAppShortcutManager.kt
...ture/customtabs/verify/DigitalAssetLinksHandler.kt
...mozilla/components/feature/search/SearchFeature.kt
...feature/customtabs/store/CustomTabsServiceState.kt
...s/feature/pwa/feature/WebAppSiteControlsFeature.kt
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14a6a7e...aa9a36a. Read the comment docs.

@grigoryk grigoryk changed the title WIP Login storage refactor WIP Closes #5715: Login storage refactor Feb 29, 2020
@liuche
Copy link
Contributor

liuche commented Mar 2, 2020

@csadilek when this lands, can you make an AC dot release at the same time? We'll need one for 4.0 anyway.

Copy link
Contributor

@csadilek csadilek left a comment

Choose a reason for hiding this comment

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

One synchronized missing (see inline). Looks ✨ otherwise!

@grigoryk grigoryk marked this pull request as ready for review March 2, 2020 22:11
@grigoryk grigoryk force-pushed the issue5715LoginStorage branch 2 times, most recently from fe7abdb to bdf9f31 Compare March 3, 2020 11:21
This refactor changes how (most) consumers are expected to interact with the logins storage.
Instead of "locking"/"unlocking" the store whenever its needed, a connection to a storage
layer is now cached on first access and re-used for subsequent operations.

Various components relying on logins storage have been simplified.
grigoryk pushed a commit to grigoryk/fenix that referenced this pull request Mar 3, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
@grigoryk grigoryk changed the title WIP Closes #5715: Login storage refactor Closes #5715: Login storage refactor Mar 3, 2020
@grigoryk
Copy link
Contributor Author

grigoryk commented Mar 3, 2020

bors r=csadilek

@grigoryk grigoryk removed the do not land PRs that requires coordination before landing label Mar 3, 2020
@bors
Copy link

bors bot commented Mar 3, 2020

Build succeeded

  • complete-push

@bors bors bot merged commit 9257f15 into mozilla-mobile:master Mar 3, 2020
@grigoryk grigoryk deleted the issue5715LoginStorage branch March 3, 2020 13:19
pocmo pushed a commit to grigoryk/fenix that referenced this pull request Mar 3, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
pocmo pushed a commit to grigoryk/fenix that referenced this pull request Mar 3, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
pocmo pushed a commit to grigoryk/fenix that referenced this pull request Mar 3, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
pocmo pushed a commit to pocmo/fenix that referenced this pull request Mar 3, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
pocmo pushed a commit to mozilla-mobile/fenix that referenced this pull request Mar 3, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
liuche pushed a commit to liuche/fenix that referenced this pull request Mar 3, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
liuche pushed a commit to mozilla-mobile/fenix that referenced this pull request Mar 3, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
gmierz pushed a commit to gmierz/fenix that referenced this pull request Mar 5, 2020
The a-c side of this work is in mozilla-mobile/android-components#6128

This switches Fenix to use `SyncableLoginsStorage`, which caches a connection internally
on first access, and doesn't expose any lock/unlock APIs at the public boundary.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants