From 1e0883c4a710b482c462efec78cd80774c0947dd Mon Sep 17 00:00:00 2001 From: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Date: Mon, 28 Jun 2021 19:36:37 -0700 Subject: [PATCH] Buffer Post Requests --- GitTrends.Android/Properties/AndroidManifest.xml | 2 +- GitTrends.Shared/Interfaces/IAzureFunctionsApi.cs | 2 +- GitTrends.Shared/Interfaces/IGitHubGraphQLAPI.cs | 8 ++++---- .../Base/RepositoryViewModelTests_MaximumApiCallLimit.cs | 2 +- GitTrends.iOS/Info.plist | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/GitTrends.Android/Properties/AndroidManifest.xml b/GitTrends.Android/Properties/AndroidManifest.xml index 8318f01ed..426d9d55a 100644 --- a/GitTrends.Android/Properties/AndroidManifest.xml +++ b/GitTrends.Android/Properties/AndroidManifest.xml @@ -1,5 +1,5 @@  - + diff --git a/GitTrends.Shared/Interfaces/IAzureFunctionsApi.cs b/GitTrends.Shared/Interfaces/IAzureFunctionsApi.cs index 59a7b69b0..f9c211b41 100644 --- a/GitTrends.Shared/Interfaces/IAzureFunctionsApi.cs +++ b/GitTrends.Shared/Interfaces/IAzureFunctionsApi.cs @@ -11,7 +11,7 @@ public interface IAzureFunctionsApi Task GetGitTrendsClientId(); [Post("/GenerateGitHubOAuthToken")] - Task GenerateGitTrendsOAuthToken([Body] GenerateTokenDTO generateTokenDTO); + Task GenerateGitTrendsOAuthToken([Body(true)] GenerateTokenDTO generateTokenDTO); [Get("/GetSyncfusionInformation/{licenseVersion}")] Task GetSyncfusionInformation(long licenseVersion, [AliasAs("code")] string functionKey = AzureConstants.GetSyncFusionInformationApiKey); diff --git a/GitTrends.Shared/Interfaces/IGitHubGraphQLAPI.cs b/GitTrends.Shared/Interfaces/IGitHubGraphQLAPI.cs index 3c557d168..f7fadf9c4 100644 --- a/GitTrends.Shared/Interfaces/IGitHubGraphQLAPI.cs +++ b/GitTrends.Shared/Interfaces/IGitHubGraphQLAPI.cs @@ -7,16 +7,16 @@ namespace GitTrends.Shared public interface IGitHubGraphQLApi { [Post("")] - Task>> RepositoryQuery([Body] RepositoryQueryContent request, [Header("Authorization")] string authorization); + Task>> RepositoryQuery([Body(true)] RepositoryQueryContent request, [Header("Authorization")] string authorization); [Post("")] - Task>> RepositoryConnectionQuery([Body] RepositoryConnectionQueryContent request, [Header("Authorization")] string authorization); + Task>> RepositoryConnectionQuery([Body(true)] RepositoryConnectionQueryContent request, [Header("Authorization")] string authorization); [Post("")] - Task>> ViewerLoginQuery([Body] ViewerLoginQueryContent request, [Header("Authorization")] string authorization); + Task>> ViewerLoginQuery([Body(true)] ViewerLoginQueryContent request, [Header("Authorization")] string authorization); [Post("")] - Task>> StarGazerQuery([Body] StarGazerQueryContent request, [Header("Authorization")] string authorization); + Task>> StarGazerQuery([Body(true)] StarGazerQueryContent request, [Header("Authorization")] string authorization); } public record StarGazerQueryContent : GraphQLRequest diff --git a/GitTrends.UnitTests/Tests/ViewModels/RepositoryViewModel/Base/RepositoryViewModelTests_MaximumApiCallLimit.cs b/GitTrends.UnitTests/Tests/ViewModels/RepositoryViewModel/Base/RepositoryViewModelTests_MaximumApiCallLimit.cs index 6f2861fd3..e7c83717c 100644 --- a/GitTrends.UnitTests/Tests/ViewModels/RepositoryViewModel/Base/RepositoryViewModelTests_MaximumApiCallLimit.cs +++ b/GitTrends.UnitTests/Tests/ViewModels/RepositoryViewModel/Base/RepositoryViewModelTests_MaximumApiCallLimit.cs @@ -54,7 +54,7 @@ protected async Task ExecutePullToRefreshCommandTestMaximumApiLimitTest(TaskComp void HandlePullToRefreshFailed(object? sender, PullToRefreshFailedEventArgs e) { - ReferringSitesViewModel.PullToRefreshFailed -= HandlePullToRefreshFailed; + RepositoryViewModel.PullToRefreshFailed -= HandlePullToRefreshFailed; pullToRefreshFailedTCS.SetResult(e); } } diff --git a/GitTrends.iOS/Info.plist b/GitTrends.iOS/Info.plist index 49dde09ef..a706a86d9 100644 --- a/GitTrends.iOS/Info.plist +++ b/GitTrends.iOS/Info.plist @@ -55,14 +55,14 @@ processing CFBundleShortVersionString - 2.2.0 + 2.2.1 BGTaskSchedulerPermittedIdentifiers com.minnick.GitTrends.NotifyTrendingRepositories com.minnick.GitTrends.CleanUpDatabase CFBundleVersion - 44 + 45 CFBundleLocalizations en