Commit Graph
21 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 00984c8f42 Minor sanity check in user/group/perm test 2022-02-15 17:01:03 -05: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 7e325bdadb Fix tests 2021-02-10 23:17:26 -05:00
Jordan Brown ac4a1c7f9b Add the Request/Response namespaces to Api.Models 2021-02-10 22:10:22 -05:00
Jordan Brown 47ea890040 WIP: Redoing request/response models 2021-02-10 11:07:08 -05:00
Jordan Brown 09dc016118 Test fix 2020-12-31 00:24:27 -05:00
Jordan Brown 39ad7ca177 Unfuck User/Usergroup shenannigans
- Make Internal.User abstract
- Move User Id and Name to new UserBase class
- ShallowUsers are now only UserBase
- Moved PermissionSet to Internal.UserGroup
- Old Internal.UserGroup properties moved to new Internal.UserGroupBase
- Fixed WriteUsers being able to read users with POST /User
- Fixed full users returned from POST /User not including group permission sets
2020-12-30 14:11:30 -05:00
Jordan Brown 7c13785969 Properly page UserGroups 2020-12-18 01:14:54 -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 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 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 1df12a29c1 Add some OAuthConnections API tests
- Fix returning null instead of an empty array
2020-12-09 15:15:48 -05:00
Jordan Brown a513c22c23 Fix integration tests 2020-11-24 16:06:15 -05:00
Jordan Brown e473446315 Create a system user for jobs created by TGS
- API Version bump to 7.0.2
- Deprecate error code 46
- Instance user IDs can never be null
- Make a IUsersClient.GetId more covariant (Right word?)
2020-07-11 12:13:56 -04:00
Jordan Brown f64e0c8d53 User fixes [TGSDeploy] 2020-05-08 05:45:07 -04:00
Jordan Brown 218baecdf0 Add an integration test for reading the current user. 2020-03-30 16:33:54 -04:00
Jordan Brown 9c687e3bf0 Whitespace cleanup 2020-03-24 23:45:20 -04:00
Jordan Brown f5589b02a1 Adds a user spam integration test.
This is mainly to test server load as well as SQLite async support.
2020-03-22 20:38:35 -04:00