Commit Graph

58 Commits

Author SHA1 Message Date
Jordan Dominion 82c769177e Switch to central package management 2025-08-29 12:33:45 -04:00
Jordan Dominion 5dd93e3015 Fix build warnings 2025-08-01 15:46:07 -04:00
dependabot[bot] f6a8d7932b Bump Microsoft.AspNetCore.Http from 2.2.2 to 2.3.0
Bumps [Microsoft.AspNetCore.Http](https://github.com/dotnet/aspnetcore) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/commits)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Http
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-18 23:27:39 +00:00
Jordan Dominion 83e0c2046a Improved EngineVersion parsing 2023-12-17 15:00:03 -05:00
Jordan Dominion 3fce8620b4 Very naughty merge of 'V6' into OpenDream
Doing some very bad cleanups for a merge in here like renaming a few fields (like the old column names) + `ByondCommand` + Removing deprecated API fields.
2023-11-09 09:08:20 -05:00
Jordan Dominion ebd09d7e86 Add JobCodes to strongly type jobs
- Default `0` for legacy jobs.
- Standardize job creation prior to registration.
- Add `RightsHelper.TypeToRight()`.
2023-11-04 21:12:25 -04:00
Jordan Dominion d85e2b8d36 Add SignalR
- Add one hub `/hubs/jobs`, strongly typed API included.
- Adjust request pipeline to support SignalR.
- Allow `Accept: text/event-stream` for SSE requests.
- Add client library support for hubs.
- Add integration tests.
- Add IPermissionSetNotifyee to support dynamic changes based on perms.
- Keep job state in `JobService` for pushing updates.
2023-11-04 19:22:48 -04:00
Jordan Dominion eaebe733bd Improve HeadersException handling
Avoid recreating ApiHeaders in request pipeline where possible
2023-10-31 23:16:16 -04:00
Jordan Dominion 30f57d28da Store TokenResponse in ApiHeaders
- Decode it from JWT if necessary.
2023-10-29 16:22:51 -04:00
Jordan Dominion 9a3d02a244 BYOND -> Engine nomenclature changes 2023-10-16 01:44:56 -04:00
Jordan Dominion 0413f8b676 Fix test location 2023-10-16 01:30:08 -04:00
Jordan Dominion eb516744fb Fix engine version parsing 2023-10-15 15:38:31 -04:00
Jordan Dominion e706f4cd7e Fix up all tests except the two main Live ones 2023-10-14 00:54:22 -04:00
Jordan Dominion 6e015f86fa WIP OpenDream Support 2023-10-09 15:42:29 -04:00
Jordan Dominion 77cdc19877 Add TestCommon.props for test projects 2023-07-03 22:43:48 -04:00
Jordan Dominion d0d9e7b2ba Switch from .vdproj to .wixprojs
Wix is just better, it drives the fucking Visual Studio installer for gods' sakes. Thankfully, v4 is a whole lot better than v3 in that it's native dotnet tooling.

- Added ability to set base path for loading configuration files.
- Added Service command descriptions for help text.
- New `.exe` installer also installs dotnet dependencies.
- New `.msi` properly invokes configure, sets up and controls service, sends detach stop signal on upgrades, and uses ProgramData for configs with appropriate permissions.
- Remove .deb symlinks in favor of explicitly setting config directory.
- Adjust CI pipeline with new installer changes.
- Appropriately bump TGS migrator version.
2023-07-02 04:08:14 -04:00
Dominion d9110cefbe Simplify a new expression 2023-06-13 19:40:43 -04:00
Dominion c5d9122f20 Nuget Package updates
- Contains workaround for breaking change in Microsoft.Data.SqlClient
2023-06-13 19:40:28 -04:00
Dominion 9410795046 Nuget updates + project file cleanups 2023-05-20 16:25:40 -04:00
Dominion 5112ea6037 Clean up a file header I guess 2023-05-20 16:25:00 -04:00
Dominion 99c4537aa9 Implement BYOND installation deletion
- Add ErrorCode for if a BYOND installation delete attempt is made for the active version.
- Added ByondVersionDeleteRequest new parent of ByondVersionRequest.
- Added ByondRights.DeleteInstall.
- Added BYOND install delete support to client
- Made ByondExecutableLock use the reference counting system.
- Moved TrustDmbPath to ByondManager internals. Removes ByondExecutableLock's dependency on IIOManager.
- Ensured ByondManager doesn't deal in Versions where .Build == 0.
- Fixed race condition where ByondController could attempt to install a version in the scope of a request.
- Fixed long running DMAPI test code specifying a minimum security level of Ultrasafe when it writes files.
- Added JobsRequiredTest.WaitForJobProgress.
- Added BYOND installation deletion integration tests.
- Fixed modifying the user BYOND configuration having a race condition across instances.
- Various code cleanups.
2023-04-24 20:15:10 -04:00
Dominion a719809c50 GitHub CI speedup attempt
- Switch off verbose console logger, should still run on errors.
- Add GitHubActionsTestLogger, use in CI.
- Pre-build integration tests to get better time metrics.
2023-04-16 23:47:37 -04:00
Dominion de39cd2a80 Update Nuget Packages. Fix Test projects. Etc... 2023-03-25 15:16:43 -04:00
Jordan Brown b15bcd9fa0 More project standardization 2022-09-19 10:09:53 -04:00
Jordan Brown 6960525688 Update to .net-6.0. Fix errors and warnings
- Address various IDE messages
- Additional logging
- Do not access DB in Watchdog's actual Dispose
- Fix issue with legacy behaviour in PGSQL
- Remove obsolete dotnet workaround
- Update to v3 actions checkout/upload-artifact/download-artifact
2022-09-13 18:41:18 -04:00
Jordan Brown a18b095d7f Package updates 2021-08-10 19:57:53 -04:00
Jordan Brown b9586c7fee The great stylecop update
Beware those that read into this commit. Here there be style conformance...

Closes #1252
2021-05-09 19:27:09 -04:00
Jordan Brown 6c09d4f9e7 Dependency updates 2021-03-25 12:23:40 -04:00
Jordan Brown 47ea890040 WIP: Redoing request/response models 2021-02-10 11:07:08 -05:00
Jordan Brown 01d4a05c0d Mass Package Upgrade
- Bump all packages as high as possible
  - ASP .NET Core packages to 3.1.10
- Add a warning about the annoying LoggerFactory issue in host watchdog project
- Add missing exception constructors to client
- Switch to using the correct .NET analyzers
2020-12-16 18:46:40 -05:00
Jordan Brown 79700c7d0e Adds Oauth framework 2020-11-22 21:11:31 -05:00
Jordan Brown e4255b0a7e Fix test suite 2020-07-18 10:29:36 -04:00
Jordan Brown 1e5f2fc2b6 Switch to GitHub actions for building 2020-07-15 13:22:15 -04:00
Jordan Brown 7e3594e546 Fix Nuget memes and tests [APIDeploy][NugetDeploy] 2020-07-09 20:51:45 -04:00
Jordan Brown a5c498e0f7 Various things
- Remove lagacy user/pass header auth
- Use .WithToken on octokit calls
- Cleaned up ApiHeader validation failures and responses
- ApiController constructor parameter requireHeaders now defaults to true
- Added integration test for a bunch of 4XX errors
2020-07-05 11:07:33 -04:00
Jordan Brown b84fa01cd0 Package updates 2020-06-16 20:57:16 -04:00
Cyberboss 26128af015 Further 3.1 fixes 2020-04-19 12:09:09 -04:00
Jordan Brown d9a744e063 Upgrade all frameworks except Tgstation.Server.Host
- All executables/tests to .NET Core 3.1
- All libs to .NET standard 2.1
- Exclude Tgstation.Server.Host and dependencies
- Exclude Watchdog library due to .NET framework incompatibility
2020-04-18 16:30:45 -04:00
Jordan Brown 795bec18ab Big chungus commit
- API and client to version 5.0.0
- Added a bunch more model validations
- Added error codes
- Added limits to database strings
- Redid client exceptions to be more sane
- Added configurable instance and user limits
- Always clamp rights to their valid ranges
- Add an error if the minimum password length is more than the string limit
- Fixed chat bot name contraints crossing instances
- Enforce that SIDs be unique globally
- Normalize instance paths to forward slashes on windows. Added to sanitizer
- Added migrations
- Added ApiAssert for testing error codes
2020-04-11 13:14:55 -04:00
Jordan Brown dedf9869ea Fix RightsHelper.AllRights add test 2020-04-09 13:09:13 -04:00
Jordan Brown 64cb53114c Migrate frameworks to .NET Core 2.2 2020-03-28 12:53:48 -04:00
Jordan Brown ab55d1f75d Post package upgrade fixes 2019-12-30 20:58:29 -05:00
Jordan Brown 48f4a0716f Update all nuget packages 2019-12-30 17:27:35 -05:00
Jordan Brown d7173e3c5f Empty User-Agents are still invalid 2019-01-11 15:14:25 -05:00
Jordan Brown d1a45281d7 Add test for issue #826 2019-01-11 15:04:20 -05:00
Jordan Brown 8114669a39 Make the project vscode friendly 2018-12-05 11:22:38 -05:00
Jordan Brown 51da02dd61 Work on adding stylecop with custom anaylsis ruleset. 2018-11-27 17:32:58 -05:00
Jordan Brown 4f0d8162cf Update packages to stable 2018-11-02 11:17:25 -04:00
Cyberboss 388b989a27 Version bump nuget packages 2018-09-21 14:36:50 -04:00
Cyberboss b7cf3f6532 Test and fix IrcConnectionStringBuilder 2018-09-21 14:15:17 -04:00