-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/category #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/category #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the codebase by reorganizing namespace structures, upgrading to .NET 10, migrating from SQLite to MS SQL Server test containers, introducing a code formatter (CSharpier), and standardizing code formatting across both server and client codebases.
Key Changes:
- Migrated from .NET 9 to .NET 10 with updated package dependencies
- Reorganized domain namespaces from
Common.Domainsto top-levelDomainsandCommon.Adapters.DatatoCommon.Data - Replaced in-memory SQLite test database setup with a shared
DatabaseFixtureusing MS SQL Server test containers
Reviewed changes
Copilot reviewed 106 out of 117 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Evently.Server/Evently.Server.csproj | Updated target framework to net10.0 and upgraded NuGet package versions |
| tests/Evently.Server.Test/Evently.Server.Test.csproj | Updated target framework to net10.0 and upgraded test-related packages |
| src/Evently.Server/Dockerfile | Updated base images from .NET 9 to .NET 10 SDK and runtime |
| tests/Evently.Server.Test/Common/Setup/DatabaseFixture.cs | New shared test fixture using MS SQL Server test containers |
| src/Evently.Server/Domains/* | Moved domain entities, interfaces, models, and exceptions from Common.Domains to Domains namespace |
| src/Evently.Server/Common/Data/* | Moved data context and migrations from Common.Adapters.Data to Common.Data |
| Makefile | Replaced JetBrains cleanup with CSharpier formatter |
| dotnet-tools.json | Added CSharpier as a formatting tool |
| .editorconfig | Removed in favor of CSharpier configuration |
Files not reviewed (2)
- src/Evently.Server/Common/Data/Migrations/20250913035915_SQLServer.Designer.cs: Language not supported
- src/Evently.Server/Common/Data/Migrations/20250927053802_UpdateSeededDates.Designer.cs: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| public void Dispose() { | ||
| _dbContext?.Dispose(); | ||
| _container.DisposeAsync(); |
Copilot
AI
Nov 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing await keyword for async disposal. The DisposeAsync() method returns a ValueTask that should be awaited. Change to await _container.DisposeAsync(); or use synchronous disposal if the Dispose method cannot be async.
| attempts -= 1; | ||
| console.error(error); | ||
| } | ||
| } |
Copilot
AI
Nov 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The retry logic silently fails after 2 attempts without notifying the user or throwing an error. If both attempts fail, categories will be an empty array with no indication that data fetching failed. Consider either throwing an error after exhausting retries or providing user feedback about the failure.
| } | |
| } | |
| if (categories.length === 0) { | |
| throw new Error("Failed to fetch categories after 2 attempts."); | |
| } |
No description provided.