Closed Bug 1968789 Opened 3 months ago Closed 2 months ago

Refactor NimbusBranchesController to decouple it from Android dependencies

Categories

(Firefox for Android :: Tooling, task)

All
Android
task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: mcarare, Assigned: mcarare)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group6])

Attachments

(1 file)

NimbusBranchesController current design encompasses responsibilities beyond the scope of its NimbusBranchesAdapterDelegate interface, creating tight coupling with framework components and application services that are difficult to isolate and mock in a unit testing environment. This over-extension of responsibilities hinders effective testing and makes the controller less maintainable and harder to reason about.

We should refactor it and clearly split responsabilities with it's instantiator, NimbusBranchesFragment

This commit refactors NimbusBranchesController to remove its direct dependency on Android Context and NavController
as well as Fenix specific components.

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:mcarare, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(mcarare)
Flags: needinfo?(avirvara)
Flags: needinfo?(mcarare)
Flags: needinfo?(avirvara)
Pushed by mcarare@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/33f0278f1e2a https://hg.mozilla.org/integration/autoland/rev/4321d6cbe6be Refactor `NimbusBranchesController` to decouple it from framework dependencies. r=android-reviewers,avirvara,jonalmeida
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: