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

Search in parts does not work

Open henrikkoch opened this issue 1 year ago • 6 comments

I have just created a lot of parts from DigiKey

F.ex. this part number 691137710004‎

I was successfully looking up the data from digikey and created in my list of parts (PartDB)

Afterwards I search for the number I the upper right corner and the part cannot be seen even though its in my list

I'm using PartDB v. 1.07

PardDB_bug_2024-02-11_14-01-02

henrikkoch avatar Feb 11 '24 13:02 henrikkoch

Thats interesting. Never encountered that behavior before.

It works as long as you just type a part of the name e. g. "69113771000", but if you add the last digit then it stops working. The problem seems to be with that number name. For other part names it works just fine, even when searching for the whole name.

jbtronics avatar Feb 13 '24 09:02 jbtronics

For some reason I am not able to replicate the bug anymore. It seems to work fine on the demo instance: https://demo.part-db.de/en/parts/search?name=1&category=1&description=1&mpn=1&tags=1&storelocation=1&comment=1&ipn=1&ordernr=1&keyword=691137710004

Can you please recheck if this still happens with the recent versions?

jbtronics avatar Feb 18 '24 21:02 jbtronics

I maybe have some more info. It looks like the bug is there right after the new component has been created.

Just after import (creation) of new part Search for the same part number

After some time my problem also seams to have disappeared. Maybe just some refresh of the data right after import is the real issue here,

Den søn. 18. feb. 2024 kl. 22.31 skrev Jan Böhmer @.***

:

For some reason I am not able to replicate the bug anymore. It seems to work fine on the demo instance: https://demo.part-db.de/en/parts/search?name=1&category=1&description=1&mpn=1&tags=1&storelocation=1&comment=1&ipn=1&ordernr=1&keyword=691137710004

Can you please recheck if this still happens with the recent versions?

— Reply to this email directly, view it on GitHub https://github.com/Part-DB/Part-DB-server/issues/515#issuecomment-1951451136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5EA6BGC443VQ6HWC3C7ETYUJXMXAVCNFSM6AAAAABDDQ7GV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGQ2TCMJTGY . You are receiving this because you authored the thread.Message ID: @.***>

--

Med venlig hilsen / Kind regards

Henrik Johansen KochHans Erik Nielsens Vej 7, DK 3650, Ølstykke, Denmark

T +45 4710 0305 F +45 7734 0307 M +45 4068 0305E-mail @. @.**>

henrikkoch avatar Feb 18 '24 21:02 henrikkoch

F.ex. this part number 691137710004‎

Have you copied and pasted this number from your search attempts?

Because it contains a non-visible control code (0x200E, Left-To-Right Marker), which prevents the search from being successful. If you remove it (by typing backspace), then search works fine for me.

jbtronics avatar Feb 18 '24 21:02 jbtronics

I created this: "1N5408G_R2_00001" from TME

Right after import I searched for "1N5408G_R2_00001" and this was not found in the 1.10

But again I believe it is something that is not refreshed

/Henrik

Den søn. 18. feb. 2024 kl. 22.31 skrev Jan Böhmer @.***

:

For some reason I am not able to replicate the bug anymore. It seems to work fine on the demo instance: https://demo.part-db.de/en/parts/search?name=1&category=1&description=1&mpn=1&tags=1&storelocation=1&comment=1&ipn=1&ordernr=1&keyword=691137710004

Can you please recheck if this still happens with the recent versions?

— Reply to this email directly, view it on GitHub https://github.com/Part-DB/Part-DB-server/issues/515#issuecomment-1951451136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5EA6BGC443VQ6HWC3C7ETYUJXMXAVCNFSM6AAAAABDDQ7GV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGQ2TCMJTGY . You are receiving this because you authored the thread.Message ID: @.***>

--

Med venlig hilsen / Kind regards

Henrik Johansen KochHans Erik Nielsens Vej 7, DK 3650, Ølstykke, Denmark

T +45 4710 0305 F +45 7734 0307 M +45 4068 0305E-mail @. @.**>

henrikkoch avatar Feb 18 '24 21:02 henrikkoch

I created this: "1N5408G_R2_00001" from TME Right after import I searched for "1N5408G_R2_00001" and this was not found in the 1.10

I tried this and for me search shows the correct result even directly after creation.

But again I believe it is something that is not refreshed

There is nothing which would require refreshment. Only the categories, locations, etc. for the sidebar trees are cached. The part search works directly on the database, and therefore should always show the current database entries, And the new part is directly inserted into the database in the save request. So directly after you see the "Save successfull" flash message, the part should show up in the search.

I suspect that you somehow end up inserting an invisible control code into your search term, which prevents the search from being successfull (as the part name does not contain this special character).

jbtronics avatar Feb 18 '24 21:02 jbtronics