Skip to content

Commit

Permalink
Buffer Post Requests
Browse files Browse the repository at this point in the history
  • Loading branch information
brminnick committed Jun 29, 2021
1 parent 69c7f4b commit 1e0883c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion GitTrends.Android/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="44" android:versionName="2.2.0" package="com.minnick.gittrends" android:installLocation="auto">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="45" android:versionName="2.2.1" package="com.minnick.gittrends" android:installLocation="auto">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<application android:label="GitTrends" android:fullBackupContent="@xml/auto_backup_rules">
Expand Down
2 changes: 1 addition & 1 deletion GitTrends.Shared/Interfaces/IAzureFunctionsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface IAzureFunctionsApi
Task<GetGitHubClientIdDTO> GetGitTrendsClientId();

[Post("/GenerateGitHubOAuthToken")]
Task<GitHubToken> GenerateGitTrendsOAuthToken([Body] GenerateTokenDTO generateTokenDTO);
Task<GitHubToken> GenerateGitTrendsOAuthToken([Body(true)] GenerateTokenDTO generateTokenDTO);

[Get("/GetSyncfusionInformation/{licenseVersion}")]
Task<SyncFusionDTO> GetSyncfusionInformation(long licenseVersion, [AliasAs("code")] string functionKey = AzureConstants.GetSyncFusionInformationApiKey);
Expand Down
8 changes: 4 additions & 4 deletions GitTrends.Shared/Interfaces/IGitHubGraphQLAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ namespace GitTrends.Shared
public interface IGitHubGraphQLApi
{
[Post("")]
Task<ApiResponse<GraphQLResponse<RepositoryResponse>>> RepositoryQuery([Body] RepositoryQueryContent request, [Header("Authorization")] string authorization);
Task<ApiResponse<GraphQLResponse<RepositoryResponse>>> RepositoryQuery([Body(true)] RepositoryQueryContent request, [Header("Authorization")] string authorization);

[Post("")]
Task<ApiResponse<GraphQLResponse<RepositoryConnectionResponse>>> RepositoryConnectionQuery([Body] RepositoryConnectionQueryContent request, [Header("Authorization")] string authorization);
Task<ApiResponse<GraphQLResponse<RepositoryConnectionResponse>>> RepositoryConnectionQuery([Body(true)] RepositoryConnectionQueryContent request, [Header("Authorization")] string authorization);

[Post("")]
Task<ApiResponse<GraphQLResponse<GitHubViewerResponse>>> ViewerLoginQuery([Body] ViewerLoginQueryContent request, [Header("Authorization")] string authorization);
Task<ApiResponse<GraphQLResponse<GitHubViewerResponse>>> ViewerLoginQuery([Body(true)] ViewerLoginQueryContent request, [Header("Authorization")] string authorization);

[Post("")]
Task<ApiResponse<GraphQLResponse<StarGazerResponse>>> StarGazerQuery([Body] StarGazerQueryContent request, [Header("Authorization")] string authorization);
Task<ApiResponse<GraphQLResponse<StarGazerResponse>>> StarGazerQuery([Body(true)] StarGazerQueryContent request, [Header("Authorization")] string authorization);
}

public record StarGazerQueryContent : GraphQLRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected async Task ExecutePullToRefreshCommandTestMaximumApiLimitTest(TaskComp

void HandlePullToRefreshFailed(object? sender, PullToRefreshFailedEventArgs e)
{
ReferringSitesViewModel.PullToRefreshFailed -= HandlePullToRefreshFailed;
RepositoryViewModel.PullToRefreshFailed -= HandlePullToRefreshFailed;
pullToRefreshFailedTCS.SetResult(e);
}
}
Expand Down
4 changes: 2 additions & 2 deletions GitTrends.iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
<string>processing</string>
</array>
<key>CFBundleShortVersionString</key>
<string>2.2.0</string>
<string>2.2.1</string>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.minnick.GitTrends.NotifyTrendingRepositories</string>
<string>com.minnick.GitTrends.CleanUpDatabase</string>
</array>
<key>CFBundleVersion</key>
<string>44</string>
<string>45</string>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
Expand Down

0 comments on commit 1e0883c

Please sign in to comment.