Skip to content

[WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Deduplicate Healthkit#87

Open
henry-tp wants to merge 4 commits into
masterfrom
WEB-4578-carb-modifications
Open

[WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Deduplicate Healthkit#87
henry-tp wants to merge 4 commits into
masterfrom
WEB-4578-carb-modifications

Conversation

@henry-tp

@henry-tp henry-tp commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

@henry-tp henry-tp changed the title Web 4578 carb modifications [WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Dedup Jun 13, 2026
Comment thread lib/report.mjs
stats: this.getStatsByChartType('basics', data),
excludeDaysWithoutBolus: false,
bgPrefs: this.getBGPrefs(),
metaData: 'latestPumpUpload, bgSources',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@henry-tp henry-tp changed the title [WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Dedup [WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Deduplicate Healthkit + twiist Jun 13, 2026
@henry-tp henry-tp changed the title [WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Deduplicate Healthkit + twiist [WEB-4585, 4577, 4578] - Carb Modifications + Device Names + Deduplicate Healthkit Jun 13, 2026
@henry-tp henry-tp requested a review from krystophv June 13, 2026 23:04
@krystophv krystophv requested a review from Copilot June 13, 2026 23:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/viz from 1.53.0-rc.1 to 1.56.0 (and update yarn.lock accordingly).
  • Request additional DataUtil metadata (devices, matchedDevices) in all report query definitions.
  • Update report query expectations in test/report.test.js to 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.

Comment thread lib/report.mjs
metaData: 'latestPumpUpload, bgSources',
metaData: 'latestPumpUpload, bgSources, devices, matchedDevices',
timePrefs: this.getTimePrefs(),
excludedDevices: [],

@henry-tp henry-tp Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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 []

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