snipe-it/app/Http/Controllers/Api
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
..
AccessoriesController.php Constrain accessory by category ID if one is passed 2017-11-14 16:47:21 -08:00
AssetMaintenancesController.php Fixed #5151 - added asset tag to maintenances 2018-03-05 16:26:40 -08:00
AssetModelsController.php Api tests2 (#5098) 2018-02-25 12:10:02 -08:00
AssetsController.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
CategoriesController.php Add sorting and additional category types to dashboard categories 2017-11-21 20:33:30 -08:00
CompaniesController.php Fixes #4639 2017-12-15 18:54:38 -08:00
ComponentsController.php Fixed #5293 - component category drilldown 2018-04-02 16:12:19 -07:00
ConsumablesController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
CustomFieldsController.php API for (dis)associating fields with fieldsets (#4881) 2018-01-22 13:14:04 -08:00
CustomFieldsetsController.php API for (dis)associating fields with fieldsets (#4881) 2018-01-22 13:14:04 -08:00
DepartmentsController.php Make department columns sortable 2018-02-21 05:04:20 -08:00
DepreciationsController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
GroupsController.php Features/better table options (#5018) 2018-02-16 13:22:55 -08:00
ImportController.php Change duplicate header check to return 1-based header indices 2018-03-22 19:40:12 -07:00
LicensesController.php Api tests2 (#5098) 2018-02-25 12:10:02 -08:00
LocationsController.php Added - Order location by manager 2018-02-21 05:09:40 -08:00
ManufacturersController.php Fixed #2402 - add ability to restore manufacturers 2018-03-03 18:46:19 -08:00
ProfileController.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
ReportsController.php Features/better table options (#5018) 2018-02-16 13:22:55 -08:00
SettingsController.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
StatuslabelsController.php Fixed #5138 - added default_label flag to status labels 2018-03-05 22:04:16 -08:00
SuppliersController.php Removed gates from selectlist method 2017-11-09 10:51:55 -08:00
UsersController.php Fixed 2FA reset button 2018-02-26 15:43:49 -08:00