Skip to content

chore: upgrade garmin fit sdk profile version 21.212.0 - #61

Merged
shaonianche merged 1 commit into
mainfrom
agent/code-expert/ab9fbff0
Aug 5, 2026
Merged

chore: upgrade garmin fit sdk profile version 21.212.0#61
shaonianche merged 1 commit into
mainfrom
agent/code-expert/ab9fbff0

Conversation

@shaonianche

Copy link
Copy Markdown
Owner

Summary

Upgrade the bundled Garmin FIT Profile from 21.205.0 to 21.212.0 (GitHub #60).

Profile delta (21.205.0 → 21.212.0)

Types (enum value adds)

  • activity_type + wheelchair_pushing
  • garmin_product + cirqa_smart_band, fenix7_pro_solar_no_wifi
  • manufacturer + una_watch

Messages

  • monitoring + pushes
  • session + total_pushes, total_reps

No new/removed messages; sheet layout unchanged.

Changes

  • Replace fit_tool/gen/Profile_21.205.0.xlsx with Profile_21.212.0.xlsx (from fit-sdk-tools 21.212.0)
  • SDK_VERSION = '21.212.0'
  • Regenerate fit_tool/profile/** via uv run gen-profile
  • Update version pins: public API / header / interop / profile-scope catalog counts (fields 1406 → 1407)
  • Docs: README, capability boundary, design doc, epic notes, test data README
  • Towncrier: news/60.dep

Test plan

  • uv run gen-profile
  • uv run pytest -q440 passed, 1 skipped (live JS interop needs FIT_JS_SDK_PATH + Node)
  • uv run ruff check fit_tool

Fixes #60

Bump SDK_VERSION and regenerate profile code from Garmin fit-sdk-tools
Profile.xlsx 21.212.0. Additive delta: wheelchair_pushing activity type,
manufacturer/product enums, session total_reps/total_pushes and monitoring
pushes fields. Update version pins in tests/docs and towncrier fragment.

Fixes #60

Co-authored-by: multica-agent <github@multica.ai>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d3dd5ffa48

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

field = self.get_field(SessionTotalCyclesField.ID)
type_field = self.get_field(SessionSubSportField.ID)

is_sub_field_valid = type_field and type_field.get_value() in [20]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require the sport ref for total_reps

For files where sub_sport is STRENGTH_TRAINING but sport is not HIIT, this guard still exposes field 10 as total_reps; the new subfield's reference map requires both SessionSubSportField.ID: [20] and SessionSportField.ID: [62], and get_valid_sub_field() can then select a different subfield such as total_strokes while the property returns the value as reps. Because this is generated code, the fix should be made in the generator/template and regenerated rather than patched directly.

AGENTS.md reference: AGENTS.md:L53-L58

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.72%. Comparing base (3fc6125) to head (d3dd5ff).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #61   +/-   ##
=======================================
  Coverage   92.72%   92.72%           
=======================================
  Files          36       36           
  Lines        2721     2721           
  Branches      461      461           
=======================================
  Hits         2523     2523           
  Misses        117      117           
  Partials       81       81           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shaonianche
shaonianche merged commit 93b6e0a into main Aug 5, 2026
9 checks passed
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.

upgrade garmin fit sdk profile version 21.212.0

1 participant