mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
* Rename the regular/normal queues to basic. * Move the partitioned type of queues to the end. * Add metrics for the queues. * Add actions for postponing and deleting a message. * Add queue actions for purging and deleting a queue. * Minor fixes for the empty stateof the queues page. * Add a modal to send a message to the queue. * Minor fixes. * Correct some button texts. * Refactor the metrics to switch to a rougher estimate method if it timeouts. * Fix type errors. * More minor fixes.
12 lines
677 B
TypeScript
12 lines
677 B
TypeScript
export const databaseQueuesKeys = {
|
|
create: () => ['queues', 'create'] as const,
|
|
delete: (name: string) => ['queues', name, 'delete'] as const,
|
|
purge: (name: string) => ['queues', name, 'purge'] as const,
|
|
getMessagesInfinite: (projectRef: string | undefined, queueName: string, options?: object) =>
|
|
['projects', projectRef, 'queues', queueName, options].filter(Boolean),
|
|
list: (projectRef: string | undefined) => ['projects', projectRef, 'queues'] as const,
|
|
// invalidating queues.list will also invalidate queues.metrics
|
|
metrics: (projectRef: string | undefined, queueName: string) =>
|
|
['projects', projectRef, 'queues', 'metrics', queueName] as const,
|
|
}
|