Skip to content

Merge develop to main#50

Merged
eevatsen merged 110 commits into
mainfrom
develop
Apr 30, 2026
Merged

Merge develop to main#50
eevatsen merged 110 commits into
mainfrom
develop

Conversation

@viktorpekhun

Copy link
Copy Markdown
Contributor

No description provided.

fhyhtyh and others added 30 commits April 8, 2026 21:10
…lass to controller execution of db queries at the service layer
…t-event-data-model-and-storagfe

Feature/11 implement event data model and storage
…thentication-infrastructure-for-smart-event-booking

Feature/3 set up authentication infrastructure for smart event booking
Introduce authentication UI and logic: add AuthController (Register, Login, Logout) wired to IAuthService; add Razor views for Login and Register. Enhance DTOs with data annotations for validation (LoginDto, RegisterDto). Update shared layout to show login/register or logout and user name based on authentication. Add unit tests for AuthController registration flows (Moq, FluentAssertions).
The fixes included:
1. AuthServiceTests.cs: Added missing ILogger<AuthService> mock and updated assertions to align with the transaction-based implementation.
   2. AuthService.cs: Removed redundant password comparison as it's now handled by DTO data annotations.
   3. UnitOfWork: Implemented IAsyncDisposable for proper transaction cleanup and updated DI registration.
   4. Integration Tests: Updated IdentitySeederTests.cs to use await using var scope = provider.CreateAsyncScope() to support the new IAsyncDisposable implementation of UnitOfWork.
- Move SignInAsync inside transaction boundary in AuthService
- Remove redundant explicit rollbacks in UnitOfWork and AuthService
- Consolidate UnitOfWork DI registration
- Refactor AuthControllerTests to remove magic strings in assertions
Expose synchronous disposal on the unit-of-work by adding IDisposable to IUnitOfWork and implementing Dispose in UnitOfWork (disposes current transaction and suppresses finalization). Also switch InitialiseDatabaseAsync to use CreateAsyncScope with await using so the service scope is asynchronously disposed. These changes improve disposal semantics and ensure transactions/scopes are properly cleaned up.
feat: implement create, update and delete operations
…-user-registration

Feature/4 implement user registration
Wrap user registration in the unit of work execution strategy so
transactional identity operations can be retried safely and avoid
InvalidOperationException during registration.

Add unit of work support for execution strategies, update auth service
to use it, and extend tests to verify the new flow.
mykhailo-bi and others added 24 commits April 29, 2026 16:11
Configure the API cookie for secure cross-origin requests and allow
credentialed CORS from the Angular client. Add a global HTTP
interceptor so browser requests include cookies automatically during
authentication.
Co-authored-by: Copilot <copilot@github.com>
… and add some styles to categories on frontend
…outes-and-pages-with-authentication

#8-protect-routes-and-pages
…t-route-guard

Feature/43 implement route guards
…es-are-not-created-when-event-is-created

Fix/fix categories and venues on backend and frontend
…nd-routes

Fixed swagger and paths on frontend

@mykhailo-bi mykhailo-bi 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.

LGTM

@eevatsen eevatsen merged commit 61548c4 into main Apr 30, 2026
2 checks 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.

8 participants