Skip to content

Upgrade to .NET 9.0 and enhance error handling#114

Merged
StuartFerguson merged 13 commits intomainfrom
task/#113_net9_upgrade
Jun 9, 2025
Merged

Upgrade to .NET 9.0 and enhance error handling#114
StuartFerguson merged 13 commits intomainfrom
task/#113_net9_upgrade

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

  • Updated project files to target .NET 9.0.
  • Modified GitHub Actions workflows to install .NET 9.0.
  • Updated NuGet package references to latest versions compatible with .NET 9.0.
  • Changed return types in ApiClient methods to Result<T> for improved error handling.
  • Enhanced PermissionsService to handle failures when loading permissions data.
  • Updated request handlers to return Result<T> types, improving error management.
  • Improved error handling in DataHelperFunctions when fetching contracts.
  • Updated Dockerfile to use .NET 9.0 SDK.
  • Adjusted integration tests for compatibility with new result types.
  • Overall improvements to code structure for better maintainability and error handling.

Closes #113

- Updated project files to target .NET 9.0.
- Modified GitHub Actions workflows to install .NET 9.0.
- Updated NuGet package references to latest versions compatible with .NET 9.0.
- Changed return types in `ApiClient` methods to `Result<T>` for improved error handling.
- Enhanced `PermissionsService` to handle failures when loading permissions data.
- Updated request handlers to return `Result<T>` types, improving error management.
- Improved error handling in `DataHelperFunctions` when fetching contracts.
- Updated Dockerfile to use .NET 9.0 SDK.
- Adjusted integration tests for compatibility with new result types.
- Overall improvements to code structure for better maintainability and error handling.
This commit updates the `pullrequest.yml` file to include:
- A new step to install .NET version 9.x using `actions/[email protected]`.
- A step to trust a certificate by installing the `expect` package and configuring the certificate with a specified path and password.
Added connection strings for ConfigurationDbContext and AuthenticationDbContext. Removed connection string for PersistedGrantDbContext. Retained existing logging configuration settings.
- Updated DataHelperFunctions to handle cases with no comparison dates.
- Added necessary using directives in Dashboard.cshtml.cs for view rendering.
- Adjusted MountAsync method to ensure proper order of fetching data.
- Introduced GetSalesValueByHourChart method for generating sales charts.
- Initialized properties for TodaysSales and related models to prevent null references.
Updated browser initialization logic in `Hooks.cs` for the `EstateManagementUI.IntegrationTests.Common` namespace.
- Assigned "Edge" directly to the `browser` variable.
- Added `--start-maximized` argument for Chrome and Edge options.
- Streamlined Edge options setup with method chaining.
- Simplified retry logic for initializing `EdgeDriver`.
- Set WebDriver window size to 1920x1080 in headless mode in EstateManagementUiSteps.cs.
- Added using directive for TransactionProcessor.Database.Entities.Summary in Extensions.cs.
- Changed headless mode argument from `--headless=new` to `--headless` in Hooks.cs.
- Corrected window size argument format in WithWindowSize method in Hooks.cs.
@StuartFerguson StuartFerguson merged commit 722e425 into main Jun 9, 2025
17 of 20 checks passed
@github-actions github-actions Bot deleted the task/#113_net9_upgrade branch August 9, 2025 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to Net 9

1 participant