Commit Graph
30 Commits
Author SHA1 Message Date
Jordan Brown 65ec6a0e98 Remove ConfigureAwait(false) in top level projects 2022-09-19 10:19:08 -04:00
Jordan Brown 06c1c8d827 Adds the accessible property to InstanceResponse 2021-08-11 04:30:21 -04:00
Jordan Brown 84e003cd7a Merge branch 'master' of https://github.com/tgstation/tgstation-server into 1252-StylecopThePlanet 2021-05-09 19:28:18 -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 1e9e97f0cb Regression test for #1256 2021-05-09 10:29:34 -04:00
Jordan Brown ac4a1c7f9b Add the Request/Response namespaces to Api.Models 2021-02-10 22:10:22 -05:00
Jordan Brown 6c69d6bca3 Definition looks good now 2021-02-10 17:29:39 -05:00
Jordan Brown 47ea890040 WIP: Redoing request/response models 2021-02-10 11:07:08 -05:00
Jordan Brown 1988b916ec Adds a 410 response to PATCH /Instance 2021-01-05 13:44:18 -05:00
Jordan Brown cba2904292 Merge branch 'dev' into 1078-UserGroups 2020-12-18 00:32:45 -05:00
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 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 46aee33261 Fix IInstanceReferences not being disposed
Also remove unused usings
2020-07-13 21:34:48 -04:00
Jordan Brown f923d0c87d Component instance usage cleanup
- GetInstance now returns null instead of throwing when the instance is offline. To be honest, we should wrap this in a using.
- Add safe accessor class for controllers that also performs request validation.
- API bump to 7.1.0
- Added ErrorCode 90 for offline instances, replacing the 403 response
- Move jobs now move the directory and are more fail safe
- Creating instances no longer uppercases the path on disk on Windows
2020-07-12 13:53:28 -04:00
Jordan Brown 751546308c Fix integration test 2020-06-16 12:47:15 -04:00
Jordan Brown f42295ee8e Various fixes 2020-05-12 18:00:29 -04:00
Jordan Brown 794cf3ef38 Add integration test for server reboots 2020-05-12 13:24:26 -04:00
Jordan Brown be71c56eb8 Test updates 2020-05-08 04:10:57 -04:00
Jordan Brown 7de1c45aa8 Update integration tests with regressions 2020-05-08 03:25:33 -04:00
Jordan Brown 6d53e67b8f Fix up integration tests 2020-05-05 13:52:58 -04:00
Jordan Brown 9560a383b6 Re-enabled instance manager detach test 2020-04-27 11:48:54 -04:00
Jordan Brown e1439b8ec5 Merge branch 'dev' of https://github.com/tgstation/tgstation-server into INTEGRATE 2020-04-26 20:02:23 -04:00
Jordan Brown 892656a90a Add integration test for instance path whitelist 2020-04-26 19:26:33 -04:00
Jordan Brown f686cb3dc2 Temporarily disable failing instance manager tests 2020-04-26 18:38:53 -04:00
Jordan Brown 22ff4e6737 Write tests, fix bugs 2020-04-20 15:11:28 -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
Cyberboss 0c563d014c Add a test for creating instances in the installation directory 2018-10-23 16:29:21 -04:00
Cyberboss 1f265d1505 Add integration test for restoring lost instance user permissions 2018-09-28 15:57:59 -04:00
Cyberboss b90171e917 More integration tests 2018-09-04 15:22:47 -04:00