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

fix(datastore): reconnect the AppSyncRealTimeClient once connection is stale #3734

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

5d
Copy link
Member

@5d 5d commented May 31, 2024

Issue #

#3632

Description

Currently, the AppSyncRealTimeClient disconnects the underlying websocket connection when it considers the connection stale. However, we need to maintain the connection for as long as possible. Therefore, change the action to reconnect.

General Checklist

  • Added new tests to cover change, if needed
  • Build succeeds with all target using Swift Package Manager
  • All unit tests pass
  • All integration tests pass
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)
  • Documentation update for the change if required
  • PR title conforms to conventional commit style
  • New or updated tests include Given When Then inline code documentation and are named accordingly testThing_condition_expectation()
  • If breaking change, documentation/changelog update with migration instructions

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@5d 5d requested a review from a team as a code owner May 31, 2024 21:35
Copy link

codecov bot commented May 31, 2024

Codecov Report

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

Project coverage is 68.36%. Comparing base (c130105) to head (21c89d5).
Report is 2 commits behind head on main.

Files Patch % Lines
.../AppSyncRealTimeClient/AppSyncRealTimeClient.swift 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3734      +/-   ##
==========================================
- Coverage   68.51%   68.36%   -0.15%     
==========================================
  Files        1089     1089              
  Lines       37651    37658       +7     
==========================================
- Hits        25795    25744      -51     
- Misses      11856    11914      +58     
Flag Coverage Δ
API_plugin_unit_test 68.61% <0.00%> (-0.37%) ⬇️
AWSPluginsCore 65.81% <ø> (ø)
Amplify 48.14% <ø> (-0.02%) ⬇️
Analytics_plugin_unit_test 84.52% <ø> (ø)
Auth_plugin_unit_test 79.34% <ø> (+0.01%) ⬆️
DataStore_plugin_unit_test 81.28% <ø> (-0.67%) ⬇️
Geo_plugin_unit_test 72.00% <ø> (ø)
Logging_plugin_unit_test 62.87% <ø> (ø)
Predictions_plugin_unit_test 37.32% <ø> (ø)
PushNotifications_plugin_unit_test 86.21% <ø> (ø)
Storage_plugin_unit_test 76.75% <ø> (ø)
unit_tests 68.36% <0.00%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 17:54 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d temporarily deployed to IntegrationTest June 3, 2024 18:27 — with GitHub Actions Inactive
@5d 5d merged commit ad53816 into main Jun 4, 2024
136 checks passed
@5d 5d deleted the 5d/fix-issue-3632 branch June 4, 2024 03:29
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.

None yet

2 participants