Repository navigation
fix(tasks): return 404 when reading the config of a queue the server does not have - #2280
Conversation
…does not have
GET task-queue/{queue_name}/config (warehouse and project route) now returns 404 QueueNotFound for a queue this server has not registered. It returned 200 with an empty config, while setting the config returned 400. A pre-rename queue name still resolves, and a registered queue without a stored config still returns an empty config.
|
No actionable comments were generated in the recent review. WalkthroughThe project and warehouse task-queue configuration routes now validate queue names before authorization and configuration lookup. Registered aliases resolve to canonical names. OpenAPI responses document relevant 404 errors, and integration tests cover unknown and renamed queues. ChangesTask Queue Configuration
Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
Reading a task queue's config (
GET .../task-queue/{queue_name}/config, warehouse and project route) now returns404 QueueNotFoundwhen this server has no queue of that name. It returned200with an empty config, while setting the config returned400 QueueNotFound. Clients can now tell whether a server offers a queue, for example one that an extension registers only when a setting is on.A queue name from before a rename still works, and a registered queue without a stored config still returns
200with an empty config.Release notes
404 QueueNotFound, not an empty config.Downstream follow-up
404entry.Summary by CodeRabbit
tabular_expirationqueue name resolve to the canonicalsoft_deletionqueue.