Skip to content
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

Consumables break if large number of items is checked-out #15853

Closed
2 tasks done
swift2512 opened this issue Nov 20, 2024 · 4 comments
Closed
2 tasks done

Consumables break if large number of items is checked-out #15853

swift2512 opened this issue Nov 20, 2024 · 4 comments

Comments

@swift2512
Copy link

swift2512 commented Nov 20, 2024

Debug mode

Describe the bug

If more that 8300 pieces of consumable are checked-out, page shows 'No matching records found' for that consumable.
If user has more than 10k pieces of consumables assigned - users part of SnipeIT is bricked - page shows 'No matching records found'.

Reproduction steps

  1. Create consumables with large quantity - 44444
  2. Check-out 9000 consumables to the user
  3. Visit page where list of users, that consumable was checked-out to, is shown.

Expected behavior

That list shows entries, not the message 'No matching records found'. On a side note, that list would should show single line for check-out action with number of items checked-out, instead of entry for every single item.

Screenshots

image

image

Snipe-IT Version

latest demo

Operating System

Web Server

PHP Version

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

Currently, you can't remove assigned consumables and there's no other way to remove consumables from the user. I understand that 8000+ pieces of consumables may look like overkill, but our company goes through 500 packs of A4 sheets per week and if we would decide to track paper, we would brick the system unintentionally. Also, someone could make a mistake checking-out consumables by putting 9999 as quantity.

@swift2512
Copy link
Author

You can also break stuff with accessories in the same way - by checking-out 10k+ items.
image
And it would be nice to have bulk check-in for accessories- nobody wants to check-in 20 pieces of same accessory individually. Even better way - only one line with total of items is shown and you can input a number of checked in items. (But this may be more difficult because IDs are involved.)
image

@swift2512
Copy link
Author

I broke demo website... You can't have more than 60k items assigned. All accessories are gone from the view. Sorry :)
image

@snipe
Copy link
Owner

snipe commented Nov 20, 2024

There is already a PR open for this. #15785 - just not sure it's how we want to handle it, nor the use case where someone would be checking out 10k consumables at a time.

@snipe snipe closed this as completed Nov 20, 2024
@swift2512
Copy link
Author

swift2512 commented Nov 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants