Skip to content

Enhance Apple Health data parsing for compatibility with June 2025 exports and edge cases #2

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

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

Conversation

Polumm
Copy link

@Polumm Polumm commented Jun 6, 2025

Summary

This PR enhances the parsing logic in parse.py and formatters.py to support additional real-world Apple Health data scenarios.

Motivation

While importing data exported from my iPhone on 2025/06/06, I encountered minor issues where the parser could not handle certain structures or edge cases.

Improvements

  • Adjusted parsing logic to handle iOS 2025-format XML exports
  • Ensured full compatibility with original test data provided in the repo
  • Extended support to handle edge cases inspired by test scenarios from:
    apple-health-grafana test suite

Testing

  • Original tests pass
  • Verified compatibility with my iOS export data
  • Covered new edge cases observed in the wild

Notes

  • No breaking changes
  • All enhancements are backward-compatible

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.

1 participant