Page MenuHomePhabricator

Add better error checking to 'Add to Dashboard'
ClosedPublic

Authored by chad on Mar 20 2017, 9:47 PM.
Tags
None
Referenced Files
F15488383: D17520.diff
Thu, Apr 10, 9:45 PM
F15483903: D17520.diff
Wed, Apr 9, 3:16 PM
F15466224: D17520.id42131.diff
Thu, Apr 3, 3:08 AM
F15464009: D17520.id42132.diff
Wed, Apr 2, 5:25 AM
F15461157: D17520.id.diff
Tue, Apr 1, 5:47 AM
F15460370: D17520.diff
Mon, Mar 31, 10:23 PM
F15448022: D17520.id.diff
Fri, Mar 28, 2:55 AM
F15419819: D17520.id.diff
Fri, Mar 21, 9:10 AM
Subscribers

Details

Summary

Ref T5307. Adds a better query check query, sets required for the name, adds the correct URI for cancelling.

Test Plan

Test a form without a name, fake a query string, test cancel button.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added inline comments.
src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php
44

who's a good query

is it you? are you a good query??

pet pet pat yes you're a good query

This revision is now accepted and ready to land.Mar 20 2017, 9:52 PM

I'm not a fan of adding the Dashboard ID to select, but maybe I could just switch to typeahead if you have more than n dashboards. I just want to solve a real problem not a test data problem. Will see what happens when I use it on this install. :)

This revision was automatically updated to reflect the committed changes.
src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php
32

Oh, this should be $v_query.