Remove 3dfilamentprofiles integration (Issue #7)
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled
3dfilamentprofiles.com has Vercel bot protection blocking automated requests. Their GitHub repo only has sample data (~3 filaments). SpoolmanDB already has 6,957+ filaments, making this unnecessary. Removed: - spoolman/externaldb.py: ExternalSource enum, Filament3DFP model, 3dfp sync - client/src/utils/queryExternalDB.ts: ExternalSource enum, source field - client/src/components/filamentImportModal.tsx: Source filter tabs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
35
CLAUDE.md
35
CLAUDE.md
@@ -132,7 +132,7 @@ This is a fork with UX improvements. Issues are tracked on the Gitea instance ab
|
||||
| 4 | Layout Max-Width | ✅ DONE |
|
||||
| 5 | Temperature Ranges | ✅ DONE |
|
||||
| 6 | Spool Adjustment History | ✅ DONE |
|
||||
| 7 | 3dfilamentprofiles Integration | ⚠️ PARTIAL (sample only) |
|
||||
| 7 | 3dfilamentprofiles Integration | ❌ REMOVED (bot protection) |
|
||||
| 8 | (see Gitea #8) | ✅ DONE |
|
||||
| 9 | Hierarchical Locations (Room/Bin) | Open |
|
||||
| 10 | Database Import/Export | ✅ DONE |
|
||||
@@ -223,30 +223,10 @@ Frontend:
|
||||
- `client/src/pages/spools/show.tsx` - Collapsible adjustment history table
|
||||
- `client/public/locales/en/common.json` - Translation keys for history table
|
||||
|
||||
### Issue #7 Complete - 3dfilamentprofiles Integration
|
||||
### Issue #7 REMOVED - 3dfilamentprofiles Integration
|
||||
|
||||
Added 3dfilamentprofiles.com as a second external database source alongside SpoolmanDB.
|
||||
|
||||
Backend (`spoolman/externaldb.py`):
|
||||
- Added `ExternalSource` enum (SPOOLMANDB, FILAMENT_PROFILES_3D)
|
||||
- Added `Filament3DFP` model for raw 3dfp data
|
||||
- Added `_transform_3dfp_to_external()` to convert 3dfp format to ExternalFilament
|
||||
- Updated `_sync()` to fetch from both sources and merge results
|
||||
- Environment variables: `EXTERNAL_DB_3DFP_URL`, `EXTERNAL_DB_3DFP_ENABLED`
|
||||
|
||||
Frontend:
|
||||
- `client/src/utils/queryExternalDB.ts` - Added `ExternalSource` enum, `source` field, temp range fields
|
||||
- `client/src/components/filamentImportModal.tsx` - Added tabs to filter by source (All/SpoolmanDB/3DFP)
|
||||
- `client/src/pages/filaments/create.tsx` - Updated import handler for temp range fields
|
||||
|
||||
Data mapping (3dfp → Spoolman):
|
||||
- `brand_name` → `manufacturer`
|
||||
- `color` + `material_type` → `name`
|
||||
- `rgb` → `color_hex` (strip # prefix)
|
||||
- `properties.temp_min/max` → `extruder_temp/extruder_temp_max`
|
||||
- `properties.bed_temp_min/max` → `bed_temp/bed_temp_max`
|
||||
- Diameter defaults to 1.75mm (3dfp doesn't provide)
|
||||
- Density from material lookup table
|
||||
**Removed** - 3dfilamentprofiles.com has Vercel bot protection blocking automated requests.
|
||||
Their GitHub repo only has sample data (~3 filaments). SpoolmanDB has 6,957+ filaments, so this was unnecessary.
|
||||
|
||||
### Issue #10 Complete - Database Import/Export
|
||||
|
||||
@@ -373,11 +353,8 @@ Some filaments have temp info in comment field (e.g., "extrude 190-230 / bed 50-
|
||||
### Filament Select Not Refreshing After Inline Creation
|
||||
When creating a filament via the inline modal on spool create page, the select dropdown doesn't immediately show the new filament with its name (shows ID instead).
|
||||
|
||||
### 3dfilamentprofiles Integration Incomplete (Issue #7)
|
||||
The backend code and frontend UI exist, but we're only fetching `sample-filaments.json` (~3 test filaments). The jklewa/filament-profiles-data GitHub repo only provides sample data. Full dataset requires either:
|
||||
1. Running their parser.py script against 3dfilamentprofiles.com
|
||||
2. Directly querying the website API
|
||||
3. Hosting our own generated full dataset
|
||||
### Issue #7 - 3dfilamentprofiles Integration REMOVED
|
||||
The 3dfilamentprofiles.com website has Vercel bot protection that blocks automated requests. Their GitHub repo (jklewa/filament-profiles-data) only provides sample data (~3 filaments). Since SpoolmanDB already has 6,957+ filaments from major brands, the 3dfp integration was removed rather than maintaining dead code.
|
||||
|
||||
### Future: Issue #9 - Hierarchical Locations
|
||||
Add room/bin/shelf support for locations. See Gitea issue #9 for details.
|
||||
|
||||
Reference in New Issue
Block a user