-
-
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
Feature #9514, Feature #9378 Unaccepted Assets Report Actions, Fixed [ch16410] #9529
Feature #9514, Feature #9378 Unaccepted Assets Report Actions, Fixed [ch16410] #9529
Conversation
different approach to #9508 |
It works as described, only have a couple observations. Which is why I would like @uberbrady and @snipe input.
Otherwise I think it's a solid PR and I'm willing to accept it once these subjects are clarified. Thanks for your work on this @dampfklon!! |
Good point, i think it would be at least necessary to have a dedicated permission to this function.
I think this should actually never happen. A user can't be deleted as long as assets are still checked out to him and I would think the pending acceptance should be removed when a asset get checked in. |
I'm kinda loathe to add more permissions, tbh. Perhaps something more like we don't show deleted ones by default, but there's an option to show deleted, as we do for Users?
I think in the activity report, we should show the user's name with a strikethrough, as we do elsewhere in the system. If the user has been deleted and purged, we show "deleted user", again, as we do elsewhere in the system. Agreed that if the item has been checked out to a user, they never accepted it, and they were subsequently checkin-and-deleted (so, a user got something checked out, never accepted it, and was fired), we probably want to keep track of that information, I'm just not exactly sure where that makes the most sense. If legal action needed to be taken against the employee, for example, we wouldn't want to lose the fact that they never accepted that item, even though it was checked out to them. |
Hey there - just following up on this - any additional thoughts on the last part of our convo? |
So, no new permissions 😄 I think it should be a valid solution to have the option to show deleted requests.
I will change the display as suggested. Do you have a place where I could look for this solution?
Currently it’s not possible to delete a user who as checked out assets. In the case the user who did not accept the asset and also did not return the asset could not be deleted. This results in no unaccepted requests with deleted users except for deleted requests where the rendering as described above is in place. |
1b99361
to
e1c4eb7
Compare
Suggested Changes are done. |
I think it's ok to merge this, the new changes made sense, only observation:
The route described in that use case doesn't exist anymore, which I don't find problematic, since the report is downloadable on other route without the |
Thanks for the heads-up, you are right in the refactoring i changed the route to match the activity report. I will push a update wihtout those changes. |
4144688
to
ef10845
Compare
Unaccepted Assets Export fixed
ef10845
to
ab4a234
Compare
Updated the PR to fix the merge conflicts from the v6 merge to develop. |
I'll approve this PR, but man is this going to be ugly when we merge to master. :( We've done a lot of hot fixes on master for asset acceptance and stuff. |
That sucks :( Thanks for merging nevertheless, I will happily test the changes on RC when it drops. |
Can't wait for a resend and delete unaccapted asset funcionality 😍 |
Description
Added unaccepted Assets Report Actions (send reminder, delete) added, this allows to resend the Asset acceptence notification to the user and to delete a unaccepted entry.
Fixed unaccepted Assets Export, report is currently broken, this error also occurs on the demo instance https://demo.snipeitapp.com/reports/export/unaccepted_assets
Adds #9378
Adds #9514
EDIT: This should also Fixes #2294 as this is the last missing feature in this request.
This is my first bigger PR, I am not sure the functions sentAssetAcceptanceReminder and deleteAssetAcceptance are at the right place. There are also no added tests for the functions as I am not sure how to implement them.
Feedback would be appreciated.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: