Part-DB / Part-DB-server

Part-DB is an Open source inventory management system for your electronic components
https://docs.part-db.de/
GNU Affero General Public License v3.0
888 stars 96 forks source link

Detect weather a component with matching keyword already exist when using "Create parts from info provider" #664

Open Stefanhg opened 1 month ago

Stefanhg commented 1 month ago

Is your feature request related to a problem? Please describe. While creating my database I ran into having multiple of the same component I already have created within the database. For example If I have multiple small bags of the same resistor and I start creating all resistors I got in my collection without checking if they already are available then I would end up with duplicates.

Describe the solution you'd like When creating a component I would like to have a checkup that shows if the keyword is already found within the database. Mainly just check the part number and the provider part number. If it exists have a "Possible duplicates of this keyword exist" and list of possible duplicates below the search button

One thing that might be a problem is performance, if it slows down the creation of components because it has to search the whole database.

Describe alternatives you've considered I haven't been able to come up with any alternative ways.

d-buchmann commented 1 month ago

Or you could turn it the other way round and offer to create a new part if a search yields no results =) That would at least not have performance implications.