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

Upload Indicator #59

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Upload Indicator #59

merged 2 commits into from
Apr 30, 2024

Conversation

MatthewTurk247
Copy link
Collaborator

Upload Indicator

♻️ Current situation & Problem

Some of the ECG uploads are a little flaky. Even when the app shows that new samples have been read, not all of them are making it to Firebase as one would expect. The first step in solving this problem is identifying which samples are not making it to Firebase.

⚙️ Release Notes

  • Added a checkmark icon to indicate which recordings have been successfully uploaded. Those that have not been successfully uploaded will have a spinning animation.

✅ Testing

Upload status comes from the isUploaded function in ECGModule.

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

@MatthewTurk247 MatthewTurk247 self-assigned this Apr 28, 2024
Copy link

codecov bot commented Apr 28, 2024

Codecov Report

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

Project coverage is 58.05%. Comparing base (f21cfc9) to head (3985dd8).

❗ Current head 3985dd8 differs from pull request most recent head 1a3744e. Consider uploading reports for the commit 1a3744e to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
- Coverage   58.60%   58.05%   -0.54%     
==========================================
  Files          39       39              
  Lines        1379     1392      +13     
==========================================
  Hits          808      808              
- Misses        571      584      +13     
Files Coverage Δ
PAWS/ECGRecordings/ECGRecording.swift 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f21cfc9...1a3744e. Read the comment docs.

Copy link
Member

@PSchmiedmayer PSchmiedmayer left a comment

Choose a reason for hiding this comment

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

Thank you @MatthewTurk247; I updated a few smaller elements and will merge the PR.

@PSchmiedmayer PSchmiedmayer merged commit 1afb3fb into main Apr 30, 2024
5 checks passed
@PSchmiedmayer PSchmiedmayer deleted the upload-indicator branch April 30, 2024 05:58
@MatthewTurk247 MatthewTurk247 mentioned this pull request May 5, 2024
1 task
MatthewTurk247 added a commit that referenced this pull request May 17, 2024
# ECG Data Management

## ♻️ Current situation & Problem
Some ECGs are not showing up in the app as expected, and it is not
entirely clear when and why the issue occurs. One possible solution is
that every time the application boots up, it loops through all samples
and checks if they have been uploaded.


## ⚙️ Release Notes 
- Adds local notifications for testing and surfacing error messages.
- Uses Firebase Authentication instead of Spezi Account where
appropriate.
- Adds pull to refresh in ECG list view, allowing for manual triggers to
reload data from HealthKit.
- Fetches upload status from Firebase rather than local.
- Moves upload logic from `PAWSStandard` to `ECGModule`.


## 📚 Documentation
See #59.


## ✅ Testing
TBD.

### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: Paul Schmiedmayer <[email protected]>
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