Closed Bug 2047849 Opened 21 days ago Closed 19 days ago

Onboarding clean up and refactor

Categories

(Firefox for Android :: Onboarding, enhancement)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox152 --- fixed
firefox153 --- fixed
firefox154 --- fixed

People

(Reporter: towhite, Assigned: towhite)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group2])

Attachments

(15 files, 1 obsolete file)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Summary

This bug tracks a set of clean-up and refactoring tasks in the onboarding code:

  • Remove the shouldShowElevation parameter and use the existing isSmall flag for gating logic instead.
  • Rename the func parameter in toPageUiData to jexlEvaluator for improved clarity.
  • Reorder toPageUiData parameters to group JEXL-related parameters together.
  • Hoist the manufacturer check out of toPageUiData, reducing complexity and allowing removal of the LongParameterList suppression.
  • Reorder private functions in OnboardingMapper to follow call order and improve readability.
Summary: [meta] Onboarding clean up and refactor → Onboarding clean up and refactor
Attachment #9597784 - Attachment description: WIP: Bug 2047849 - Part 1: Remove the shouldShowElevation parameter and use the existing isSmall flag for gating logic instead. → Bug 2047849 - Part 1: Remove the shouldShowElevation parameter and use the existing isSmall flag for gating logic instead.
Attachment #9597785 - Attachment description: WIP: Bug 2047849 - Part 2: Rename the func parameter in toPageUiData to jexlEvaluator for improved clarity. → Bug 2047849 - Part 2: Rename the func parameter in toPageUiData to jexlEvaluator for improved clarity.
Attachment #9597786 - Attachment description: WIP: Bug 2047849 - Part 3: Reorder toPageUiData parameters to group JEXL-related parameters together. → Bug 2047849 - Part 3: Reorder toPageUiData parameters to group JEXL-related parameters together.
Attachment #9597787 - Attachment description: WIP: Bug 2047849 - Part 4: Hoist the manufacturer check out of toPageUiData, reducing complexity and allowing removal of the LongParameterList suppression. → Bug 2047849 - Part 4: Hoist the manufacturer check out of toPageUiData, reducing complexity and allowing removal of the LongParameterList suppression.
Attachment #9597788 - Attachment description: WIP: Bug 2047849 - Part 5: Reorder private functions in OnboardingMapper to follow call order and improve readability. → Bug 2047849 - Part 5: Reorder private functions in OnboardingMapper to follow call order and improve readability.
Attachment #9597781 - Attachment is obsolete: true
Blocks: 2047974
Pushed by icedicedcoffee@proton.me: https://github.com/mozilla-firefox/firefox/commit/ec7a129cc8fd https://hg.mozilla.org/integration/autoland/rev/640f9fea8c59 Part 1: Remove the shouldShowElevation parameter and use the existing isSmall flag for gating logic instead. r=android-reviewers,marcin https://github.com/mozilla-firefox/firefox/commit/653f0105daf6 https://hg.mozilla.org/integration/autoland/rev/1fd1bb50cbc8 Part 2: Rename the func parameter in toPageUiData to jexlEvaluator for improved clarity. r=android-reviewers,alastun,marcin https://github.com/mozilla-firefox/firefox/commit/e154219a0916 https://hg.mozilla.org/integration/autoland/rev/2df45d84bb96 Part 3: Reorder toPageUiData parameters to group JEXL-related parameters together. r=android-reviewers,marcin,alastun https://github.com/mozilla-firefox/firefox/commit/1abfd09391b1 https://hg.mozilla.org/integration/autoland/rev/d00648aa23f5 Part 4: Hoist the manufacturer check out of toPageUiData, reducing complexity and allowing removal of the LongParameterList suppression. r=android-reviewers,marcin,alastun https://github.com/mozilla-firefox/firefox/commit/be5381b80af5 https://hg.mozilla.org/integration/autoland/rev/6b6907f350cb Part 5: Reorder private functions in OnboardingMapper to follow call order and improve readability. r=android-reviewers,marcin,alastun
Attachment #9598247 - Flags: approval-mozilla-beta?
Attachment #9598248 - Flags: approval-mozilla-beta?
Attachment #9598249 - Flags: approval-mozilla-beta?
Attachment #9598250 - Flags: approval-mozilla-beta?
Attachment #9598251 - Flags: approval-mozilla-beta?
Attachment #9598268 - Flags: approval-mozilla-release?
Attachment #9598269 - Flags: approval-mozilla-release?
Attachment #9598270 - Flags: approval-mozilla-release?
Attachment #9598271 - Flags: approval-mozilla-release?
Attachment #9598272 - Flags: approval-mozilla-release?
Attachment #9598247 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9598248 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9598249 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9598250 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9598251 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9598268 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9598269 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9598270 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9598271 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9598272 - Flags: approval-mozilla-release? → approval-mozilla-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: