atopile / atopile

Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️
https://atopile.io
MIT License
1.97k stars 112 forks source link

Picker: Give the designer control over out-of-stock picking #545

Open iopapamanoglou opened 1 week ago

iopapamanoglou commented 1 week ago

Feature Request

Used to be: Never pick OOS Now is: Always accept OOS

Should be: Flags for

Add trait to override default behavior

Code of Conduct

mawildoer commented 1 week ago

Perhaps an out of stock cost is most accurate?

sam-mellor commented 1 week ago

Currently the API won't return OOS components for searches, only when the part is explicitly specified. Default allowed but penalized would be better. We're also only checking for any stocked parts, not necessarily sufficient quantity for the whole project.