chore(admin): remove the heap snapshot endpoint (#2814)

This commit is contained in:
Hampus
2026-09-16 18:56:01 +02:00
committed by GitHub
parent 4ef9c4c65b
commit 34b6ecfbd2
13 changed files with 10 additions and 209 deletions
-1
View File
@@ -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);