Skip to content

cleanup: Make group saving/loading more forgiving with data errors#2466

Merged
JFreegman merged 1 commit intoTokTok:masterfrom
JFreegman:group_save_asserts
Dec 14, 2023
Merged

cleanup: Make group saving/loading more forgiving with data errors#2466
JFreegman merged 1 commit intoTokTok:masterfrom
JFreegman:group_save_asserts

Conversation

@JFreegman
Copy link
Member

@JFreegman JFreegman commented Dec 13, 2023

Rather than aborting the process on invalid group save data we either try to continue if possible, or abort the saving/loading instead of the entire process. This addresses #2426


This change is Reviewable

@JFreegman JFreegman added the cleanup Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature. label Dec 13, 2023
@JFreegman JFreegman added this to the v0.2.19 milestone Dec 13, 2023
@codecov
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (55a7600) 71.60% compared to head (9b3c108) 71.52%.

Files Patch % Lines
toxcore/group_pack.c 36.36% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2466      +/-   ##
==========================================
- Coverage   71.60%   71.52%   -0.09%     
==========================================
  Files          75       75              
  Lines       25189    25195       +6     
==========================================
- Hits        18036    18020      -16     
- Misses       7153     7175      +22     

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

Rather than aborting the process on invalid group save data we
either try to continue if possible, or abort the saving/loading
instead of the entire process
@JFreegman JFreegman merged commit 9b3c108 into TokTok:master Dec 14, 2023
@JFreegman JFreegman deleted the group_save_asserts branch December 14, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.

Development

Successfully merging this pull request may close these issues.

2 participants