Page MenuHomePhabricator

Don't allow duplicate panels on dashboards
ClosedPublic

Authored by chad on Feb 14 2017, 4:34 AM.
Tags
None
Referenced Files
F15460609: D17351.id.diff
Tue, Apr 1, 12:25 AM
F15451574: D17351.id41733.diff
Fri, Mar 28, 10:47 PM
F15450687: D17351.id41733.diff
Fri, Mar 28, 5:06 PM
F15444484: D17351.id41733.diff
Thu, Mar 27, 9:48 AM
F15444483: D17351.id41727.diff
Thu, Mar 27, 9:48 AM
F15444452: D17351.diff
Thu, Mar 27, 9:41 AM
F15438729: D17351.id41733.diff
Wed, Mar 26, 3:10 AM
F15417700: D17351.id41727.diff
Thu, Mar 20, 5:55 PM
Subscribers

Details

Summary

Fixes T10145. I went with "don't add two panels", since panels are easy to create, I expect this to be a reasonable limit until we have better use cases.

Test Plan

Try to add the same panel twice, get error. Add panel normally fine, move panels fine, edit panels fine.

Diff Detail

Repository
rP Phabricator
Branch
dupe-panels (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15625
Build 20622: Run Core Tests
Build 20621: arc lint + arc unit

Event Timeline

Cool. I think this is a good approach, at least for the foreseeable future: the use cases right now definitely feel pretty weak to me too.

This revision is now accepted and ready to land.Feb 14 2017, 12:02 PM
This revision was automatically updated to reflect the committed changes.