[WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Deduplicate Healthkit#87
[WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Deduplicate Healthkit#87henry-tp wants to merge 4 commits into
Conversation
| stats: this.getStatsByChartType('basics', data), | ||
| excludeDaysWithoutBolus: false, | ||
| bgPrefs: this.getBGPrefs(), | ||
| metaData: 'latestPumpUpload, bgSources', |
There was a problem hiding this comment.
Mirrors this change which was needed to get the correct device name:
There was a problem hiding this comment.
Pull request overview
Updates the export/report generation pipeline to support newer Tidepool Viz report behavior (carb modifications, device name metadata, and HealthKit deduplication) by upgrading @tidepool/viz and requesting additional metadata in report queries.
Changes:
- Bump
@tidepool/vizfrom1.53.0-rc.1to1.56.0(and updateyarn.lockaccordingly). - Request additional DataUtil metadata (
devices,matchedDevices) in all report query definitions. - Update report query expectations in
test/report.test.jsto match the new metadata request.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
package.json |
Upgrades @tidepool/viz dependency to 1.56.0. |
yarn.lock |
Locks the upgraded @tidepool/viz@1.56.0 resolution and checksum. |
lib/report.mjs |
Expands metaData requested by report queries to include devices and matchedDevices. |
test/report.test.js |
Updates expected report query objects to include the expanded metaData string. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| metaData: 'latestPumpUpload, bgSources', | ||
| metaData: 'latestPumpUpload, bgSources, devices, matchedDevices', | ||
| timePrefs: this.getTimePrefs(), | ||
| excludedDevices: [], |
There was a problem hiding this comment.
We need to allow Viz to run the code that detects and sets the excludedDevices by not forcing through this argument of [].
However, Viz will usually just use its fallback arg of []
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughIn ChangesReport Query metaData Expansion
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Comment |
WEB-4585
WEB-4577
WEB-4578