[PR #343] [CLOSED] Add feature publisher event #694

Closed
opened 2026-03-07 22:16:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynqmon/pull/343
Author: @IsaacDSC
Created: 6/21/2025
Status: Closed

Base: masterHead: isaacdsc/feat-publisher


📝 Commits (5)

  • e8fcdcd feat: add API endpoint for publishing events and update documentation
  • b2b8b92 feat: add EventPublisher component for publishing events with JSON payload
  • b469b7e fix: rm unnecessary package-lock.json
  • 5e0b63c feat: update API endpoint documentation and improve error messages in event publishing
  • 5f96222 fix: Improve error handling in EventPublisher component

📊 Changes

25 files changed (+7118 additions, -8378 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 README.md (+37 -0)
📝 cmd/asynqmon/main.go (+1 -0)
📝 handler.go (+9 -3)
publish_handlers.go (+73 -0)
publish_handlers_test.go (+71 -0)
📝 ui/build/asset-manifest.json (+5 -12)
📝 ui/build/index.html (+1 -1)
ui/build/static/js/2.83624df2.chunk.js (+0 -3)
ui/build/static/js/2.83624df2.chunk.js.map (+0 -1)
ui/build/static/js/main.5adda2da.chunk.js (+0 -2)
ui/build/static/js/main.5adda2da.chunk.js.map (+0 -1)
ui/build/static/js/main.a69cd3cd.js (+3 -0)
📝 ui/build/static/js/main.a69cd3cd.js.LICENSE.txt (+0 -38)
ui/build/static/js/main.a69cd3cd.js.map (+1 -0)
ui/build/static/js/runtime-main.9fea6c1a.js (+0 -2)
ui/build/static/js/runtime-main.9fea6c1a.js.map (+0 -1)
📝 ui/build/static/media/logo-color.c2b0c1f393a71462ee60d37c36104ae6.svg (+0 -0)
📝 ui/build/static/media/logo-white.3fa2ac5555c613ec4b23a244f14113de.svg (+0 -0)
📝 ui/package.json (+1 -0)

...and 5 more files

📄 Description

This pull request introduces a new feature for publishing events to Asynq queues via a new API endpoint, along with supporting changes in the backend and frontend. It also includes updates to the UI assets and dependencies. The most important changes are grouped below by theme.

Backend Changes:

  • Added a new API endpoint POST /api/queues/{qname}/publish for publishing events to Asynq, including request and response handling in publish_handlers.go.
  • Updated the HTTP handler in handler.go to include an Asynq client and route for the new endpoint.
  • Added unit tests for the event publishing handler in publish_handlers_test.go.

Frontend Changes:

  • Integrated the notistack library for snackbars in the UI and wrapped the App component with SnackbarProvider in App.tsx.
  • Added API methods for publishing events to the frontend in api.ts.

Screenshot

image
image

Dependency Updates:

  • Added notistack library to ui/package.json for enhanced notification handling.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hibiken/asynqmon/pull/343 **Author:** [@IsaacDSC](https://github.com/IsaacDSC) **Created:** 6/21/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `isaacdsc/feat-publisher` --- ### 📝 Commits (5) - [`e8fcdcd`](https://github.com/hibiken/asynqmon/commit/e8fcdcd6ef902d62717e275cbf69b2082a2785b5) feat: add API endpoint for publishing events and update documentation - [`b2b8b92`](https://github.com/hibiken/asynqmon/commit/b2b8b92935f46db90a636fc4e2007c5d6eed001c) feat: add EventPublisher component for publishing events with JSON payload - [`b469b7e`](https://github.com/hibiken/asynqmon/commit/b469b7e1c9044172a1111c346c52fbbb4144d910) fix: rm unnecessary package-lock.json - [`5e0b63c`](https://github.com/hibiken/asynqmon/commit/5e0b63caaaa0c73684c10d76a0c704df9ad3f8ef) feat: update API endpoint documentation and improve error messages in event publishing - [`5f96222`](https://github.com/hibiken/asynqmon/commit/5f96222b3adb65143297851ff67e15073689bdb2) fix: Improve error handling in EventPublisher component ### 📊 Changes **25 files changed** (+7118 additions, -8378 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `README.md` (+37 -0) 📝 `cmd/asynqmon/main.go` (+1 -0) 📝 `handler.go` (+9 -3) ➕ `publish_handlers.go` (+73 -0) ➕ `publish_handlers_test.go` (+71 -0) 📝 `ui/build/asset-manifest.json` (+5 -12) 📝 `ui/build/index.html` (+1 -1) ➖ `ui/build/static/js/2.83624df2.chunk.js` (+0 -3) ➖ `ui/build/static/js/2.83624df2.chunk.js.map` (+0 -1) ➖ `ui/build/static/js/main.5adda2da.chunk.js` (+0 -2) ➖ `ui/build/static/js/main.5adda2da.chunk.js.map` (+0 -1) ➕ `ui/build/static/js/main.a69cd3cd.js` (+3 -0) 📝 `ui/build/static/js/main.a69cd3cd.js.LICENSE.txt` (+0 -38) ➕ `ui/build/static/js/main.a69cd3cd.js.map` (+1 -0) ➖ `ui/build/static/js/runtime-main.9fea6c1a.js` (+0 -2) ➖ `ui/build/static/js/runtime-main.9fea6c1a.js.map` (+0 -1) 📝 `ui/build/static/media/logo-color.c2b0c1f393a71462ee60d37c36104ae6.svg` (+0 -0) 📝 `ui/build/static/media/logo-white.3fa2ac5555c613ec4b23a244f14113de.svg` (+0 -0) 📝 `ui/package.json` (+1 -0) _...and 5 more files_ </details> ### 📄 Description This pull request introduces a new feature for publishing events to Asynq queues via a new API endpoint, along with supporting changes in the backend and frontend. It also includes updates to the UI assets and dependencies. The most important changes are grouped below by theme. ### Backend Changes: * Added a new API endpoint `POST /api/queues/{qname}/publish` for publishing events to Asynq, including request and response handling in `publish_handlers.go`. * Updated the HTTP handler in `handler.go` to include an Asynq client and route for the new endpoint. * Added unit tests for the event publishing handler in `publish_handlers_test.go`. ### Frontend Changes: * Integrated the `notistack` library for snackbars in the UI and wrapped the `App` component with `SnackbarProvider` in `App.tsx`. * Added API methods for publishing events to the frontend in `api.ts`. ### Screenshot ![image](https://github.com/user-attachments/assets/aa1dcd4f-c036-4ec3-91b8-f5ea1efbe5e8) ![image](https://github.com/user-attachments/assets/1a6a0437-9f31-4097-b490-0b0999f4f4b2) ### Dependency Updates: * Added `notistack` library to `ui/package.json` for enhanced notification handling. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-07 22:16:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynqmon#694
No description provided.