Skip to content

Feat/project chat lifecycle publishers - #209

Open
kingsoftheweb wants to merge 7 commits into
qafrom
feat/project-chat-lifecycle-publishers
Open

kingsoftheweb wants to merge 7 commits into
qafrom
feat/project-chat-lifecycle-publishers

Conversation

@kingsoftheweb

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 13, 2026 22:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved blocking issues were identified.

Pull request overview

Adds typed lifecycle publishers for project and chat mutations, wiring them through services with documentation and tests.

Changes:

  • Adds shared dispatching and project/chat event publishers.
  • Emits events after successful persistence.
  • Adds dependency wiring, tests, and lifecycle documentation.
File summaries
File Summary
docs/dev/lifecycle-events.md Documents lifecycle APIs and contracts
backend/internal/service/services.go Wires lifecycle publishers
backend/internal/service/services_test.go Tests publisher dependencies
backend/internal/service/notifying_repositories.go Publishes project/chat events
backend/internal/service/notifying_repositories_lifecycle_test.go Tests event emission behavior
backend/internal/service/lifecycle_ports.go Defines publisher interfaces
backend/internal/lifecycle/update_publisher.go Uses shared dispatching
backend/internal/lifecycle/update_publisher_test.go Tests dispatch behavior
backend/internal/lifecycle/project_publisher.go Adds project publisher
backend/internal/lifecycle/project_publisher_test.go Tests project events
backend/internal/lifecycle/dispatcher.go Provides dispatch mechanics
backend/internal/lifecycle/chat_publisher.go Adds chat publisher
backend/internal/lifecycle/chat_publisher_test.go Tests chat events
backend/cmd/remote/main.go Constructs and injects publishers
Review details
  • Files reviewed: 14/14 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

const (
ChatCreated ChatState = "created"
ChatUpdated ChatState = "updated"
ChatDeleted ChatState = "deleted"

@Ahmedwaleed22 Ahmedwaleed22 Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kingsoftheweb
We might need an event of opening called "read"
since we might need to do an action on opening the chat

like "mark as read" or stop sending notifications about any updates

@Ahmedwaleed22

Ahmedwaleed22 commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

@kingsoftheweb
We also need a message publisher we need to have the sender, message content, isRead, and the timestamp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants