snipe-it/app/Http/Transformers
snipe 8a6713d5c0
WIP - Improved requested assets (#5289)
* WIP - beginning of improved requested assets

- Use Ajax tables for faster loading
- Use new notifications for requesting an asset

TODO:
- Use ajax tables for requestable asset models
- Use new notifications for canceling an asset request
- Expire requests once the asset has been checked out to the requesting user

* Only show asset name in email if it has one

* Refactor requested method to only include non-canceled requests

* Refactored requestable assets to log request and cancelation

* Added softdeletes on checkout requests

* Differentiate between canceling and deleting requests

* Added asset request cancelation notification

* Added timestamps and corrected unique key on requests table

* Improved requests view

* Re-use blade for cancel/request email

* Refactored BS table formatter for requested assets

* Location name min reduced to 2

* Added PAT test as maintenance option

This needs to be refactored into database-driven options with a UI

* Better slack message

* Added getImageUrl method for assets

* Include qty in request notifications

TODO:
- Try to pull requested info from original request for cancelation, otherwise it will default to 1

* Removed old asset request/cancel emails

* Added user profile asset request routes

* Added profile controller requested assets method

* Added blade link to requested assets for profile view

* Sort user history desc

* Added requested assets blade

* Added canceled at to checkoutRequest method

* Include qty in request

* Fixed comment, removed allowed_columns

* Removed Queable methods, since we don’t use a queue

* Fixed return type in method doc

* Fixed version number

* Changed id to user_id for clarity
2018-04-04 17:33:02 -07:00
..
AccessoriesTransformer.php Api tests (#5096) 2018-02-24 19:01:34 -08:00
ActionlogsTransformer.php Fixed incorrect next audit date if asset override 2018-02-21 01:18:21 -08:00
AssetMaintenancesTransformer.php Check for associated maintenance asset 2018-03-07 22:22:36 -08:00
AssetModelsTransformer.php Api tests2 (#5098) 2018-02-25 12:10:02 -08:00
AssetsTransformer.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
CategoriesTransformer.php Add sorting and additional category types to dashboard categories 2017-11-21 20:33:30 -08:00
CompaniesTransformer.php Added Company policy to fix company deletion issue 2018-01-19 17:51:28 -08:00
ComponentsAssetsTransformer.php Added additional permissions for checkin/checkout buttons 2017-03-11 12:14:10 -08:00
ComponentsTransformer.php Fixed #4557 - added missing fields in components/consumables list view 2017-12-05 00:40:30 -08:00
ConsumablesTransformer.php Fixed #4557 - added missing fields in components/consumables list view 2017-12-05 00:40:30 -08:00
CustomFieldsetsTransformer.php Fixes #3775 - added missing created_at and updated_at fields 2017-07-29 17:01:03 -07:00
CustomFieldsTransformer.php Fixed #5160 - make field_values readable via custom fields API 2018-03-06 13:11:45 -08:00
DatatablesTransformer.php Additional API routes and controllers for models, suppliers, users, locations and status labels 2017-01-13 04:50:20 -08:00
DepartmentsTranformer.php Improved - disallow delete if not elgible in UI 2017-12-12 07:03:31 -08:00
DepreciationsTransformer.php Fixes #3774 - fixes for inconsistent API responses (‘’ vs null) and adds escaping 2017-07-25 23:40:30 -07:00
GroupsTransformer.php Fixes #4043 - standardize groups API response 2017-09-27 15:18:29 -07:00
ImportsTransformer.php Add laravel routes to javascript (#4092) 2017-10-01 12:59:55 -07:00
LicenseSeatsTransformer.php Added location to seats transformer 2018-01-10 20:36:27 -08:00
LicensesTransformer.php Check for gate on license key display 2017-12-05 16:26:23 -08:00
LocationsTransformer.php Features/better table options (#5018) 2018-02-16 13:22:55 -08:00
ManufacturersTransformer.php Fixed #2402 - add ability to restore manufacturers 2018-03-03 18:46:19 -08:00
SelectlistTransformer.php Set the items array variable for no results 2017-11-04 01:23:50 -07:00
StatuslabelsTransformer.php Fixed #5138 - added default_label flag to status labels 2018-03-05 22:04:16 -08:00
SuppliersTransformer.php Fixed transformers to use new singleton upload urls 2017-11-07 11:11:47 -08:00
UsersTransformer.php Fixed #4817 - [BREAKING API CHANGE] - changed user API response from firstname, lastname to first_name, last_name 2018-01-17 13:25:11 -08:00