mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[PR #669] [MERGED] [Fix]: Update location when linking/unlinking to/from Spoolman #1094
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#1094
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/669
Author: @shrunbr
Created: 3/10/2026
Status: ✅ Merged
Merged: 3/11/2026
Merged by: @maziggy
Base:
0.2.3b1← Head:0.2.3b1📝 Commits (9)
d6ca3e5Enhance link spool functionality with additional printer and AMS details7f4754dRefactor linkSpool function to accept detailed context object for improved spooling integration40d9f9bEnhance LinkSpoolModal to include amsName in props and linkSpool mutation for improved functionalityb89f48aAdd amsName prop to PrinterCard for enhanced spool linking functionalityab1d1cdUpdates LinkSpoolModal test to work with recent spool location update changesb623f04Adds clear_location to unlink testingddb7b74Refactor LinkSpoolRequest to remove ams_name and update location generation logic for improved clarityae31d5dRemove amsName from LinkSpoolModal and PrinterCard for cleaner API integrationd1b7326Remove amsName from LinkSpoolModal test props and update linkSpool mock response for improved clarity📊 Changes
5 files changed (+49 additions, -8 deletions)
View changed files
📝
backend/app/api/routes/spoolman.py(+18 -3)📝
backend/tests/integration/test_spoolman_api.py(+1 -0)📝
frontend/src/__tests__/components/LinkSpoolModal.test.tsx(+9 -2)📝
frontend/src/api/client.ts(+15 -2)📝
frontend/src/components/LinkSpoolModal.tsx(+6 -1)📄 Description
Description
Currently on 0.2.3b1 when linking/unlinking from Spoolman it does not properly update the location. This pull request fixes that by updating the location to {Printer Name} - {AMS Name} {Slot Number}, this also works for external spools. I have confirmed that when unlinking it does clear the location from Spoolman for both AMS and external spools.
COPILOT GENERATED SUMMARY
This pull request introduces enhancements to the spool linking functionality, allowing for more detailed location information when linking and unlinking spools. The changes span both backend and frontend, enabling the system to track and display spool locations with printer and AMS details, and ensuring the frontend passes and utilizes this information.
Related Issue
Fixes #667
Type of Change
Changes Made
Screenshots
Linking Spool:

Unlinking Spool:

Testing
Checklist
Additional Notes
./test_all passed successfully for me
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.