-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
User is removed when asset is Archived/Pending #13396
Comments
I don't think this is really a bug exactly as it is a misunderstanding or misuse of the workflow. If an item is in an archived or pending state, there wouldn't be a user associated with it. That would still be a Ready to Deploy status, since it's still currently checked out. |
@snipe Partially agree with your logic for the archived items as an user should not be assigned (Yes we used it for tracking, and it was useful). For Pending, we used it for Being serviced and To Be returned and it worked as described according to the documentation. I changed the status labels type to Undeployable and now it works as expected after I checked the demo page. If you confirm this is the logic you're after I guess this can be closed, and this should reflect in the status labels as for now, I'm sure no one gets the difference: Current description: -Pending: These assets can not yet be assigned to anyone, often ??used for items that are out for repair, but are expected to return to circulation??. / Doesn't this mean it was perfect for Out for repair? -Undeployable: These assets cannot be assigned to anyone but they're retaining the current user, used for items that are out for repair, but are expected to return to circulation . -Archived: These assets cannot be checked out, and will only show up in the Archived view. This is useful for retaining information about assets for budgeting/historic purposes but keeping them out of the day-to-day asset list. / User is removed |
I ran into a couple related issues with regards to the archived status, and the fact that it removes the assigned user (and probably other types of assignments as well).
Both seem like bugs to me. |
This was already fixed a few weeks ago
If that's still possible, it's a bug. An archived status should never be able to be checked out to. |
Signed-off-by: snipe <[email protected]>
@StarlessNights this might resolve the API bug allowing checkouts to non-deployable status types: #15547 |
…able_status Fixed #13396 - do not allow checkout to undeployable status types
Debug mode
Describe the bug
When an asset is Ready to Deployed and it's status goes to a status with Archived/Pending type, the user is removed from the asset.
For archived, this might be a bug or depending on the logic you applied not.
For Pending, definitely a bug.
We have the following statuses set to Archived:
SOLD - Last user is important information
STOLEN - Last user is important information
Donated (Needs to be checked in first)
Written Off (Ceased) - (Depends)
In all the above cases it would be beneficial to know the user it was assigned, for tracking purposes.
Hope this clears it up.
Reproduction steps
Expected behavior
User should not be removed, as the assets are Archived and do not interfere with regular operation.
It helps to know if someone is abusing company policy in buying old hardware and also past history (stolen, missing items.
Also:
When using the bulk edit menu to go through the same status change, the user is not removed, as both menu actions should be consistent.
The only case when the user should be removed is when the asset is checked in.
Screenshots
No response
Snipe-IT Version
v6.1.2 build 10938
Operating System
Red Hat
Web Server
Apache
PHP Version
8.1.21
Operating System
Windows 11
Browser
Chrome
Version
115.0.5790.102 (Official Build) (64-bit)
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
This is an upgrade.
The text was updated successfully, but these errors were encountered: