parse-community / Parse-SDK-Android

The Android SDK for Parse Platform
https://parseplatform.org/
Other
1.88k stars 739 forks source link

feat: Add idempotency feature to detect duplicate requests due to network conditions #1190

Open DrMimik opened 1 year ago

DrMimik commented 1 year ago

New Pull Request Checklist

Issue Description

Requests are duplicated on slow internet connections and during network interruptions.

Closes: #764

Approach

Add idempotency requestId header for client requests to enforce server side idempotency middleware on selected routes..

TODOs before merging

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this pull request!

parse-github-assistant[bot] commented 1 year ago

I will reformat the title to use the proper commit message syntax.

DrMimik commented 1 year ago

Should I force push the first commit? or use a new commit?.

codecov[bot] commented 1 year ago

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (83aec68) to head (039d197). Report is 1 commits behind head on master.

:exclamation: Current head 039d197 differs from pull request most recent head 76673eb

Please upload reports for the commit 76673eb to get more accurate results.

Files Patch % Lines
...arse/src/main/java/com/parse/ParseRESTCommand.java 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1190 +/- ## ======================================= Coverage 0.00% 0.00% ======================================= Files 124 122 -2 Lines 10076 9973 -103 Branches 1359 1345 -14 ======================================= + Misses 10076 9973 -103 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

azlekov commented 1 year ago

Should I force push the first commit? or use a new commit?.

New commit is preferable to track changes and reviewing it easily. Hoping to get this merged.

dplewis commented 1 month ago

@mtrezza Looks like this is ready for review