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

Work in progress: Complete browser-state migration #10212

Merged
merged 2 commits into from
Jun 7, 2021
Merged

Work in progress: Complete browser-state migration #10212

merged 2 commits into from
Jun 7, 2021

Conversation

pocmo
Copy link
Contributor

@pocmo pocmo commented May 4, 2021

This is a work in progress PR / branch completing the browser-state migration. It's not near ready yet, but the plan is to update over the next days/weeks and finally complete it and create the complementing Fenix / Focus / RB branches.

@pocmo pocmo added work in progress Not ready to land yet. Work in progress (WIP). do not land PRs that requires coordination before landing labels May 4, 2021
@codecov
Copy link

codecov bot commented May 4, 2021

Codecov Report

Merging #10212 (353f57b) into master (b47ee01) will increase coverage by 1.36%.
The diff coverage is 79.86%.

❗ Current head 353f57b differs from pull request most recent head 219513e. Consider uploading reports for the commit 219513e to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##             master   #10212      +/-   ##
============================================
+ Coverage     74.11%   75.48%   +1.36%     
+ Complexity     6318     3947    -2371     
============================================
  Files           842      524     -318     
  Lines         32022    19914   -12108     
  Branches       5335     3307    -2028     
============================================
- Hits          23734    15032    -8702     
+ Misses         5557     3144    -2413     
+ Partials       2731     1738     -993     
Impacted Files Coverage Δ
...browser/state/engine/middleware/CrashMiddleware.kt 100.00% <ø> (ø)
...r/state/engine/middleware/TabsRemovedMiddleware.kt 70.00% <ø> (ø)
...er/state/engine/middleware/TrimMemoryMiddleware.kt 90.47% <ø> (ø)
...ents/browser/state/state/recover/RecoverableTab.kt 0.00% <0.00%> (ø)
...re/pwa/intent/TrustedWebActivityIntentProcessor.kt 50.00% <ø> (ø)
...onents/feature/pwa/intent/WebAppIntentProcessor.kt 76.19% <ø> (-1.09%) ⬇️
...illa/components/feature/tabs/CustomTabsUseCases.kt 23.25% <22.85%> (-16.75%) ⬇️
...ponents/feature/readerview/ReaderViewMiddleware.kt 86.04% <50.00%> (ø)
...engine/middleware/CreateEngineSessionMiddleware.kt 71.42% <71.42%> (ø)
.../feature/session/middleware/undo/UndoMiddleware.kt 69.56% <75.00%> (+0.17%) ⬆️
... and 371 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 f7f5f23...219513e. Read the comment docs.

* Issue #10197: Move EngineObserver and EngineMiddleware to browser-state and refactor SessionManager dependency away.
* Issue #3532: Migrate TabsUseCases to use BrowserStore exclusively.
* Issue #10209: Migrate SessionUseCases to use BrowserStore exclusively.
* Issue #3532, #10209: Migrate components to use new UseCase APIs.
* Issue #10209: Migrate UndoMiddleware to use BrowserStore.
* Issue #3532: Migrate CustomTabsUseCases to use BrowserStore.
* Issue #10211: Migrate sample-browser to not depend on browser-session.
* Issue #10209: Remove browser-session dependency.
* Issue #3532: feature-tabs: Remove browser-session dependency.
* Issue #10209: Fix UndoMiddlewareTest
* Issue #10209: Refactor SessionUseCasesTest to not use SessionManager.
* Issue #10209: Fix SessionFeatureTest.
* Refactor support-migration tests to not use SessionManager.
* Fix tests in feature-contextmenu.
* Refactor feature-recentlyclosed tests to not use SessionManager
* Refactor browser-session-storage tests to not use SessionManager
* Refactor feature-intent tests to not use SessionManager
* Refactor feature-tabs tests to not use SessionManager pt. 1
* Refactor feature-customtabs tests to not depend on browser-session.
* Make sure initial load url flags are correct
* Refactor feature-tabs tests to not use SessionManager pt. 2
* Refactor browser-state tests to not depend on browser-session.
* SearchUseCasesTest: Use addTab use case instead of addPrivateTab.
* Samples Browser: Remove unused drawable.
* Fix feature-pwa tests
* Remove browser-session.
* Make sure engine session is linked for window requests
* Make sure engine session is linked when provided with tab
* Make sure engine session is linked when provided with tab pt. 2
* Prevent engine session from being created multiple times
* Prevent engine session from being created multiple times pt. 2
* Prevent engine session from being created multiple times pt. 3
* Part 4: REFACTOR ALL THE THINGS
* Update tests.
* Add additional test for multiple CreateEngineSessionAction dispatching.
* Refactor, some docs and tests
* Fix CustomTabs tests...
@pocmo pocmo removed do not land PRs that requires coordination before landing work in progress Not ready to land yet. Work in progress (WIP). labels Jun 7, 2021
@pocmo pocmo marked this pull request as ready for review June 7, 2021 15:11
@pocmo pocmo requested review from Amejia481, csadilek, grigoryk, jonalmeida and a team as code owners June 7, 2021 15:11
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.

🎉

@pocmo pocmo added the 🛬 needs landing PRs that are ready to land label Jun 7, 2021
@mergify mergify bot merged commit dd55e0f into master Jun 7, 2021
@bors bors bot deleted the state branch June 7, 2021 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🛬 needs landing PRs that are ready to land
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants