1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/src/applications/config
epriestley d37153f003 Make bin/storage upgrade and bin/storage adjust emit detailed messages if the user has no access to databases
Summary:
Ref T10195. Distinguish between "database does not exist" and "database exists, you just don't have permission to access it".

We can't easily get this information out of INFORMATION_SCHEMA but can just `SHOW TABLES IN ...` every database that looks like it's missing and then look at the error code.

Test Plan:
  - Created a user `limited` with limited access.
  - Ran `bin/storage adjust`.
  - Got hopefully more helpful messages about access problems, instead of "Missing" errors.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10195

Differential Revision: https://secure.phabricator.com/D15079
2016-01-21 13:06:00 -08:00
..
application Add dialog to purge opcode/data caches 2015-09-10 14:19:02 -07:00
check Swap S3 to first-party client 2016-01-10 07:55:27 -08:00
controller Drop "-pro" suffix and "editpro" URIs for EditEngine in Maniphest 2015-12-08 17:56:59 -08:00
custom Allow installs to customize project icons 2016-01-08 14:01:53 -08:00
editor Allow bin/config to affect database configuration and migrate between local and database configuration 2014-10-08 16:15:05 -07:00
exception Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
issue Extend from Phobject 2015-06-15 18:02:27 +10:00
json Improve UI formatting of some configuration values 2015-12-05 09:58:47 -08:00
management Improve bin/config set errors for complex values 2015-09-08 08:49:33 -07:00
module Fix Versions page 2015-12-05 22:34:03 +00:00
option Remove header gradients for flat colors 2016-01-19 07:17:02 -08:00
phid Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
query Make buildWhereClause() a method of AphrontCursorPagedPolicyAwareQuery 2015-04-20 10:06:09 -07:00
response Clean up a text string 2015-02-13 07:03:09 -08:00
schema Make bin/storage upgrade and bin/storage adjust emit detailed messages if the user has no access to databases 2016-01-21 13:06:00 -08:00
storage Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
view Swap S3 to first-party client 2016-01-10 07:55:27 -08:00