Commit Graph

1420 Commits

Author SHA1 Message Date
Jordan Brown eb709d136b Adds pagination
- Add generic Paginated<TModel> for pagination responses.
- Added pagination helper to ApiController.
- Implemented pagination for all previously IEnumerable<T> response endpoints.
- Added IApiTransformable<TApiModel> for host models finally.
- Added PaginationSettings to client List endpoints.
- Use two deprecated ErrorCodes for page parameter validation.
- Re-enabled to OpenAPI root array response lint.
- Add some integration tests with users.
2020-12-17 23:49:06 -05:00
Jordan Brown 43bcd96b33 Increase some test timeouts slightly 2020-12-16 20:52:52 -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 47fe8306bf Small amount of test logging 2020-12-16 11:54:38 -05:00
Jordan Brown 19cd1aac19 Stop using a groups user in integration test
We know it works. If we really need to test it we should make a dedicated paralled instance test. Currently it just causes permissions issues.
2020-12-16 11:14:05 -05:00
Jordan Brown 8c3a170220 Up repository clone timeout in integration test 2020-12-16 11:12:49 -05:00
Jordan Brown 23205978f6 Fix integration test permission issues 2020-12-14 22:14:08 -05:00
Jordan Brown 3e62191257 Adds UserGroups
- Added MinimumLength to several existing and new
StringLengthAttributes.
- Refactored permissions off User model to new PermissionSet model.
- Added UserGroups, which contain their own PermissionSet. A user can
have either a UserGroup or dedicated PermissionSet.
- Added UserGroupController and client for handling groups.
- Renamed InstanceUser to InstancePermissionSet and associated it with
PermissionSets instead of Users.
- Inject active permission sets into AuthenticationContext.
- Sanitize away top level child properties of client request bodies
(hopefully).
- Added groups integration tests. Main test now runs in a group context.
- Added migrations with hand-written transition SQL.
- Resetting the admin user disassociates them from any groups.

Fuck this huge commit
2020-12-14 17:07:59 -05:00
Jordan Brown c964ee0984 Merge branch 'master' into dev 2020-12-10 10:45:02 -05:00
Jordan Brown 60ac813925 Fix test for renamed error 2020-12-09 22:27:12 -05:00
Jordan Brown 39d80a5b00 Fix DMAPI version test 2020-12-09 16:18:12 -05:00
Jordan Brown 21c9e5f01a Fix downgrade migrations for the last time 2020-12-09 15:50:29 -05:00
Jordan Brown 1df12a29c1 Add some OAuthConnections API tests
- Fix returning null instead of an empty array
2020-12-09 15:15:48 -05:00
Jordan Brown 8466fe31a3 Oh god oh fuck this commit is too big
- Disable faulty CA1508
- Add CompileJob.RepositoryOrigin
- Rename TestMergeParameters.PulRequestRevision to TargetCommitSha
- Ensure test merges aren't referred to as pull requests anywhere
- Make remote deployment git host agnostic
- Make Repository.Origin a Uri
2020-12-09 15:15:01 -05:00
Jordan Brown b0c52d3931 Merge branch 'dev' into 786-GitHostAgnosia 2020-12-08 17:55:57 -05:00
Jordan Brown d21143da4a Fix test branch parsing 2020-12-07 16:12:14 -05:00
Jordan Brown 3716c84664 Fix a potential test error dropping 2020-12-07 15:46:18 -05:00
Jordan Brown d524d06b5a Add URL OAuth config to integration tests 2020-12-07 12:52:33 -05:00
Jordan Brown bc505c2446 Diverse test merging big commit 2020-12-06 19:37:20 -05:00
Jordan Brown 2838170350 Merge branch 'dev' into 786-GitHostAgnosia 2020-12-05 00:16:16 -05:00
Jordan Brown 1e52811434 Abstract test merging per git provider 2020-12-04 23:49:20 -05:00
Jordan Brown bb0f2bc068 Additional testing 2020-12-03 00:02:33 -05:00
Jordan Brown face7234b0 Merge branch 'dev' into 1064-ActualFileStreams 2020-12-02 22:09:15 -05:00
Jordan Brown 31aa6f5157 Merge branch 'master' into dev 2020-12-02 22:08:53 -05:00
Jordan Brown 7f5de5118b Fixes and tests for new transfer service 2020-12-02 22:07:26 -05:00
Jordan Brown 3c3a9bf6e4 Bump the timeout of a test 2020-12-01 21:43:33 -05:00
Jordan Brown a8f910692d Casually replaces base64 file transfers
- Now uses a proper streaming service
2020-11-25 23:25:53 -05:00
Jordan Brown a513c22c23 Fix integration tests 2020-11-24 16:06:15 -05:00
Jordan Brown baec815743 Build fix 2020-11-23 17:04:38 -05:00
Jordan Brown 288d0db2c2 Adds Discord/generic OAuth among other things 2020-11-23 15:12:10 -05:00
Jordan Brown 79700c7d0e Adds Oauth framework 2020-11-22 21:11:31 -05:00
Jordan Brown ad75600890 Custom DreamDaemon Parameters
Closes #949
2020-11-06 13:02:09 -05:00
tgstation-server 5b3d79ddfe Merge branch 'master' into dev 2020-11-05 20:38:13 +00:00
Jordan Brown 9922c8f5a8 Docker cleanup
- Add container script to master version list
- Setup wizard now waits for a guaranteed config reload

Fixes #1138
2020-11-05 14:57:36 -05:00
tgstation-server 83f92c1b7a Merge branch 'master' into dev 2020-11-04 17:05:49 +00:00
Jordan Brown b0f9e2f348 Fix ServerFactory ignoring SetupWizardMode.Only 2020-11-03 11:58:02 -05:00
Jordan Brown 11538986aa Move SetupWizardMode to Setup namespace 2020-11-03 11:44:23 -05:00
Jordan Brown 5d20fa76c0 Fix hosting API documentation in production
- Actually inject the swagger service if the config is set.
- This setting is no longer overridden by launching in development mode.
2020-11-03 11:35:49 -05:00
tgstation-server 40e740a0f8 Merge branch 'master' into dev 2020-10-20 17:37:11 +00:00
Jordan Brown 8b189d9fd3 Minor integration test timeout buff [DMDeploy] 2020-10-20 13:36:09 -04:00
tgstation-server 7acca8c50d Merge branch 'master' into dev 2020-10-15 20:04:42 +00:00
Jordan Brown 65a6bc48fc Adds better port allocation 2020-10-15 15:35:12 -04:00
Jordan Brown e6fffdde39 Fix some versions XML navigation issues 2020-10-12 20:49:19 -04:00
Jordan Brown 1953ed45cb Incremental control panel building 2020-10-12 20:19:51 -04:00
Jordan Brown 657c546a66 Actions shouldn't be this fucking hard... 2020-08-25 12:15:24 -04:00
Jordan Brown 204f4d1096 More GitHub actions test branch detection fixes
Just give me the fucking base branch being built, why is it so hard!
2020-08-25 11:40:03 -04:00
Jordan Brown 039e161c70 Don't use a Linux action on a Windows runner 2020-08-25 11:22:11 -04:00
Jordan Brown b3fefd3376 Improve integration test working branch detection 2020-08-25 11:12:34 -04:00
Jordan Brown 21dac248eb Fix a certain reattach timeout 2020-08-20 17:56:20 -04:00
Jordan Brown 813c77e19a Fix deadlock in integration test 2020-08-20 17:23:56 -04:00