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

consolidate and improve internal rest infrastructure #1624

Merged
merged 55 commits into from
Sep 29, 2023

Conversation

Plerx2493
Copy link
Member

@Plerx2493 Plerx2493 commented Sep 20, 2023

Summary

Rewoks the whole rest client to be faster and slightly more accurate

Details

  • switches from internally using Task to ValueTask
  • completely reworks the entire request handling model
  • respects which endpoints are exempt from the global rate limit
  • annotates the entire API client for nullability

Future Notes

this PR does NOT update the rest client to match the current API specification yet, that work will have to be done in a later PR

@akiraveliara akiraveliara changed the title Fix/consolidate rest consolidate and improve internal rest infrastructure Sep 20, 2023
@akiraveliara akiraveliara mentioned this pull request Sep 20, 2023
19 tasks
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0"/>
<PackageVersion Include="Microsoft.Extensions.DependencyModel" Version="7.0.0"/>
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1"/>
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-add SourceLink, required for our docs bot to function iirc

Copy link
Member

@InFTord InFTord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, besides one small nitpick

@akiraveliara akiraveliara merged commit 851632e into master Sep 29, 2023
1 check passed
@akiraveliara akiraveliara deleted the fix/consolidate-rest branch September 29, 2023 11:18
@Plerx2493 Plerx2493 added this to the v5.0 milestone Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants