-
Notifications
You must be signed in to change notification settings - Fork 4k
[Due for payment][$250] Remove call to getReportNameValuePairs() in canEditRoomVisibility() #64013
Copy link
Copy link
Closed
Closed
Bug
Copy link
Labels
BugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsApply this label when an issue is open to proposals by contributorsHelpDotApply this label if the issue relates to ExpensifyHelpApply this label if the issue relates to ExpensifyHelpReviewingHas a PR in reviewHas a PR in review
Description
Activity
Metadata
Metadata
Labels
BugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsApply this label when an issue is open to proposals by contributorsHelpDotApply this label if the issue relates to ExpensifyHelpApply this label if the issue relates to ExpensifyHelpReviewingHas a PR in reviewHas a PR in review
Type
Projects
- StatusShow more project fieldsDone
Coming from #59961
Problem
canEditRoomVisibility()is not a pure function because it references the report's NVPs from a global variable here. This is an anti-pattern that we are actively trying to unwind.Solution
Using test driven development:
canEditRoomVisibility()in its current form (or create one if it doesn't exist)canEditRoomVisibility()to be a pure function, addingisReportArchived = falseas a new parametercanEditRoomVisibility()Important
Please be sure that your proposal follows these best practices:
Onyx.connectisArchivedReport(nameValuePairs)unless absolutely necessaryuseReportIsArchived()is very useful for theseisReportArchivedhas already been passed or calculatedIssue Owner
Current Issue Owner: @Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @