Page MenuHomePhabricator

Add hard stops on empty batch edit sets
ClosedPublic

Authored by epriestley on Jun 22 2015, 1:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 4:44 PM
Unknown Object (File)
Thu, Apr 11, 5:46 PM
Unknown Object (File)
Thu, Apr 11, 9:22 AM
Unknown Object (File)
Fri, Mar 29, 1:33 AM
Unknown Object (File)
Mon, Mar 25, 1:56 PM
Unknown Object (File)
Mon, Mar 25, 1:56 PM
Unknown Object (File)
Feb 6 2024, 6:21 PM
Unknown Object (File)
Dec 19 2023, 1:10 AM

Details

Summary

Ref T8637. If a user tries to batch edit a list of tasks which can't be edited, we fall through to withIDs(array()), which can affect everything.

Explicitly stop batch editing if we don't have valid IDs or valid tasks.

The UI sort-of warns you that something is wrong, but this is ultimately a pretty severe UX issue. I'll fix the underlying Query in the next diff.

Test Plan

Tried to batch edit a list of tasks I didn't have permission to edit.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Add hard stops on empty batch edit sets.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 22 2015, 5:28 PM
This revision was automatically updated to reflect the committed changes.