Skip to content

Conversation

@eugbyte
Copy link
Owner

@eugbyte eugbyte commented Nov 29, 2025

No description provided.

@eugbyte eugbyte requested a review from Copilot November 29, 2025 11:27
Copy link

Copilot AI left a 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.Domains to top-level Domains and Common.Adapters.Data to Common.Data
  • Replaced in-memory SQLite test database setup with a shared DatabaseFixture using 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();
Copy link

Copilot AI Nov 29, 2025

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.

Copilot uses AI. Check for mistakes.
attempts -= 1;
console.error(error);
}
}
Copy link

Copilot AI Nov 29, 2025

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.

Suggested change
}
}
if (categories.length === 0) {
throw new Error("Failed to fetch categories after 2 attempts.");
}

Copilot uses AI. Check for mistakes.
@eugbyte eugbyte merged commit dafe8c1 into main Nov 29, 2025
3 checks passed
@eugbyte eugbyte deleted the fix/category branch November 29, 2025 11:57
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.

2 participants