Commit graph

786 commits

Author SHA1 Message Date
snipe
dc38e575d9 Allow date/time formatting selection in settings 2017-03-03 17:29:41 -08:00
snipe
c6c3ddba3e Remove detail() presenter 2017-02-23 17:01:01 -08:00
snipe
ce2babcafb Fixed name display in transformer for asset listing 2017-02-23 17:00:50 -08:00
Andrea Bergamasco
c0c02eebd2 REST API - Refactoring of routes file, more tests added (#3345)
* Toggles the disabled state of auto_increment_prefix

To insert a prefix you had to toggle the checkbox, save the settings and reload. With this script it is immediate. Fixes #1390

* Delete asset image: made checkbox more visible

Related to #3153

* Added personal-access-token component

* Created basic API testing configuration

* First version of /components endpoind cest

* On-the-fly bearer token generation

* Completed testing of PATCH and PUT methods

* Added /components/{id}/assets route with tests

* Updated route and dataTable in view

* Completed test assertion

* Added links to assets in ComponentsAssets view

* Linked Company in AssetView page

* Fixed purchase_cost format expectation in ApiComponentsCest

* Refactored api routes file

Sorted all prefixes in alphabetical order, removed duplicate routes. For every prefix I placed first Route::resource and then any additional route in a Route::group. Expanded arrays for readability and consistency. Removed useless calls as create and edit everywhere.

* Refactored and added one more test to ApiComponentsAssetsCest

* Marked one test as incomplete, 404 response should return json

* Fixed value expectation

* Refactored getToken()

* Added API debugging routes

* Added more information to ValidationException reporting

Now the payload contains the validation errors for each invalid
attribute.

* /apitests: refactored expectations in component assertions

* Created ApiAssetsCest

* /apitests: Cleanup in Exceptions/Handler

* Reverted change to use

* Marked two tests as incomplete, looking for solutions
2017-02-23 16:32:35 -08:00
snipe
9ccaad8b9c Added created_at and modified_at to asset listing/api 2017-02-23 16:23:02 -08:00
snipe
9e7f998df5 Add model_number to accessory search 2017-02-22 22:55:20 -08:00
Andrea Bergamasco
e7f7d739ed Bugfixes based on functional tests (#3338)
* Toggles the disabled state of auto_increment_prefix

To insert a prefix you had to toggle the checkbox, save the settings and reload. With this script it is immediate. Fixes #1390

* Delete asset image: made checkbox more visible

Related to #3153

* Added personal-access-token component

* Created basic API testing configuration

* First version of /components endpoind cest

* On-the-fly bearer token generation

* Completed testing of PATCH and PUT methods

* Added /components/{id}/assets route with tests

* Updated route and dataTable in view

* Completed test assertion

* Added links to assets in ComponentsAssets view

* Linked Company in AssetView page

* Bugfixes based on functional tests

* Removed unused function

* Marked tests as incomplete

* Added check for  existence in groups/edit.blade.php
2017-02-22 22:49:19 -08:00
Daniel Meltzer
ad9470b6f8 Assorted fixed (#3332)
* Better error handling of failed file uploads.  Also improve formatting of modal dialog

* Readd app.js to the js build, fixes collapsing sidebar

* Update JS

* Fix font size.  We need to explicitly set the font size for the table because everywhere else that comes from bootstrap-tables
2017-02-22 22:49:06 -08:00
snipe
8c20c2bd39 Fixed Illuminate path 2017-02-22 22:20:57 -08:00
snipe
904be03ffd Merge branch 'develop' of github.com:snipe/snipe-it into develop 2017-02-22 22:20:32 -08:00
snipe
53ba2bbb4e Updated method for eager loading assets 2017-02-21 15:39:59 -08:00
snipe
2c6f323820 Increase max EOL 2017-02-21 15:39:46 -08:00
snipe
f520eaa6ce Increase max depreciation months 2017-02-21 15:39:39 -08:00
Andrea Bergamasco
fde46251de Components Assets view + stubbed API tests (#3325)
* Toggles the disabled state of auto_increment_prefix

To insert a prefix you had to toggle the checkbox, save the settings and reload. With this script it is immediate. Fixes #1390

* Delete asset image: made checkbox more visible

Related to #3153

* Added personal-access-token component

* Created basic API testing configuration

* First version of /components endpoind cest

* On-the-fly bearer token generation

* Completed testing of PATCH and PUT methods

* Added /components/{id}/assets route with tests

* Updated route and dataTable in view

* Completed test assertion

* Added links to assets in ComponentsAssets view

* Linked Company in AssetView page
2017-02-21 14:26:46 -08:00
snipe
edf36cd850 Sigh. 2017-02-17 18:30:48 -08:00
snipe
a710c98b50 Set string length because laravel is dumb sometimes 2017-02-17 18:26:53 -08:00
snipe
8fe8ff71e8 Category improvements 2017-02-16 00:32:33 -08:00
snipe
c67b44b3d5 Moving license index to new API format 2017-02-10 18:43:30 -08:00
snipe
74c5c55838 Removed outdated comment 2017-02-08 18:25:06 -08:00
snipe
eea90dda78 Added Gate integration into API transformers 2017-02-08 18:24:55 -08:00
snipe
2892e32095 Set visible to true for checkin/checkout buttons 2017-02-08 18:20:44 -08:00
snipe
8cce1a3882 Fixed users formatter method 2017-02-08 18:20:23 -08:00
snipe
86198badbb Added more company_id filtering, more transformers 2017-02-08 08:48:41 -08:00
snipe
72ec362f72 Search on status label type 2017-02-08 03:37:44 -08:00
snipe
4cf01e4f48 Added ability to search by company_id and location_id 2017-02-08 03:31:42 -08:00
snipe
6d40a98a16 User assets presenter for column headers 2017-02-06 18:49:08 -08:00
snipe
584e2ba618 Added a space 2017-02-06 18:47:54 -08:00
snipe
1751a8c0e0 Switched to presented for ugly BS table column headers 2017-02-03 22:20:11 -08:00
snipe
d37b9fe169 Use hardrware listing for status labels detail link 2017-02-03 20:34:09 -08:00
snipe
98e0ecbd88 Added manufacturer sorting on models 2017-02-03 20:20:03 -08:00
snipe
9cae6066a0 Added asset by manufacturer listing 2017-02-03 19:52:00 -08:00
snipe
f1c4aed5b5 Removed additional groups API fields 2017-02-03 19:35:22 -08:00
snipe
1e2a23e955 Use main assets API to pull view pages for assets listings 2017-02-03 19:34:24 -08:00
snipe
729b709de2 Include notes in custom asset report 2017-02-03 02:16:37 -08:00
snipe
f1592aa63f Tighter asset API responses, sanitization 2017-02-03 02:04:17 -08:00
snipe
6c1a827ed0 Added warranty info to listing 2017-02-03 01:45:12 -08:00
snipe
d19cc9d9c1 Added legacy redirector 2017-02-02 18:14:25 -08:00
snipe
12c5ca67ff Pulled accidental debugging exit 2017-02-01 18:56:47 -08:00
snipe
541a5e6776 Groups API starter
Edit/Create still broken for some reason
2017-02-01 18:50:28 -08:00
snipe
464c524375 Depreciations API 2017-02-01 17:59:03 -08:00
snipe
7086ac8a8b Tweaks to status labelas listing display 2017-02-01 17:48:28 -08:00
snipe
a80af854ba Switch companyName to company 2017-01-26 21:05:33 -08:00
snipe
99d837fa50 Added API methods and UI to view assets associated with a particular model 2017-01-26 21:02:59 -08:00
snipe
8d50bb19af Switched to route from redirect->to 2017-01-26 20:13:59 -08:00
snipe
ec7e89ecb8 Added Helper 2017-01-26 20:08:15 -08:00
snipe
377cb8e5d1 Use Locations transformer for location API 2017-01-26 20:08:06 -08:00
snipe
c7003897ae Fixed Locations transformer for assigned assets 2017-01-26 20:07:46 -08:00
snipe
231f4dce07 Basic components API 2017-01-26 19:16:06 -08:00
snipe
5e9e6da577 Basic consumables API 2017-01-26 18:46:18 -08:00
snipe
9ac9c6f1bc Updated convertUnicodeDbSlug to use Patchwork if intl isn’t installed 2017-01-26 04:59:14 -08:00