(S.R. number-1) Foundational Base structure implementation for Devr.AI #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@chandansgowda please review this, collaborated with @Vivekgupta008 and still working on...
References #18 built on top of #8
🚀 PR Description: Foundational Event-Driven System and Workflow Architecture
📌 Overview
This PR implements the foundational components of the event-driven system and workflow architecture for Devr.AI. It sets up the core structure for handling events across platforms (GitHub, Discord, Slack) and provides a modular framework for future extensions.
✅ Implemented in This PR
Event Schema:
BaseEventclass with common fields (platform,event_type,timestamp,actor, etc.).GitHubEvent,DiscordEvent,SlackEvent).Event Handlers:
BaseHandlerclass withpre_handle,handle, andpost_handlemethods.IssueHandler: For GitHub issue events.PRHandler: For GitHub PR events.MessageHandler: For Discord/Slack messages.OnboardingHandler: For new contributor detection.FAQHandler: For knowledge-based questions.Handler Registry:
HandlerRegistryfor dynamic event routing.Event Bus:
EventBusclass (stub implementation).to_dict,from_dict).🚧 Partially Implemented
EventBusclass is defined but lacks implementation for dispatching events to handlers.📝 Remaining Tasks
The following components will be implemented in future PRs:
EventBus.dispatch()for routing events to handlers.VectorDBServicefor Supabase vector operations.EmbeddingGeneratorfor generating embeddings.📦 Files Changed
backend/app/core/events/base.py: AddedBaseEventand platform-specific event classes.backend/app/core/handlers/base.py: AddedBaseHandlerand specific handler classes.backend/app/core/handlers/handler_registry.py: ImplementedHandlerRegistry.backend/app/core/events/event_bus.py: AddedEventBus(stub implementation).📋 Next Steps
EventBusimplementation and integrate it withHandlerRegistry.VectorDBServiceandEmbeddingGenerator.This PR description clearly outlines what has been implemented, what is partially done, and what remains for future work. It also provides context for reviewers and sets expectations for the next steps.