mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
chore(admin): remove the heap snapshot endpoint (#2814)
This commit is contained in:
@@ -80,7 +80,6 @@ export const AdminACLs = {
|
||||
REPORT_VIEW: 'report:view',
|
||||
REPORT_VIEW_REPORTER_PII: 'report:view:reporter_pii',
|
||||
SYSTEM_DM_SEND: 'system_dm:send',
|
||||
SYSTEM_HEAP_SNAPSHOT: 'system:heap_snapshot',
|
||||
USER_CANCEL_BULK_MESSAGE_DELETION: 'user:cancel:bulk_message_deletion',
|
||||
USER_DELETE: 'user:delete',
|
||||
USER_DISABLE_SUSPICIOUS: 'user:disable:suspicious',
|
||||
|
||||
@@ -54,12 +54,6 @@ describe('OpenAPI generation from API controllers', () => {
|
||||
expect(operation.responses).toHaveProperty('401');
|
||||
});
|
||||
|
||||
it('publishes the real heap-snapshot media type', () => {
|
||||
expect(document.paths['/admin/system/heap-snapshots'].post.responses['200'].content).toEqual({
|
||||
'application/octet-stream': {schema: {$ref: '#/components/schemas/HeapSnapshotResponse'}},
|
||||
});
|
||||
});
|
||||
|
||||
it('documents full and partial harvest archive downloads as binary ZIP responses', () => {
|
||||
const responses = document.paths['/harvest-downloads/{harvestId}'].get.responses;
|
||||
for (const status of ['200', '206']) {
|
||||
|
||||
@@ -1489,6 +1489,5 @@ export const LimitConfigGetResponse = z.object({
|
||||
export const DeleteApiKeyResponse = z.object({
|
||||
success: z.literal(true),
|
||||
});
|
||||
export const HeapSnapshotResponse = z.file().describe('V8 heap snapshot file');
|
||||
|
||||
export const AdminApiKeyListResponse = z.array(ListAdminApiKeyResponse);
|
||||
|
||||
Reference in New Issue
Block a user