Closed Bug 1836447 Opened 2 years ago Closed 2 years ago

Move BookmarkNode extension functions to BookmarkNode class in AC concept-storage module

Categories

(Firefox for Android :: Bookmarks, task, P3)

All
Android
task

Tracking

()

VERIFIED FIXED
116 Branch
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.

  1. minus is an extension function
  2. getBookmarkCount is a private function in HomeActivity. This can be simplified by moving both to BookmarkNode class.

Also add tests for getBookmarkCount.

This will also reduce the size of HomeActivity, which should ideally only contain the glue code.

Priority: -- → P3
Assignee: nobody → rsainani
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch

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.

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

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: