Commit graph

39 commits

Author SHA1 Message Date
Pat Hartl
ace43fa09e Revert "Merge branch 'feature/server-process-resource-monitoring'"
This reverts commit 8be2341305, reversing
changes made to cf0fe7c1b6.
2025-07-30 19:29:18 -05:00
Pat Hartl
8be2341305 Merge branch 'feature/server-process-resource-monitoring' 2025-07-30 19:27:38 -05:00
Pat Hartl
6ec919d1be Separate import and export functionality
This refactor splits the import and export functionality out of the ImportContext and adds an ExportContext. This also introduced separate importer and exporter implementations.

Additionally, adding archive, save, scripts, and server files to the final export archive has been implemented at the exporter implementation for each instead of handling it in the context. This should be a good pattern if other files need to be added down the road.
2025-07-27 17:51:50 -05:00
Pat Hartl
400acd9287 Remove old export routes, build export archive from flags 2025-07-15 20:32:46 -05:00
Pat Hartl
b3371fcd26 Fix obsolete usage of GetStatus, rework server control as siwtch 2025-05-25 21:11:33 -05:00
Pat Hartl
e86e5d8b44 Use server engines to start/stop servers 2025-03-24 00:19:33 -05:00
Pat Hartl
d38432f675 Add server scripts to execute on game start/stop, refactor how play sessions are recorded 2025-02-23 15:39:06 -06:00
Pat Hartl
4f62957c74 Sort actions properly 2025-02-21 17:41:19 -06:00
Pat Hartl
ec56fbb870 Increase performance when getting all games 2025-02-21 17:24:08 -06:00
Pat Hartl
71911fa617 Increase performance of fetching game details 2025-02-16 13:24:23 -06:00
Pat Hartl
e8627b6a87 Use generic implementations 2025-02-16 10:08:05 -06:00
Pat Hartl
2909f151df Add tags to cache entries 2025-02-09 01:37:31 -06:00
Pat Hartl
cef428acc1 Optimize UserService queries, cache user roles, clean up UserService 2025-02-08 12:32:54 -06:00
Pat Hartl
06ee4d4ed7 Fix install dialog not showing for games with addons 2025-01-27 01:38:55 -06:00
Pat Hartl
b5e43471ce Execute includes as split query 2025-01-25 16:05:33 -06:00
Pat Hartl
2c5bbed8d5 Increase API performance 2025-01-25 12:46:24 -06:00
Pat Hartl
f657065f40 Add route to check for update for game 2025-01-25 01:48:37 -06:00
Pat Hartl
d627a0ed4e Cache actions for client 2025-01-25 01:34:10 -06:00
Pat Hartl
0f6120a310 Remove unused services 2025-01-23 00:25:34 -06:00
Pat Hartl
b4080c8f22 Change cache keys, add extension to clear game cache by ID 2025-01-23 00:25:11 -06:00
Pat Hartl
1bfdbfb518 Fix server actions not included in game details, cache manifest and game details 2025-01-22 21:27:38 -06:00
Pat Hartl
61d1a10d74 Refactor import dialog, add storage location selector 2025-01-08 17:10:03 -06:00
Pat Hartl
8f6ad14d7e Fix eager loading 2024-12-20 11:34:59 -06:00
Pat Hartl
e9c542ab49 Rename async controller routes 2024-11-12 23:22:01 -06:00
Pat Hartl
00b9ca5953 Rename service and repository methods to async 2024-11-12 18:32:46 -06:00
Pat Hartl
407093bdce Optimize query, filter play sessions and collections 2024-11-11 18:30:31 -06:00
Pat Hartl
e30a1baef3 Start of migrations, services, controllers 2024-10-31 01:54:34 -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
6d6526a5f3 Import mods and expansions, but filter them out
Some checks failed
LANCommander Release / prep (push) Has been cancelled
LANCommander Release / build_launcher_win-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_win-x64 (push) Has been cancelled
LANCommander Release / build_release (push) Has been cancelled
LANCommander Release / build_server_linux-arm64 (push) Has been cancelled
LANCommander Release / build_server_linux-x64 (push) Has been cancelled
LANCommander Release / build_server_osx-arm64 (push) Has been cancelled
LANCommander Release / build_server_osx-x64 (push) Has been cancelled
LANCommander Release / build_server_win-arm64 (push) Has been cancelled
LANCommander Release / build_server_win-x64 (push) Has been cancelled
LANCommander Release / build_launcher_linux-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_linux-x64 (push) Has been cancelled
LANCommander Release / build_launcher_osx-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_osx-x64 (push) Has been cancelled
2024-10-09 17:41:42 -05:00
Pat Hartl
320d4e2c5e Allow uploading of archive files via CLI
Implements #111
2024-10-01 17:56:58 -05:00
Pat Hartl
5d3ff9cada More logging and error handling for API routes 2024-09-17 00:18:39 -05:00
Pat Hartl
f060ad7ac4 Consolidate settings access 2024-08-28 20:44:14 -05:00
Pat Hartl
1c615cbce2 Remove nlog, use Serilog, prefer ILogger 2024-08-28 20:33:59 -05:00
Pat Hartl
7588065bae Get mapped games using async 2024-08-19 21:18:05 -05:00
Pat Hartl
bf9ef30b4b Add game importing via CLI 2024-08-12 19:33:26 -05:00
Pat Hartl
131479277b Consolidate enums 2024-08-12 00:15:16 -05:00
Pat Hartl
cb061e09c5 Rename server project 2024-08-04 18:44:33 -05:00
Renamed from LANCommander/Controllers/Api/GamesController.cs (Browse further)