-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
User Data Service #36
base: main
Are you sure you want to change the base?
Conversation
7083358
to
6f684d4
Compare
6f684d4
to
6310d71
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #36 +/- ##
==========================================
+ Coverage 75.77% 76.23% +0.47%
==========================================
Files 99 106 +7
Lines 4505 4694 +189
==========================================
+ Hits 3413 3578 +165
- Misses 1092 1116 +24
Continue to review full report in Codecov by Sentry.
|
@Supereg Wanted to follow up on this PR; do you think we should merge this in here or should some of that functionality move to Spezi Devices? |
We generally went with incorporating Characteristic and Service definitions on SpeziBluetooth in the SpeziBluetoothServices target. This is what's done here. |
Good point, I was just a bit confused by some Omron mentions in the code which seems quite specific to Spezi Devices's medical devices features. I think keeping a core collection of reusable services and characteristics in here makes a lot of sense, I think this is useful. At some point we could think about some scoping in sub targets to avoid any larger API surfaces but IMO we should be fine with the current scope. |
Yes, this feature development was originally driven by the Omron devices we used as some of the exposed a User Data Service. They defined several extensions on the services which also made it tricky to decide how to best implement this service such that it stays customizable but we do not loose type safety. In the end, Omron specific parts would move to the Omron target in SpeziDevices.
Agree. There might be benefits to, e.g., divide between generic, easily-reusable services (like battery service or device information) and some of the medical services and characteristics. But I think, currently this still works well 👍 |
Agree; thank you for continuing to work on this @Supereg; greatly appreciated!! |
User Data Service
♻️ Current situation & Problem
Link any open issues or pull requests (PRs) related to this PR. Please ensure that all non-trivial PRs are first tracked and discussed in an existing GitHub issue or discussion.
⚙️ Release Notes
Add a bullet point list summary of the feature and possible migration guides if this is a breaking change so this section can be added to the release notes.
Include code snippets that provide examples of the feature implemented or links to the documentation if it appends or changes the public interface.
📚 Documentation
Please ensure that you properly document any additions in conformance to Spezi Documentation Guide.
You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.
✅ Testing
Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.
This section describes important information about the tests and why some elements might not be testable.
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: