Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

Updating part from Information provider only allows to add new part

Open mkne opened this issue 8 months ago • 1 comments

Describe the bug I have a part (DRV8410PWPR) that was created with the information provider LCSC. When I now click the button "Update part from Information Provider" under Tools. (http://part-db.local/de/tools/info_providers/update/245) I will be redirected to the Search page with the LCSC part number "C7264874" in the search field and LCSC in the Source field. When I now click search the part is correctly found but I only get the Add new part (+) button to add the part and not the Update Button together with the label that the part already exists. Image

Expected behavior If I use the same LCSC part number "C7264874" in the dialog "add part from information provider" (http://part-db.local/de/tools/info_providers/search), it finds the part and I can use the Update Button to update my part. Image

Server Side

Part-DB Version: 1.17.0 PHP Version: 8.3.19 (SAPI: fpm-fcgi) Database Server: sqlite 3.40.1

Desktop (please complete the following information): OS: Windows 11 Browser: Chrome Version: 134.0.6998.178

mkne avatar Apr 04 '25 07:04 mkne

For reference, please also see #664 (related, no duplicate). ~~If you use the "update part from info provider" feature and you do click on the add button, you see that the "new" part is automatically merged into your existing part, allowing you to review and update any discrepancies manually prior to saving. I agree that this is not obvious to the new user and could use a UX improvement.~~

EDIT: Seems I misunderstood your question and also missed the PR #810 which should have already fixed this. I could reproduce the issue with the same part as well as another one.

d-buchmann avatar May 20 '25 12:05 d-buchmann