Skip to content

Commit 40659fb

Browse files
authored
Merge pull request #162 from aevatarAI/feature/permission-event-base
feat: add PermissionEventBase for user context propagation
2 parents b4e62d2 + 96f5ccc commit 40659fb

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

ai/project_tracker.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This document tracks the remaining tasks and their status for the Aevatar Framew
1515

1616
| Feature | Status | Description | Unit Tests | Regression Tests | Integration Tests | Documentation | Dev Machine |
1717
|---------|--------|-------------|------------|------------------|-------------------|---------------|------------|
18+
| PermissionEventBase | ✅ Completed | Implement PermissionEventBase class inheriting from EventBase with UserContext for permission management events ||||| c6:c4:e5:e8:c6:4c |
1819
| ExceptionCatchAndPublish | 🚧 In Progress | Implement mechanism to catch GAgent EventHandler exceptions and publish them to Orleans Stream ||||| 62:84:7a:e8:0f:65 |
1920
| Kafka Stream optimization | Not Started | Optimize Kafka streams for better performance and lower resource usage ||||| |
2021
| End to end gagent streaming | Not Started | Implement complete end-to-end streaming for gagent ||||| |
@@ -92,7 +93,7 @@ This document tracks the remaining tasks and their status for the Aevatar Framew
9293
- *To be determined*
9394

9495
## Completed Tasks
95-
- *None recorded yet*
96+
- **PermissionEventBase** (2024-01-XX): Implemented abstract base class for permission-related events with UserContext propagation. Includes comprehensive documentation and follows Orleans serialization patterns.
9697

9798
## Notes
9899
- Update this tracker regularly as tasks progress
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Aevatar.Core.Abstractions;
2+
3+
namespace Aevatar.PermissionManagement;
4+
5+
public interface IPermissionEvent
6+
{
7+
UserContext? UserContext { get; set; }
8+
}
9+
10+
[GenerateSerializer]
11+
public abstract class PermissionEventBase : EventBase, IPermissionEvent
12+
{
13+
[Id(0)] public UserContext? UserContext { get; set; } = new();
14+
}

0 commit comments

Comments
 (0)