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

Allow session retries to continue #62

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

fractalwrench
Copy link
Contributor

Goal

Allows session retries to continue past the limit of 200 requests. There are a couple of ways this could be done - I chose the fairly naive approach of just allowing session requests to go past the arbitrary limit. This approach is fairly simple to implement & it's unlikely that this will add more than a few extra retries to the queue.

Testing

Added unit test coverage.

@fractalwrench fractalwrench requested a review from a team as a code owner November 13, 2023 17:31
Copy link
Collaborator

@bidetofevil bidetofevil left a comment

Choose a reason for hiding this comment

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

I think this is fine for a quick fix for 6.1.0, but @lucaslabari will need to apply the retries per end point, so his solution may subsume this - which is fine, as now we have tests to verify that it'll work as it does now

@fractalwrench fractalwrench force-pushed the refactor-api-service branch 2 times, most recently from 51bf423 to a511645 Compare November 14, 2023 10:55
@fractalwrench fractalwrench force-pushed the prioritise-session-retries branch from 759b7b3 to a4fc1d8 Compare November 14, 2023 11:02
Base automatically changed from refactor-api-service to master November 14, 2023 11:13
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Merging #62 (a4fc1d8) into master (a511645) will increase coverage by 0.00%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #62   +/-   ##
=======================================
  Coverage   75.99%   75.99%           
=======================================
  Files         309      309           
  Lines       10057    10058    +1     
  Branches     1448     1448           
=======================================
+ Hits         7643     7644    +1     
  Misses       1826     1826           
  Partials      588      588           
Files Coverage Δ
...embrace/android/embracesdk/comms/api/ApiRequest.kt 97.29% <100.00%> (+0.07%) ⬆️
...esdk/comms/delivery/EmbraceDeliveryRetryManager.kt 73.97% <100.00%> (ø)

@fractalwrench fractalwrench merged commit 748b7c3 into master Nov 14, 2023
3 checks passed
@fractalwrench fractalwrench deleted the prioritise-session-retries branch November 14, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants