Commit graph

29 commits

Author SHA1 Message Date
Pat Hartl
772dd03537 Rename to ArchiveService 2025-11-17 22:09:03 -06:00
Pat Hartl
add770b227 Refactor Settings
Settings for the server are now combined with the settings from the SDK. This introduces a large breaking change and a migration should be created. This refactor utilizes .NET Configuration and the Options pattern. This will allow for the overriding of any setting using envionment variables. It also means that Settings.yml can be used to override any .NET configuration. A SettingsProvider implementation was created, and any updating of settings was changed from SettingsService.SaveSettings() to SettingsProvider.Update(s => { ... })
2025-11-16 12:31:25 -06:00
Pat Hartl
d875377f15 Rename SDK services -> clients, implement new configuration, use dependency injection for clients 2025-09-24 20:58:23 -05:00
RattleSN4K3
023fe9e555 Update archive's file sizes for a specific archive/game 2025-05-26 23:53:40 +02:00
Pat Hartl
b21641c769 Update AntBlazor 2025-05-23 02:17:45 -05:00
RattleSN4K3
81511a9cd3 Clear Archives cache to update client manifest request when validating files 2025-05-17 23:04:54 +02:00
Pat Hartl
78da00a83d Change namespace of abstractions 2025-03-16 14:35:53 -05:00
Pat Hartl
71b3addadc Refactor GitHub calls to a new service 2025-03-16 14:01:33 -05:00
Pat Hartl
86c906f8db Add project for automated tests
Had to remove the responsibility of providing the current version of the application from UpdateService. A new IVersionProvider can be used to get the version. This also allows for this to be mocked in tests.
2025-03-15 21:00:00 -05:00
Pat Hartl
2909f151df Add tags to cache entries 2025-02-09 01:37:31 -06:00
Pat Hartl
8158ab4a22 Adjust layout and spacing 2025-02-04 19:32:33 -06:00
Pat Hartl
e2a943865c Add tool to regenerate thumbnails 2025-02-02 22:46:14 -06:00
Pat Hartl
9fb73454ca Clear depot cache, correctly show loading indicators on buttons 2025-02-02 22:46:02 -06:00
Pat Hartl
260238abe6 Ignore thumbnail files in orphaned file list 2025-02-02 22:45:14 -06:00
Pat Hartl
af08645396 Remove use of DatabaseServiceFactory, update service dependency injection 2025-02-01 02:21:34 -06:00
Pat Hartl
dfce85371d Add ByteSize component 2025-01-29 23:09:55 -06:00
Pat Hartl
61d1a10d74 Refactor import dialog, add storage location selector 2025-01-08 17:10:03 -06:00
Pat Hartl
66c589c468 Update to AntBlazor v1.1.0 2024-12-31 18:21:41 -06:00
Pat Hartl
5de9eccce1 Adjust Blazor server-side to pull data with new context 2024-11-25 22:29:56 -06:00
Pat Hartl
1dda11dd0a Switch dependency injection for services that access database 2024-11-22 02:04:04 -06:00
Pat Hartl
00b9ca5953 Rename service and repository methods to async 2024-11-12 18:32:46 -06:00
Pat Hartl
ce105a285f Rename GetImagePath -> GetMediaPath 2024-11-05 19:38:59 -06:00
Pat Hartl
365da83342 New UI layout, navigation on left side 2024-10-22 19:54:38 -05:00
Pat Hartl
991771a7f3 Use string constant for administrator role name 2024-10-16 02:06:02 -05:00
Pat Hartl
2805f34449 WIP fix for MySQL connection concurrency issues
This is a large commit. There are a number of things that this commit does to try to fix various issues that were occurring when the database provider was set to MySQL:
- The DAL `Repository` has been completely refactored to follow best practices. The repository is now being injected into services instead of the database context itself. This allows the DI to handle the repository's lifetime instead of creating a new repository for every transaction and sharing the context across repositories. As part of these changes, there is no more allowed usage of `IQueryable` and all service/repository methods must actually execute database queries before their return. This is to ensure that the context does not stay open longer than it needs to. Abusing `IQueryable`s by tossing them into Blazor components seems to be a big no-no.
- Some deletion behaviors on relationships have been tweaked as MySQL wasn't able to apply migrations with behaviors that were contradictory.
- A `ConnectionInterceptor` was added to try to keep track of `DatabaseContext` lifetimes. This is really only for debugging and should be put into `#if DEBUG` regions. This helped identify some potential issues where some contexts were basically never closing, causing the MySQL connector to not function.
- Docs for generating migrations have been updated to reflect the addition of being able to specify the database provider and connection string when adding a migration, avoiding the need to edit `Settings.yml`
- The application can now be put into a pause state on startup by adding the `--debugger` argument when used from the command line. When a debugger is attached, it resumes execution.
- The application can now log to Seq when using debug build
- Service lifetime on `DatabaseContext` has switched to transient. This may be reverted in the future.
- Lazy loading has been disabled for debugging purposes. It didn't directly help the concurrency issues, but it needs to be tested individually to be re-enabled.
- All usage of `UserManager`, `RoleManager`, and `SignInManager` have been removed from all controllers, pages, and Blazor components. Functionality has been moved to `UserService` and `RoleService`. This might have done the most amount of help, but could probably be improved upon in the future by not relying on them and instead having our own implementation.
- Application startup migrations and server autostarts have been disabled temporarily. There might be an issue of `DatabaseContext` lifetimes that spawn from this.
2024-10-13 20:42:45 -05:00
Pat Hartl
07882e39d2 Add ability to specify multiple upload folders for archives
Implements #97
2024-10-11 01:09:12 -05:00
Pat Hartl
a40de21fc7 Rename settings models 2024-10-07 18:38:27 -05:00
Pat Hartl
df7d3250f7 Add page slug to fix routing issues 2024-08-27 21:35:45 -05:00
Pat Hartl
cb061e09c5 Rename server project 2024-08-04 18:44:33 -05:00