Skip to content

Refactor getReportName to prepare for formula computation #72613

@neil-marcellini

Description

@neil-marcellini

Problem

The getReportName function is messy and will be tricky to refactor to include custom report and formula computation using Onyx derived values.

Solution

Systematically refactor it to separate responsibilities.

  1. The logic of calculation report’s name will be extracted to new method computeReportName
  2. reportAttributes derived value will be responsible for computation of report name for every report in Onyx using compureReportName
  3. getReportName will be simplified only to returning reportName from derived value
Issue OwnerCurrent Issue Owner: @laurenreidexpensify

Metadata

Metadata

Labels

BZ Test Jan 26Lauren R running tests on removing BZ from certain parts in issue flowsBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ReviewingHas a PR in review

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions