mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[PR #678] [CLOSED] [FEATURE] Confirm that spools exists in inventory without NFCTag associated before creating a new one #1096
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#1096
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/678
Author: @wreuel
Created: 3/12/2026
Status: ❌ Closed
Base:
dev← Head:feature/associateExistingBambuLabSpoolBeforeCreateOne📝 Commits (10+)
c415c6dAdd a check to associate an unassigned spool based on brand, color, and type. If a matching unused spool exists, reuse it; otherwise, create a new spool.d7a6d4dMerge branch 'dev' into feature/associateExistingBambuLabSpoolBeforeCreateOne7957b08Merge branch 'dev' into feature/associateExistingBambuLabSpoolBeforeCreateOne6f529bfComplying with PR comments44e4bb5Merge branch 'dev' into feature/associateExistingBambuLabSpoolBeforeCreateOnedf6e2e1Merge branch 'dev' into feature/associateExistingBambuLabSpoolBeforeCreateOne64beb1cMerge branch 'dev' into feature/associateExistingBambuLabSpoolBeforeCreateOnebcf8847Adding racing condition using lock609df90Merge branch 'dev' into feature/associateExistingBambuLabSpoolBeforeCreateOned95d1f9adding test on race condition📊 Changes
4 files changed (+1134 additions, -2 deletions)
View changed files
📝
backend/app/main.py(+22 -2)📝
backend/app/services/spool_tag_matcher.py(+124 -0)➕
backend/tests/unit/services/test_spool_match_race.py(+337 -0)📝
backend/tests/unit/services/test_spool_tag_matcher.py(+651 -0)📄 Description
Description
Add a check to associate an unassigned spool based on brand, color, and type. If a matching unused spool exists, reuse it; otherwise, create a new spool.
Related Issue
#538
Fixes #
#538
Type of Change
Changes Made
a. Tag match
b. Inventory match
c. Create new — (existing, now last resort)
Screenshots
Testing
Checklist
Additional Notes
Still need to confirm with testing on my side
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.