🔪 Extraction Target
Extract all quantity unit operations from the 19,843-line index.mjs into a focused QuantityUnitService class. Final extraction.
📁 Methods to Extract
// All of these get ripped out and moved to QuantityUnitService
getQuantityUnits()
getQuantityUnit()
createQuantityUnit()
updateQuantityUnit()
deleteQuantityUnit()
getQuantityUnitConversions()
// ... and any other quantity-unit-related methods
🎯 Definition of Done
⚡ Implementation
// services/QuantityUnitService.js
export class QuantityUnitService extends BaseService {
async getQuantityUnits() {
// Direct copy from index.mjs - no changes
}
async createQuantityUnit(unit) {
// Direct copy from index.mjs - no changes
}
// ... rest of quantity unit methods
}
🚫 NOT in Scope
- Backward compatibility
- Deprecation warnings
- Proxy methods in GrocyClient
- Changing method signatures
- Adding new features
💀 Breaking Changes
Yes. Embrace change.
Related to
Parent issue: #11
🔪 Extraction Target
Extract all quantity unit operations from the 19,843-line index.mjs into a focused QuantityUnitService class. Final extraction.
📁 Methods to Extract
🎯 Definition of Done
services/QuantityUnitService.jsextending BaseService⚡ Implementation
🚫 NOT in Scope
💀 Breaking Changes
Yes. Embrace change.
Related to
Parent issue: #11