-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] crash when using alternate mode with IPN, parameter do not get added #163
Comments
source for the first bug is this line here: Ki-nTree/kintree/database/inventree_api.py Line 171 in 322f40f
instead of downloading just the entry for the given IPN it tries to download the whole database which obviously will end in a timeout for bigger databases. Changing the line to |
Hi @T0jan, good catch! Do you want to send a PR for this? |
I actually didn't intend the Part ID / IPN to be used to update parts but only to add alternates. This is an interesting use case though... In this case the "Alternate" switch should be more generic, but I'm not sure how I feel about it yet. |
yes this works but only for parts which have a Manufacturer part entry with the same MPN already. sadly we have a lot of components created by hand or migrated from other databases which do not have this entry. Also I have to say I did not understand the purpose of the alternate mode as a mode to create alternates, if I get asked for an existing ID/IPN I expect this then to update the given part with the distributor information but maybe that's just me 😅 |
@T0jan Umm I'm surprised this is not obvious from UX standpoint: What does "Alternate" means to you? |
@eeintech I understood it as an alternate input mask to the standard category/IPN Category Code selection. But with your explanation I see your point. maybe instead of modifying the alternate mode adding a second switch for an similar update mode would be an idea? |
Oh I see, this name is so telling to me in the world of electronic components that I forgot the generic meaning can be lead to other interpretation. Maybe an "Create/Update" switch would be a good idea 👍 |
fixed with #167, closing |
Hi,
I tried to update existing parts with Ki-nTree today but run into two problems:
Greetings.
The text was updated successfully, but these errors were encountered: