-
Notifications
You must be signed in to change notification settings - Fork 105
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
feat: [IOPLT-959] Implements the Offline check loop feature #6734
Conversation
PR Title Validation for conventional commit type✅ All good! PR title follows the conventional commit type. |
Jira Pull Request LinkThis Pull Request refers to Jira issues: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6734 +/- ##
==========================================
+ Coverage 50.30% 50.31% +0.01%
==========================================
Files 1564 1566 +2
Lines 32523 32534 +11
Branches 7355 7311 -44
==========================================
+ Hits 16362 16371 +9
- Misses 16108 16122 +14
+ Partials 53 41 -12
... and 12 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Warning
This PR depends on pagopa/io-backend#1184
Short description
This PR represents a first implementation of an infinite checker through app session of its own connectivity status.
The Code is based on
@react-native-community/netinfo
library, checking the connectivity on a specific endpoint exposed by our backend infrastructure. The checker runs in a specific loop handled by a saga that starts at the app opening such as the one reloading the app remote configuration. At any check it writes up the result of the check on the redux store in order to be read by any component of the app itself.List of changes proposed in this pull request
How to test
Open the app and check the saga invoke on the determined time loop.