Commit Graph

20 Commits

Author SHA1 Message Date
Artemy 66819a015a Refactor media attachments to use MediaFile entity
This commit introduces the MediaFile entity and updates the media attachments model, repositories, and related logic to reference MediaFile instead of storing file metadata directly in MediaAttachments. Controller, service, and SignalR request/response contracts are updated to support the new structure. Database configurations and validators are also adjusted accordingly. This refactor improves media management and normalization in the data model.
2025-07-06 21:09:12 +07:00
Artemy 05298c004c FriendsController 2025-06-27 19:12:31 +07:00
Artemy ec44347bbe Add username validation and initial friends feature
Introduced a UsernameValidator with Cyrillic and length checks, integrated into AuthService and registration flow. Added InvalidUsernameException and related interface. Updated User model to support friend requests, added FriendsController (stub), and configured Friendship entity in EF Core. Adjusted UserValidator max name length and removed navigation properties from PrivateChat.
2025-06-27 16:36:56 +07:00
Artemy 9b9cd73a96 Add friendship feature with models, repository, and tests
Introduces Friendship and PrivateChat models, repository interfaces, and implementations for managing friendships. Adds validators and comprehensive unit and integration tests for friendship logic. Updates InviteUserController with new endpoints and restricts access to admin role. Removes unnecessary project references from Govor.API.csproj and registers new DbSets in GovorDbContext.
2025-06-27 15:09:28 +07:00
Artemy 4f3f4ec066 Refactor to introduce Govor.Application and Govor.Contracts layers
Moved service implementations and interfaces from Govor.API and Govor.Core to new Govor.Application and Govor.Contracts projects. Updated namespaces and references throughout the solution. Added custom exception classes for authentication and invite services. Adjusted dependency injection and project references to use the new structure. This refactor improves separation of concerns and prepares the codebase for better maintainability and scalability.
2025-06-25 15:16:14 +07:00
Artemy 76094af15b Invitation globale work
+ tests
+ new services
+ InvitationDto and IInvitationReqest
2025-06-24 21:20:43 +07:00
Artemy f99ec0b17b InvitesRepositoryTests
+ other reworks
2025-06-24 19:17:27 +07:00
Artemy 6e856a65db InvitationValidator 2025-06-24 15:24:14 +07:00
Artemy 672fc95823 Admins Repository
+ tests
2025-06-24 15:14:45 +07:00
Artemy 4956a175c5 MediaAttachmentsTests init 2025-06-22 15:37:20 +07:00
Artemy a6e8ba1a65 Update models Messages 2025-06-22 11:45:25 +07:00
Artemy 3f1c050149 Addition Tests for MessageRepository
+ MessagesValidator tests
2025-06-20 14:02:08 +07:00
Artemy 3526cde06f Messages first init 2025-06-20 13:32:29 +07:00
Artemy d18ad19f80 Auth Tests 2025-06-19 09:51:55 +07:00
Artemy 7d518c0882 AuthController work 2025-06-18 16:55:19 +07:00
Artemy 2c2c2b805c AuthSystem 2025-06-18 12:08:21 +07:00
Artemy 22de0e9630 UserValidatorTests 2025-06-17 21:24:54 +07:00
Artemy 70e46e7648 more tests for user rep 2025-06-17 17:37:10 +07:00
Artemy 694750e25d Working on the UserRepository functionality
+ Tests
+ QueryableExtensions. It is an add-on that allows you to implement exceptions if the returned List would be empty.
2025-06-17 13:11:56 +07:00
Artemy 568b09ba81 I'm working on the UsersRepository
userValidotor has been added and tests are being developed
2025-06-17 11:57:57 +07:00