Feat/copy schema tags to device - #1072
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughDevice creation now combines request tags, schema tags, and the schema identity tag, then removes duplicates. The example device schema defines three sensors and uses no preset tags. ChangesDevice schema tag handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change is merge-ready after normal checks and review; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
🧹 Nitpick comments (1)
app/db/models/device.server.ts (1)
1047-1057: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd regression coverage for schema-derived tags.
The existing test in
tests/db/models/device.server.spec.tscovers only request-provided tags. Add cases for schema tags, theschema:<slug>identity tag, and duplicate removal.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 463783dc-21a3-469e-a536-789e85a4d466
📒 Files selected for processing (2)
app/db/models/device.server.tspublic/examples/device-schema.json
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Type of Change
Implementation
Checklist
devbranchAdditional Information