Move BookmarkNode extension functions to BookmarkNode class in AC concept-storage module
Categories
(Firefox for Android :: Bookmarks, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox116 | --- | verified |
People
(Reporter: rsainani, Assigned: rsainani)
Details
Attachments
(1 file)
Currently there are two "extension" functions for BookmarkNode in fenix. BookmarkNode is a AC class and we should add the functionality there.
- minus is an extension function
- getBookmarkCount is a private function in
HomeActivity. This can be simplified by moving both toBookmarkNodeclass.
Also add tests for getBookmarkCount.
This will also reduce the size of HomeActivity, which should ideally only contain the glue code.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Comment 2•2 years ago
|
||
Authored by https://github.com/rahulsainani
https://github.com/mozilla-mobile/firefox-android/commit/690f396f2236c49fd7f67614f8bec637b74c9078
[main] Bug 1836447 - Make extension functions member functions of BookmarkNode
| Assignee | ||
Comment 3•2 years ago
|
||
Note for QA, one way to test this is to confirm that metrics.mobile_bookmarks_count and metrics.desktop_bookmarks_count in the metrics ping are correct.
Comment 4•2 years ago
|
||
Verified as fixed on the latest Fenix Nightly 116.0a1 from 6/8 with Google Pixel 6 (Android 13).
The metrics pings are correct.
Glean dashboard
Updated•2 years ago
|
Description
•