Commit graph

320 commits

Author SHA1 Message Date
Pat Hartl
9512d09e0d Fix General edit route 2024-10-23 00:50:10 -05:00
Pat Hartl
8df8b3eb4c Null reference check in edit view 2024-10-23 00:49:58 -05:00
Pat Hartl
0c700803c3 Reworked game edit page into separate files per pane
Implements #99
2024-10-22 23:49:21 -05:00
Pat Hartl
365da83342 New UI layout, navigation on left side 2024-10-22 19:54:38 -05:00
Pat Hartl
28ace00b5d Restore UI auth checks 2024-10-21 20:14:55 -05:00
Pat Hartl
42ca5c323a WIP MySQL concurrency fixes
- Removed the Blazor authentication pages and went back to Razor pages
- Fixed issues with dashboard charts that were pulling data on render and causing the database context to be open longer than it should
- Switched back to UserManager and RoleManager
- Temporarily disabled authentication state in pages that might try to use user claims/roles
- Reverted spacing changes to forms to allow for validation messages
- Moved initialization of database connection to database context
- Updated PostgreSQL provider
- Rescaffolded MySQL migrations
- Added a bunch of logging stuff that should eventually be stripped out
2024-10-21 20:06:52 -05:00
Pat Hartl
2056b06207 Working new login page 2024-10-18 19:15:05 -05:00
Pat Hartl
a1ed75a780 Use correct result from change password service method 2024-10-16 18:41:54 -05:00
Pat Hartl
991771a7f3 Use string constant for administrator role name 2024-10-16 02:06:02 -05:00
Pat Hartl
91829f601d Enable navigation properties for user roles, use service in place of managers 2024-10-16 01:54:51 -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
e236c2b25b Refactored first time setup
Fixes #128
2024-10-12 18:36:00 -05:00
Pat Hartl
33fcc96117 Fix saving of new path 2024-10-11 01:15:01 -05:00
Pat Hartl
609a11fec2 Filter list of storage locations to archive type 2024-10-11 01:10:47 -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
e083d86d8b Add ability to switch database providers to MySQL or PostgreSQL
Ref #108
2024-10-07 18:52:52 -05:00
Pat Hartl
a40de21fc7 Rename settings models 2024-10-07 18:38:27 -05:00
Pat Hartl
91ee1d47a9 Move data and service layers to separate projects, update packages 2024-10-07 18:04:26 -05:00
Pat Hartl
43e5c2bea3 Switch dashboard charts to dark theme if set
Fixes #118
2024-10-01 18:23:58 -05:00
Pat Hartl
096b904748 Pass user agent when grabbing data from PCGamingWiki
Fixes #119
Also adds some general error handling for when PCGamingWiki searches fail.
2024-10-01 17:54:12 -05:00
Pat Hartl
332f081b12 Fix page slug editor
Ref #113
2024-09-30 21:49:44 -05:00
Pat Hartl
1acb6d34ab Disable save/resolve buttons on resolved issue 2024-09-30 21:37:11 -05:00
Pat Hartl
783a73df43 Fix rendering of add form
Fixes #117
2024-09-30 21:36:54 -05:00
Pat Hartl
8edeb8efc9 Fix text displayed in popover for deleting issue
Fixes #116
2024-09-30 21:17:31 -05:00
Pat Hartl
2e3dbe2df5 Fix new page deletions
Fixes #113
2024-09-30 20:27:01 -05:00
Pat Hartl
b84f397ddb Delete only existing media on remove from editor
Fixes #114
2024-09-30 20:19:36 -05:00
Pat Hartl
b93d56a599 Add games selector to redist edit, game count on list 2024-09-19 19:37:42 -05:00
Pat Hartl
a5ebc7c8ce Force page load when redirecting 2024-09-19 19:37:00 -05:00
Pat Hartl
36ed11f2dd Fix title when editing games, servers, and redists 2024-09-19 19:26:40 -05:00
Pat Hartl
adadc2a419 Show orphaned games in game list 2024-09-19 18:42:11 -05:00
Pat Hartl
d38651469d Nest dependent mods/expansions under parent 2024-09-19 18:40:05 -05:00
Pat Hartl
6010707bd6 Log errors when deleting page 2024-09-17 18:14:06 -05:00
Pat Hartl
ae4965c851 Fix ordering of children under parent node 2024-09-11 17:57:09 -05:00
Pat Hartl
a618101274 Add edit button for game in issue 2024-09-09 18:21:49 -05:00
Pat Hartl
a9cead27ea Put reported by/on in alert 2024-09-09 18:21:35 -05:00
Pat Hartl
3c66fc5830 Fix game column in issue list 2024-09-09 18:21:18 -05:00
Pat Hartl
0abe1d688d Add basic support for checking Steam for lobbies when starting a game
Ref #98
2024-09-05 00:48:04 -05:00
Pat Hartl
e00aa77597 Move KeyAllocationMethod enum to SDK 2024-09-04 16:48:04 -05:00
Pat Hartl
7734441942 Allow uploading of .ico files for media
Resolves #86
2024-09-03 20:15:26 -05:00
Pat Hartl
0fa0960ef5 Allow key allocation via user 2024-09-03 19:57:39 -05:00
Pat Hartl
910ba2367b Add basic streaming logs with color 2024-08-29 00:19:56 -05:00
Pat Hartl
1c615cbce2 Remove nlog, use Serilog, prefer ILogger 2024-08-28 20:33:59 -05:00
Pat Hartl
6bee5d91bc Fix spacing in edit form 2024-08-28 00:24:34 -05:00
Pat Hartl
8896501a07 Route to first parent page 2024-08-28 00:24:26 -05:00
Pat Hartl
df7d3250f7 Add page slug to fix routing issues 2024-08-27 21:35:45 -05:00
Pat Hartl
1af4aa79c9 Redirect to root if page not found 2024-08-27 20:41:07 -05:00
Pat Hartl
a503b7fc21 Fix route editor rendering 2024-08-27 20:39:57 -05:00
Pat Hartl
63c0f6c40b Rework page editing buttons, fix new page, refresh tree after changes 2024-08-27 20:22:24 -05:00
Pat Hartl
b7b6541a81 Add ordering of pages in tree via dragging 2024-08-27 20:05:09 -05:00
Pat Hartl
44f091386d WIP launcher login redesign 2024-08-26 21:29:25 -05:00