Feature/config updates#771
Merged
frasermolyneux merged 1 commit intomainfrom Feb 23, 2026
Merged
Conversation
…MaintenanceController and GameTrackerBannerController
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
There was a problem hiding this comment.
Pull request overview
This PR improves the API’s operational configurability by sourcing more settings from Azure App Configuration and environment variables, and by injecting configuration into controllers so retention behavior can be tuned without code changes.
Changes:
- Refactors V1/V2 startup to load additional configuration sets from Azure App Configuration using managed identity credentials.
- Makes Application Insights adaptive sampling and SQL retry/timeout resilience parameters configurable with defaults.
- Updates maintenance and banner controllers to use configurable retention periods and a configurable GameTracker banner base URL.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| src/XtremeIdiots.Portal.Repository.Api.V2/Program.cs | Adds Azure App Configuration selection and makes AI sampling + SQL resilience configurable |
| src/XtremeIdiots.Portal.Repository.Api.V1/Program.cs | Same as V2, plus loads GameTracker:* keys |
| src/XtremeIdiots.Portal.Repository.Api.V1/Controllers/V1/GameTrackerBannerController.cs | Builds GameTracker image URL from a configurable base URL |
| src/XtremeIdiots.Portal.Repository.Api.V1/Controllers/V1/DataMaintenanceController.cs | Injects IConfiguration and uses config-driven retention windows |
| src/XtremeIdiots.Portal.Repository.Api.Tests.V1/Controllers/V1/DataMaintenanceControllerTests.cs | Updates tests for the new controller constructor signature |
Contributor
🏗️ Terraform Plan
✅ Validate — Passed ✅ Plan
|
|
This was referenced Feb 24, 2026
This was referenced Mar 8, 2026
This was referenced Mar 15, 2026
This was referenced Mar 22, 2026
This was referenced Mar 22, 2026
This was referenced Mar 29, 2026
This was referenced Apr 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This pull request introduces several improvements to the configuration and resilience of the API, making key operational parameters configurable via Azure App Configuration and environment variables. The changes enhance flexibility for deployment and maintenance, and improve testability by injecting configuration dependencies. Below are the most important changes grouped by theme:
Configuration Management and Azure App Configuration:
Program.csfiles (V1 and V2) to use a more robust pattern for loading configuration from Azure App Configuration, including support for environment labels and additional key selection (such asGameTrackerandSqlResilience). This also includes improved credential handling for managed identities. [1] [2]RetryCount,RetryDelaySeconds,CommandTimeoutSeconds) and Application Insights sampling percentages configurable via environment variables or Azure App Configuration, with sensible defaults. [1] [2] [3] [4]Controller and Test Refactoring:
DataMaintenanceControllerand its tests to accept anIConfigurationdependency, enabling the controller to use configuration values for data retention logic instead of hardcoded values. [1] [2] [3] [4]PruneRecentPlayersandResetSystemAssignedPlayerTagsmethods to use configurable retention periods from theDataRetentionsection in configuration, defaulting to previous hardcoded values if not set. [1] [2]Other Configuration-Driven Improvements:
GameTrackerBannerControllerto use a configurable base URL, allowing for easier changes to external dependencies.