snipe-it/app/Models
Daniel Meltzer f432f98e12 Importer tests + Fixes (#3733)
* Fix Bug in User::generateFormattedNameFromFullName

In a name "John Doe", this method would split it into "John" and " Doe",
Leaving a space in the last name when importing to the database.  Strip
this space.

* Cleanup/fix some item mapping.

Also make some changes to the importer schema to allow for unit testing.
Generate a default item mapping, and then merge that with any custom
mappings.

* Beginning work on importer unit tests.

* Strip out testrun branches from importer.  It added a lot of complexity and was not terribly useful with web importer as it stood, might reconsider down the road however.

* Normalize the mapped keys when using custom field mappings.

* Add test for custom asset import mapping.

* Make all unit tests inherit from a new custom base.

This baseclass currently calls Artisan::migrate() and seeds a Settings
instance.  This fixes unit tests after the autoincrement bits.

* Store requestable as a boolean.  Fixes some import oddities

* Work on tests for accessory importer.

* Test for custom mapping of accessory import, also adjust the internal field for purchase date.

* Update default locale fallback for currency detection

* Fix Reassignable in consumable as well.

* More importer tests and fixes.
2017-07-11 20:37:02 -07:00
..
Accessory.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
Actionlog.php Added targetType method 2017-05-23 14:31:14 -07:00
Asset.php Only add an update log message if the asset isn’t being checked in or out 2017-07-08 03:38:39 -07:00
AssetMaintenance.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
AssetModel.php Increase max EOL 2017-02-21 15:39:46 -08:00
Category.php Vue importer (#3235) 2017-01-25 21:29:23 -08:00
CheckoutRequest.php Port more assignedUser to assignedTo. 2016-12-29 09:31:16 -05:00
Company.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
CompanyableChildScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableChildTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CompanyableScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Component.php Importer: Add License Importer and refactor (#3143) 2017-01-10 16:19:18 -08:00
Consumable.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
ConsumableAssignment.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CustomField.php Importer fixes v2 (#3524) 2017-05-03 12:14:35 -07:00
CustomFieldset.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
Department.php Allow manager to be null for dept 2017-05-23 02:49:00 -07:00
Depreciable.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
Depreciation.php Fixed Illuminate path 2017-02-22 22:20:57 -08:00
Group.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
ICompanyableChild.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Import.php Importer mapping - v1 (#3677) 2017-06-21 16:37:37 -07:00
Ldap.php Add support for location-specific LDAP OUs. (#3176) 2017-01-11 23:37:14 -08:00
License.php Importer: Add License Importer and refactor (#3143) 2017-01-10 16:19:18 -08:00
LicenseSeat.php Actionlog Class: Improvements and polymorphism (#2561) 2016-09-06 19:39:42 -07:00
Location.php Added some hidden fields 2017-01-13 00:12:26 -08:00
Loggable.php [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07:00
Manufacturer.php Fixes #3311 - more fields for manufacturers 2017-03-10 22:08:59 -08:00
Requestable.php Checkout Improvements, and initial support for requesting an asset model (#2573) 2016-09-15 19:58:27 -07:00
Setting.php Require first name field if LDAP is enabled 2017-07-08 01:40:56 -07:00
SnipeModel.php Importer: Add License Importer and refactor (#3143) 2017-01-10 16:19:18 -08:00
Statuslabel.php More bootstrap tables formatting 2017-01-24 22:25:17 -08:00
Supplier.php Cleanup controller escaping (#3084) 2016-12-19 22:00:50 -08:00
Throttle.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
User.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00