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 deletion of HealthKit-connected apps #28

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lukaskollmer
Copy link
Member

@lukaskollmer lukaskollmer commented Jan 16, 2025

fix deletion of HealthKit-connected apps

♻️ Current situation & Problem

Deleting an app that has saved data to HealthKit triggers an alert informing the user that the app's health data will remain in the HealthKit database, even when the app is deleted.
This alert is currently not dismissed when deleting an app, which can mess up subsequent queries/interactions/steps in a UITest.

⚙️ Release Notes

  • improve app deletion to handle HealthKit-connected apps

📚 Documentation

The documentation is unchanged, since this PR doesn't make any changes to the public interface of the package.

✅ Testing

There is a new test case that adds a heart rate sample to the health store, and then deletes the app.

Code of Conduct & Contributing Guidelines

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

@lukaskollmer lukaskollmer changed the title fix deletion of HealthKit-connect apps fix deletion of HealthKit-connected apps Jan 16, 2025
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.99%. Comparing base (5379d70) to head (34b0f8a).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
- Coverage   85.66%   84.99%   -0.67%     
==========================================
  Files           5       10       +5     
  Lines         251      333      +82     
==========================================
+ Hits          215      283      +68     
- Misses         36       50      +14     
Files with missing lines Coverage Δ
...stExtensions/XCUIApplication+DeleteAndLaunch.swift 84.00% <100.00%> (+1.15%) ⬆️

... and 5 files with indirect coverage changes


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 5379d70...34b0f8a. Read the comment docs.

Copy link
Member

@Supereg Supereg left a comment

Choose a reason for hiding this comment

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

Thanks for going the extra mile and adding the extensive testing setup 🚀

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 for the great addition and the extensive test that was added; amazing!

Copy link
Member

Choose a reason for hiding this comment

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

Nice, thank you for that fix!

@PSchmiedmayer PSchmiedmayer added the enhancement New feature or request label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants