Let a super admin read the database from the app
A new super admin settings page, /admin/settings/database, lists every table with its record count and size, and one page of the open table's records newest key first. Values are cut inside SQL (400 characters, with a flag saying so) and a record opens whole in a modal, so a table of long texts reads without shipping it all. A search matches every column's text, word by word or as a phrase, which is the one thing that also works on a virtual table. Nothing in it writes: the catalog, the records and the single record are all reads, GET only.
This commit is contained in:
@@ -451,6 +451,20 @@ export const AppData = {
|
||||
*/
|
||||
StorageBrowserPageSize: 200,
|
||||
StorageBrowserReadMaxBytes: 50 * 1024 * 1024,
|
||||
/**
|
||||
* The database browser at `/admin/settings/database`: how many records
|
||||
* of a table one page shows, how much of a value a cell carries before
|
||||
* the rest waits behind its record's modal, and the most of one value
|
||||
* that modal shows (a whole media row or job checkpoint is not meant
|
||||
* to be rendered).
|
||||
*/
|
||||
DatabaseBrowserPageSize: 50,
|
||||
DatabaseBrowserCellMaxChars: 400,
|
||||
DatabaseBrowserValueMaxChars: 20000,
|
||||
/**
|
||||
* The most words one search matches in the database browser.
|
||||
*/
|
||||
DatabaseBrowserMaxSearchWords: 8,
|
||||
/**
|
||||
* The most a bot copies off a computer into its own files in one
|
||||
* call, so a folder of raw evidence can't fill the data volume.
|
||||
|
||||
Reference in New Issue
Block a user