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
F18849384: D17520.id42132.diff
Oct 30 2025, 9:31 AM
F18812439: D17520.diff
Oct 20 2025, 9:18 AM
F18809581: D17520.id42132.diff
Oct 19 2025, 3:13 PM
F18755292: D17520.id.diff
Oct 5 2025, 4:47 AM
F18753698: D17520.diff
Oct 4 2025, 8:00 PM
F18728108: D17520.id.diff
Sep 30 2025, 9:06 AM
F18724362: D17520.diff
Sep 30 2025, 3:35 AM
F18701196: D17520.id42131.diff
Sep 27 2025, 5:51 PM
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
Branch
tarnation (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16046
Build 21282: Run Core Tests
Build 21281: arc lint + arc unit

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.