Page MenuHomePhabricator

Fix a warning in BoardLayoutEngine when no objects are being updated
ClosedPublic

Authored by epriestley on Aug 7 2019, 4:20 PM.
Tags
None
Referenced Files
F21339257: D20701.id49365.diff
Fri, Jul 10, 5:41 PM
Unknown Object (File)
Tue, Jun 30, 9:41 AM
Unknown Object (File)
Sat, Jun 27, 7:10 AM
Unknown Object (File)
Tue, Jun 23, 2:09 AM
Unknown Object (File)
Apr 1 2026, 4:47 AM
Unknown Object (File)
Apr 1 2026, 4:42 AM
Unknown Object (File)
Feb 19 2026, 1:40 PM
Unknown Object (File)
Feb 15 2026, 8:18 PM
Subscribers
None

Details

Summary

Fixes T13368. Some workflows (like "Move tasks to...") execute board layout without objects to update. In these cases, we can hit a warning because objectPHIDs is not initialized to array().

Test Plan

Went through the "Move tasks to..." workflow on a workboard, no longer saw a warning when trying to iterate over an empty objectPHIDs list.

Diff Detail

Repository
rP Phabricator
Branch
column4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23230
Build 31912: Run Core Tests
Build 31911: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Aug 8 2019, 5:18 PM
This revision was automatically updated to reflect the committed changes.