Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More GraphQL Work #1936

Merged
merged 110 commits into from
Sep 26, 2024
Merged

More GraphQL Work #1936

merged 110 commits into from
Sep 26, 2024

Conversation

Cyberboss
Copy link
Member

@Cyberboss Cyberboss commented Sep 22, 2024

Completed user manager

#1077

🆑
Fixed some oddities in the authentication/authorization pipeline.
/🆑

🆑 HTTP API
Reserved error code 109 for a future change.
/🆑

🆑 Nuget: API
BREAKING: Removed IEquatable implementations for SwarmServers.
BREAKING: RightsHelper.RoleNames now returns an IEnumerable<string> instead of a comma separated string.
BREAKING: Non-functionally rearranged some class structures again.
/🆑

🆑 Nuget: Client
BREAKING: Updated Tgstation.Server.Api to v16.0.0.
/:cl:

- Introduce the concept of `IAuthority`s to handle business logic for both REST and GraphQL.
- Add new authorize attributes so roles can be defined on `IAuthority`s and inherited on REST/GraphQL API surface.
- Implement `ILoginAuthority`, converting REST methods to use it.
- Partially implement `IUserAuthority`, converting REST methods to use it.
- Setup `ErrorMessageResponse` filtering for GraphQL fields.
- Setup query structure for the potential for `RemoteGateway`s.
  - Add new `ErrorCode` indicating they are not implemented.
- Rename `ServerInformationBase` to `GatewayInformationBase`.
- Fix `TgsRestAuthorizeAttribute` lacking an `IAuthorizationFilter`.
…that wasn't present previously. Validate nodes can be resolved
tgstation-server-ci[bot]
tgstation-server-ci bot previously approved these changes Sep 24, 2024
tgstation-server-ci[bot]
tgstation-server-ci bot previously approved these changes Sep 24, 2024
@Cyberboss Cyberboss enabled auto-merge September 24, 2024 03:34
tgstation-server-ci[bot]
tgstation-server-ci bot previously approved these changes Sep 24, 2024
tgstation-server-ci[bot]
tgstation-server-ci bot previously approved these changes Sep 25, 2024
tgstation-server-ci[bot]
tgstation-server-ci bot previously approved these changes Sep 25, 2024
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 74.62301% with 589 lines in your changes missing coverage. Please review.

Project coverage is 95.65%. Comparing base (04a72ad) to head (a979c49).
Report is 133 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1936      +/-   ##
==========================================
- Coverage   95.86%   95.65%   -0.22%     
==========================================
  Files         744      789      +45     
  Lines      168673   170292    +1619     
  Branches     3320     3478     +158     
==========================================
+ Hits       161704   162895    +1191     
- Misses       6459     6858     +399     
- Partials      510      539      +29     

@Cyberboss Cyberboss merged commit 61a7844 into dev Sep 26, 2024
77 checks passed
@Cyberboss Cyberboss deleted the graphql branch September 26, 2024 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client Issue with the .NET client library Feature New functionality Fix Fixes incorrect functionality Refactor Refactor functionality for future improvements REST The JSON REST API for server control size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant