update SpeziStudy#29
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughBump Swift package dependencies and migrate the MHC study metadata to locale-keyed dictionaries; incremented studyRevision from 38 to 39 and added SpeziLocalization import. ChangesStudy definitions & packaging
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
Sources/MHCStudyDefinitionExporter/Study.swift (1)
11-17:⚠️ Potential issue | 🟡 MinorFix import order to satisfy SwiftLint.
Line 17 introduces a sorted-imports violation reported by CI.
Suggested import order
import Foundation import MHCStudyDefinition import SpeziHealthKit import enum SpeziHealthKitBulkExport.ExportSessionStartDate +import SpeziLocalization import SpeziScheduler import SpeziStudyDefinition -import SpeziLocalization🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@Sources/MHCStudyDefinitionExporter/Study.swift` around lines 11 - 17, The imports in Study.swift are out of order and trigger SwiftLint's sorted-imports rule; reorder the import statements (import Foundation, import MHCStudyDefinition, import SpeziHealthKit, import enum SpeziHealthKitBulkExport.ExportSessionStartDate, import SpeziScheduler, import SpeziStudyDefinition, import SpeziLocalization) into the canonical sorted order required by the project/SwiftLint (typically alphabetical by module name, keeping the `import enum ...` form adjacent to its module) so that SwiftLint no longer reports a sorted-imports violation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@Package.swift`:
- Around line 30-31: The manifest currently pins the SpeziFoundation dependency
by branch ("lukas/LocalizationsDict-init") which makes builds non-reproducible;
update the .package entry referencing
"https://github.com/StanfordSpezi/SpeziFoundation.git" to use a stable tag
(e.g., from: "2.7.5") or, if you truly need an unreleased branch commit, pin the
exact git revision (commit SHA) instead of branch: to ensure deterministic
resolution for the .package(...) entry in Package.swift.
---
Outside diff comments:
In `@Sources/MHCStudyDefinitionExporter/Study.swift`:
- Around line 11-17: The imports in Study.swift are out of order and trigger
SwiftLint's sorted-imports rule; reorder the import statements (import
Foundation, import MHCStudyDefinition, import SpeziHealthKit, import enum
SpeziHealthKitBulkExport.ExportSessionStartDate, import SpeziScheduler, import
SpeziStudyDefinition, import SpeziLocalization) into the canonical sorted order
required by the project/SwiftLint (typically alphabetical by module name,
keeping the `import enum ...` form adjacent to its module) so that SwiftLint no
longer reports a sorted-imports violation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 3b33f830-4440-4114-8259-5c11196809ef
📒 Files selected for processing (2)
Package.swiftSources/MHCStudyDefinitionExporter/Study.swift
PSchmiedmayer
left a comment
There was a problem hiding this comment.
Looks good once the SwiftLint & tagged releases are there. We need to definitely test on staging if this doesn't crash the old app or causes any other issues (shouldn't be the case as far as I understand) before pushing anything out to production. Plus we should ensure that we get the new MHC version to production in the App Store first (test that this works with the old study bundles in a backwards compatible manner) and then push this out to production?
…StudyDefinitions into lukas/updates # Conflicts: # Package.swift
This reverts commit 467af81. # Revert "update SpeziStudy (#29)" ## ♻️ Current situation & Problem i messed up the releases ## ⚙️ Release Notes - Revert "update SpeziStudy (#29)" (467af81) ## 📚 Documentation n/a ## ✅ Testing n/a ### Code of Conduct & Contributing Guidelines By creating and submitting this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
update SpeziStudy
⚙️ Release Notes
📚 Documentation
n/a
✅ Testing
todo
Code of Conduct & Contributing Guidelines
By creating and submitting this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: