Skip to content

Add Amazon S3 and Semantic Kernel integration; refactor services#74

Merged
samuelzedec merged 3 commits intomainfrom
develop
Sep 10, 2025
Merged

Add Amazon S3 and Semantic Kernel integration; refactor services#74
samuelzedec merged 3 commits intomainfrom
develop

Conversation

@samuelzedec
Copy link
Owner

Summary

This pull request introduces the following changes:

  • Amazon S3 Integration: Added AmazonS3Service for image storage support, including functionality for image upload, retrieval, and deletion. Enhanced error handling with standardized error messages and the new InternalException for internal server errors. Configuration updates for S3 bucket settings are included in appsettings.json.
  • Service Refactoring: Moved services to more appropriate namespaces for better domain alignment. Improved dependency injection for conditional registration of services based on environment. Renamed and standardized email services and updated corresponding test cases.
  • Semantic Kernel and PostgreSQL Vector Support: Integrated Semantic Kernel dependencies for AI functionalities and added support for pgvector to enable semantic search in PostgreSQL. Updated the development Docker image to accommodate the pgvector extension.

Additional Details

  • Documentation updates are included to reflect the major changes in configurations and dependencies.
  • Codebase organization improvements via namespace changes and dependency injection updates ensure better maintainability.

…y injection

- Renamed and relocated email services to `Infrastructure.Services.AWS.Email` for clarity and domain alignment.
- Updated dependency injection setup to conditionally register local and AWS services based on environment.
- Standardized email template structure with `TemplatePath` instead of `Audience` and `Template` attributes.
- Refactored test cases to reflect updated service names and logic.
- Enabled PostgreSQL `vector` extension in `AppDbContextModelSnapshot`.
…dling

- Added `AmazonS3Service` to handle image upload, retrieval, and deletion in S3, including necessary configurations.
- Defined `ErrorMessage.Image` constants for standardized error messages.
- Introduced `InternalException` for internal server errors with HTTP status code mapping.
- Updated `LocalImageStorageService` to utilize new error message constants for consistency.
- Enhanced `appsettings.json` with S3 bucket configuration.
- Updated `CreateCompanyWithAdminCommandValidator` and `CreateUserCommandValidator` to enforce strong password requirements.
- Added regex for minimum 8 characters, including uppercase, lowercase, number, and special character.
@samuelzedec samuelzedec merged commit 43a0670 into main Sep 10, 2025
1 check passed
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.

1 participant