Page MenuHomePhabricator

Don't allow duplicate panels on dashboards
ClosedPublic

Authored by chad on Feb 14 2017, 4:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 9:02 AM
Unknown Object (File)
Mon, Dec 16, 6:41 AM
Unknown Object (File)
Sat, Dec 14, 1:59 PM
Unknown Object (File)
Wed, Dec 11, 10:38 AM
Unknown Object (File)
Fri, Dec 6, 3:25 PM
Unknown Object (File)
Sat, Nov 30, 6:44 PM
Unknown Object (File)
Mon, Nov 25, 6:45 AM
Unknown Object (File)
Sun, Nov 24, 10:14 AM
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.