snipe-it/app/Http/Controllers/Api
Brady Wetherington d2b7828569 This is a squashed branch of all of the various commits that make up the new HasCustomFields trait.
This should allow us to add custom fields to just about anything we want to within Snipe-IT.

Below are the commits that have been squashed together:

Initial decoupling of custom field behavior from Assets for re-use

Add new DB columns to Custom Fields and fieldsets for 'type'

WIP: trying to figure out UI for custom fields for things other than Assets, find problematic places

Real progress towards getting to where this stuff might actually work...

Fix the table-name determining code for Custom Fields

Getting it closer to where Assets at least work

Rename the trait to it's new, even better name

Solid progress on the new Trait!

WIP: HasCustomFields, still working some stuff out

Got some basics working; creating custom fields and stuff

HasCustomFields now validates and saves

Starting to yank the other boilerplate code as things start to work (!)

Got the start of defaultValuesForCustomField() working

More progress (squash me!)

Add migrations for default_values_for_custom_fields table

WIP: more towards hasCustomFields trait

Progress cleaning up the PR, fixing FIXME's

New, passing HasCustomFieldsTrait test!

Fix date formatter helper for custom fields

Fixed more FIXME's
2024-06-06 13:35:38 +01:00
..
AccessoriesController.php Fixes path for redirect response 2024-05-29 18:01:40 +01:00
AssetMaintenancesController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
AssetModelsController.php This is a squashed branch of all of the various commits that make up the new HasCustomFields trait. 2024-06-06 13:35:38 +01:00
AssetsController.php This is a squashed branch of all of the various commits that make up the new HasCustomFields trait. 2024-06-06 13:35:38 +01:00
CategoriesController.php Use singleton for offset 2023-10-16 23:23:43 +01:00
CompaniesController.php Fix company asset counts for dashboard widget 2024-02-05 15:55:53 +00:00
ComponentsController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
ConsumablesController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
CustomFieldsController.php Fixes path for redirect response 2024-05-29 18:01:40 +01:00
CustomFieldsetsController.php This is a squashed branch of all of the various commits that make up the new HasCustomFields trait. 2024-06-06 13:35:38 +01:00
DepartmentsController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
DepreciationsController.php Use singleton for offset 2023-10-16 23:23:43 +01:00
GroupsController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
ImportController.php Use artisan facade 2024-05-29 12:40:05 +01:00
LabelsController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
LicensesController.php Allow sorting on min_amt 2024-02-28 11:05:13 +00:00
LicenseSeatsController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
LocationsController.php fixes API location delete 2024-03-19 15:25:28 -07:00
ManufacturersController.php Changed verb to “restore” from “restored” 2023-11-22 20:08:41 +00:00
PredefinedKitsController.php Use singleton for offset 2023-10-16 23:23:43 +01:00
ProfileController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
ReportsController.php Wrap where logic in additional where statement to protect appended params 2024-03-27 15:36:00 -04:00
SettingsController.php Cleaned up facade names and references 2024-05-29 12:38:15 +01:00
StatuslabelsController.php Use singleton for offset 2023-10-16 23:23:43 +01:00
SuppliersController.php Use singleton for offset 2023-10-16 23:23:43 +01:00
UsersController.php Fixed some missing strings and checks 2024-06-01 04:01:04 +01:00