inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.11k stars 731 forks source link

[FR] Parameter Choices 5000 char limit is a problem #7583

Open reid-p opened 2 months ago

reid-p commented 2 months ago

Please verify that this feature request has NOT been suggested before.

Problem statement

I'd like to have the choice list exceed the current 5000 character limit to allow for an arbitrary length list of options. I have a use case for the selection of over 1000 options.

Suggested solution

Parameter choices could be saved to another table instead of a comma separated string. Drop down should be searchable by the user. Using something like: https://www.w3schools.com/howto/howto_js_filter_dropdown.asp

Describe alternatives you've considered

Can't find and alternative within the current framework

Examples of other systems

No response

Do you want to develop this?

Upvote & Fund

Fund with Polar

SchrodingersGat commented 2 months ago

@reid-p with that many options, mapping it to another table makes sense. Would you be willing to either implement this, or fund development?

matmair commented 2 months ago

Removing the limit is not an option from a security standpoint.

reid-p commented 2 months ago

@SchrodingersGat I could possibly implement this, but it'd probably take me a while to get up to speed with the code base. Funding the development is also a possibility.

@matmair What's the security implication with having a longer list? Isn't it the same as an array of parts or any other item?

SchrodingersGat commented 2 months ago

Funding the development is also a possibility.

@reid-p I'd be happy to take a look at this, the "fund this issue" button at the top of this issue would be the best way to support it!

matmair commented 2 months ago

Arbitrary length text fields that get parsed (processing of the choices) can be used easily for resource exhaustion or as part of a denial of service attack