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

Stop the sync service constantly attempting to restart on auth error. #1654

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Sep 7, 2023

Additionally removes a retain cycle that was preventing the client from being released.

This really isn't the ultimate solution. The sync service should provide us with more context as to what error occurred, and more specifically, what conditions need to change before a restart is triggered (e.g. network conditions/some user input/none, its fatal)

Additionally removes a retain cycle that was preventing the client from being released.
@pixlwave pixlwave requested a review from a team as a code owner September 7, 2023 17:47
@pixlwave pixlwave requested review from stefanceriu and removed request for a team September 7, 2023 17:47
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Warnings
⚠️ Please add a changelog.
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.

Generated by 🚫 Danger Swift against c667017

Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

lgtm 👍

ElementX/Sources/Services/Client/ClientProxy.swift Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.21% ⚠️

Comparison is base (29b2b7f) 58.73% compared to head (de4dfbb) 58.52%.

❗ Current head de4dfbb differs from pull request most recent head c667017. Consider uploading reports for the commit c667017 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1654      +/-   ##
===========================================
- Coverage    58.73%   58.52%   -0.21%     
===========================================
  Files          412      413       +1     
  Lines        28223    28256      +33     
  Branches     14061    14078      +17     
===========================================
- Hits         16577    16538      -39     
- Misses       11187    11263      +76     
+ Partials       459      455       -4     
Flag Coverage Δ
unittests 22.88% <0.00%> (-0.01%) ⬇️

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

Files Changed Coverage Δ
.../FlowCoordinators/UserSessionFlowCoordinator.swift 66.20% <0.00%> (-1.59%) ⬇️
ElementX/Sources/Services/Client/ClientProxy.swift 44.76% <0.00%> (-5.91%) ⬇️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

The SDK has changed a lot, we no longer need to stop and start the sync loop.
@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@pixlwave pixlwave enabled auto-merge (squash) September 8, 2023 09:31
@pixlwave pixlwave merged commit 1eac02f into develop Sep 8, 2023
6 checks passed
@pixlwave pixlwave deleted the doug/handle-auth-errors-better branch September 8, 2023 10:00
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