Dashboards: Edit Chart Panel: Add proper chart key validation
Summary:
Add proper validation by actually querying for existing chart keys.
This replaces my quick and dirty code from D26378.
Closes T16281
Test Plan:
* Go to http://phorge.localhost/dashboard/panel/edit/?panelType=chart
* Enter rubbish into the "Chart" field or leave it empty and try to create that panel, get an error instead of creating a panel
* Enter a random 12 character chart key into the field, now get an error
* Enter an existing 12 character chart key into the field taken from `SELECT chartKey FROM phabricator_fact.fact_chart;`, succeed
Reviewers: O1 Blessed Committers, mainframe98
Reviewed By: O1 Blessed Committers, mainframe98
Subscribers: mainframe98, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno
Maniphest Tasks: T16281
Differential Revision: https://we.phorge.it/D26396