Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
-- MySQL dump 10.13 Distrib 5.7.15, for Linux (x86_64)
--
-- Host: localhost Database: snipeittests
-- ------------------------------------------------------
-- Server version 5.7.15-0ubuntu0.16.04.1
/* !40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */ ;
/* !40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */ ;
/* !40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */ ;
/* !40101 SET NAMES utf8 */ ;
/* !40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */ ;
/* !40103 SET TIME_ZONE='+00:00' */ ;
/* !40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */ ;
/* !40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */ ;
/* !40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */ ;
/* !40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */ ;
--
-- Table structure for table `accessories`
--
DROP TABLE IF EXISTS ` accessories ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` accessories ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` category_id ` int ( 11 ) DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` qty ` int ( 11 ) NOT NULL DEFAULT ' 0 ' ,
` requestable ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` location_id ` int ( 11 ) DEFAULT NULL ,
` purchase_date ` date DEFAULT NULL ,
2016-11-20 19:59:57 -08:00
` purchase_cost ` decimal ( 20 , 2 ) DEFAULT NULL ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
` order_number ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` company_id ` int ( 10 ) unsigned DEFAULT NULL ,
` min_amt ` int ( 11 ) DEFAULT NULL ,
` manufacturer_id ` int ( 11 ) DEFAULT NULL ,
2016-11-20 19:59:57 -08:00
` model_number ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 17 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `accessories`
--
LOCK TABLES ` accessories ` WRITE ;
/* !40000 ALTER TABLE `accessories` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` accessories ` VALUES ( 1 , ' Voluptatem enim. ' , 15 , NULL , 8 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 1 , NULL , NULL , NULL , 2 , 2 , NULL , NULL ) , ( 2 , ' Dolores aut aut. ' , 14 , NULL , 7 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 3 , NULL , NULL , NULL , 3 , 1 , NULL , NULL ) , ( 3 , ' Quaerat corrupti. ' , 13 , NULL , 9 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 3 , NULL , NULL , NULL , 3 , 1 , NULL , NULL ) , ( 4 , ' Expedita mollitia. ' , 12 , NULL , 9 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 4 , NULL , NULL , NULL , 1 , 2 , NULL , NULL ) , ( 5 , ' Est culpa totam. ' , 11 , NULL , 8 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 1 , NULL , NULL , NULL , 3 , 2 , NULL , NULL ) , ( 6 , ' Quae esse vero. ' , 12 , NULL , 7 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 3 , NULL , NULL , NULL , 4 , 1 , NULL , NULL ) , ( 7 , ' Nemo rerum soluta. ' , 14 , NULL , 6 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 4 , NULL , NULL , NULL , 3 , 1 , NULL , NULL ) , ( 8 , ' Ut error deleniti. ' , 13 , NULL , 7 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 5 , NULL , NULL , NULL , 4 , 2 , NULL , NULL ) , ( 9 , ' Est ut ad et quos. ' , 13 , NULL , 8 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 3 , NULL , NULL , NULL , 3 , 2 , NULL , NULL ) , ( 10 , ' Itaque voluptas est. ' , 13 , NULL , 9 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 1 , NULL , NULL , NULL , 2 , 1 , NULL , NULL ) , ( 11 , ' Est aspernatur in. ' , 12 , NULL , 6 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 2 , NULL , NULL , NULL , 3 , 1 , NULL , NULL ) , ( 12 , ' Consequatur quo a. ' , 15 , NULL , 10 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 4 , NULL , NULL , NULL , 2 , 2 , NULL , NULL ) , ( 13 , ' Placeat perferendis. ' , 14 , NULL , 10 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-21 00:33:27 ' , ' 2016-11-21 00:33:27 ' , 3 , NULL , NULL , NULL , 3 , 2 , NULL , NULL ) , ( 14 , ' Dolore corrupti. ' , 12 , NULL , 7 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 3 , NULL , NULL , NULL , 4 , 2 , NULL , NULL ) , ( 15 , ' Ut pariatur. ' , 14 , NULL , 5 , 0 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , 4 , NULL , NULL , NULL , 2 , 1 , NULL , NULL ) , ( 16 , ' TestAccessory ' , 19 , 1 , 12 , 0 , ' 2016-11-21 00:33:26 ' , ' 2016-11-21 00:33:26 ' , NULL , 5 , ' 2016-01-01 ' , 25 . 00 , ' 12345 ' , 4 , 6 , 8 , ' ' ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `accessories` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `accessories_users`
--
DROP TABLE IF EXISTS ` accessories_users ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` accessories_users ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` accessory_id ` int ( 11 ) DEFAULT NULL ,
` assigned_to ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `accessories_users`
--
LOCK TABLES ` accessories_users ` WRITE ;
/* !40000 ALTER TABLE `accessories_users` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `accessories_users` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `action_logs`
--
DROP TABLE IF EXISTS ` action_logs ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` action_logs ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` action_type ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` target_id ` int ( 11 ) DEFAULT NULL ,
` target_type ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` location_id ` int ( 11 ) DEFAULT NULL ,
` note ` text COLLATE utf8_unicode_ci ,
` filename ` text COLLATE utf8_unicode_ci ,
` item_type ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` item_id ` int ( 11 ) NOT NULL ,
` expected_checkin ` date DEFAULT NULL ,
` accepted_id ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` thread_id ` int ( 11 ) DEFAULT NULL ,
` company_id ` int ( 11 ) DEFAULT NULL ,
` accept_signature ` varchar ( 100 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
KEY ` action_logs_thread_id_index ` ( ` thread_id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 92 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `action_logs`
--
LOCK TABLES ` action_logs ` WRITE ;
/* !40000 ALTER TABLE `action_logs` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` action_logs ` VALUES ( 1 , 26 , ' checkout ' , 39 , ' App\\Models\\User ' , NULL , ' Minus architecto autem neque vel ut. ' , NULL , ' App\\Models\\Asset ' , 36 , NULL , NULL , ' 1972-01-14 18:00:46 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 2 , NULL ) , ( 2 , 34 , ' checkout ' , 42 , ' App\\Models\\User ' , NULL , ' Odio optio vitae ipsa facere repudiandae consequatur. ' , NULL , ' App\\Models\\Asset ' , 54 , NULL , NULL , ' 2003-10-04 22:32:16 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 3 , NULL ) , ( 3 , 40 , ' checkout ' , 36 , ' App\\Models\\User ' , NULL , ' Aliquid eligendi nesciunt expedita repudiandae alias veritatis hic. ' , NULL , ' App\\Models\\Asset ' , 1 , NULL , NULL , ' 1978-02-16 03:07:32 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 4 , NULL ) , ( 4 , 41 , ' checkout ' , 40 , ' App\\Models\\User ' , NULL , ' Earum corrupti impedit ab sed placeat. ' , NULL , ' App\\Models\\Asset ' , 28 , NULL , NULL , ' 2009-12-09 21:33:02 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 4 , NULL ) , ( 5 , 34 , ' checkout ' , 34 , ' App\\Models\\User ' , NULL , ' Exercitationem aut repellendus officiis impedit pariatur aut rerum. ' , NULL , ' App\\Models\\Asset ' , 4 , NULL , NULL , ' 1978-12-03 19:18:58 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 3 , NULL ) , ( 6 , 29 , ' checkout ' , 31 , ' App\\Models\\User ' , NULL , ' Dolores nostrum deleniti laborum voluptatem quas eligendi iste et. ' , NULL , ' App\\Models\\Asset ' , 36 , NULL , NULL , ' 2000-03-22 00:11:42 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 2 , NULL ) , ( 7 , 43 , ' checkout ' , 44 , ' App\\Models\\User ' , NULL , ' Voluptate et omnis omnis quidem impedit mollitia harum. ' , NULL , ' App\\Models\\Asset ' , 97 , NULL , NULL , ' 2006-07-17 06:26:47 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 1 , NULL ) , ( 8 , 27 , ' checkout ' , 27 , ' App\\Models\\User ' , NULL , ' Aspernatur dolores non ab cum. ' , NULL , ' App\\Models\\Asset ' , 5 , NULL , NULL , ' 2000-04-11 13:21:42 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 2 , NULL ) , ( 9 , 25 , ' checkout ' , 32 , ' App\\Models\\User ' , NULL , ' Et ipsa adipisci nisi beatae. ' , NULL , ' App\\Models\\Asset ' , 29 , NULL , NULL , ' 1970-08-21 14:33:04 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 1 , NULL ) , ( 10 , 40 , ' checkout ' , 36 , ' App\\Models\\User ' , NULL , ' Non sunt architecto omnis delectus dolorem qui est. ' , NULL , ' App\\Models\\Asset ' , 40 , NULL , NULL , ' 2003-01-07 19:51:30 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 4 , NULL ) , ( 11 , 24 , ' checkout ' , 25 , ' App\\Models\\User ' , NULL , ' Explicabo itaque eos dolor officia itaque labore ipsam. ' , NULL , ' App\\Models\\Asset ' , 48 , NULL , NULL , ' 2013-12-15 02:06:16 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 1 , NULL ) , ( 12 , 40 , ' checkout ' , 37 , ' App\\Models\\User ' , NULL , ' Quibusdam minima quisquam veniam est repudiandae in. ' , NULL , ' App\\Models\\Asset ' , 49 , NULL , NULL , ' 2000-04-10 18:27:00 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 4 , NULL ) , ( 13 , 34 , ' checkout ' , 34 , ' App\\Models\\User ' , NULL , ' Magnam consectetur ut unde omnis corporis perferendis. ' , NULL , ' App\\Models\\Asset ' , 83 , NULL , NULL , ' 1994-12-22 15:29:46 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 3 , NULL ) , ( 14 , 34 , ' checkout ' , 34 , ' App\\Models\\User ' , NULL , ' Velit ut nam voluptates et et repellendus. ' , NULL , ' App\\Models\\Asset ' , 92 , NULL , NULL , ' 1993-03-25 07:22:31 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , 3 , NULL ) , ( 15 , 25 , ' checkout ' , 24 , ' App\\Models\\User ' , NULL , ' Totam quia modi voluptate soluta. ' , NULL , ' App\\Models\\Asset ' , 50 , NULL , NULL , ' 1983-12-24 12:33:35 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , 1 , NULL ) , ( 16 , 35 , ' checkout ' , 44 , ' App\\Models\\User ' , NULL , ' Quas occaecati necessitatibus distinctio. ' , NULL , ' App\\Models\\Asset ' , 84 , NULL , NULL , ' 1999-02-04 03:31:56 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , 1 , NULL ) , ( 17 , 42 , ' checkout ' , 42 , ' App\\Models\\User ' , NULL , ' Dolores aut recusandae aut deserunt magni non. ' , NULL , ' App\\Models\\Asset ' , 2 , NULL , NULL , ' 2014-08-20 09:31:19 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , 3 , NULL ) , ( 18 , 24 , ' checkout ' , 24 , ' App\\Models\\User ' , NULL , ' Officiis porro voluptatem placeat aut voluptas quis est. ' , NULL , ' App\\Models\\Asset ' , 60 , NULL , NULL , ' 1993-10-15 18:56:40 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , 1 , NULL ) , ( 19 , 43 , ' checkout ' , 28 , ' App\\Models\\User ' , NULL , ' Necessitatibus repellat itaque illo qui officiis aut non. ' , NULL , ' App\\Models\\Asset ' , 86 , NULL , NULL , ' 1980-01-26 00:20:38 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , 1 , NULL ) , ( 20 , 36 , ' checkout ' , 41 , ' App\\Models\\User ' , NULL , ' Vel nihil ut et vel et doloribus ut. ' , NULL , ' App\\Models\\Asset ' , 62 , NULL , NULL , ' 2000-01-13 15:45:17 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , 4 , NULL ) , ( 21 , 42 , ' checkout ' , 30 , ' App\\Models\\User ' , NULL , ' Reprehenderit porro tempore saepe nisi illum qui. ' , NULL , ' App\\Mo
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `action_logs` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `asset_logs`
--
DROP TABLE IF EXISTS ` asset_logs ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` asset_logs ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` action_type ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` asset_id ` int ( 11 ) NOT NULL ,
` checkedout_to ` int ( 11 ) DEFAULT NULL ,
` location_id ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` asset_type ` varchar ( 100 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` note ` text COLLATE utf8_unicode_ci ,
` filename ` text COLLATE utf8_unicode_ci ,
` requested_at ` datetime DEFAULT NULL ,
` accepted_at ` datetime DEFAULT NULL ,
` accessory_id ` int ( 11 ) DEFAULT NULL ,
` accepted_id ` int ( 11 ) DEFAULT NULL ,
` consumable_id ` int ( 11 ) DEFAULT NULL ,
` expected_checkin ` date DEFAULT NULL ,
` component_id ` int ( 11 ) DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `asset_logs`
--
LOCK TABLES ` asset_logs ` WRITE ;
/* !40000 ALTER TABLE `asset_logs` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `asset_logs` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `asset_maintenances`
--
DROP TABLE IF EXISTS ` asset_maintenances ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` asset_maintenances ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` asset_id ` int ( 10 ) unsigned NOT NULL ,
` supplier_id ` int ( 10 ) unsigned NOT NULL ,
` asset_maintenance_type ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` title ` varchar ( 100 ) COLLATE utf8_unicode_ci NOT NULL ,
` is_warranty ` tinyint ( 1 ) NOT NULL ,
` start_date ` date NOT NULL ,
` completion_date ` date DEFAULT NULL ,
` asset_maintenance_time ` int ( 11 ) DEFAULT NULL ,
` notes ` longtext COLLATE utf8_unicode_ci ,
2016-11-20 19:59:57 -08:00
` cost ` decimal ( 20 , 2 ) DEFAULT NULL ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
` deleted_at ` datetime DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `asset_maintenances`
--
LOCK TABLES ` asset_maintenances ` WRITE ;
/* !40000 ALTER TABLE `asset_maintenances` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `asset_maintenances` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `asset_uploads`
--
DROP TABLE IF EXISTS ` asset_uploads ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` asset_uploads ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` filename ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` asset_id ` int ( 11 ) NOT NULL ,
` filenotes ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `asset_uploads`
--
LOCK TABLES ` asset_uploads ` WRITE ;
/* !40000 ALTER TABLE `asset_uploads` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `asset_uploads` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `assets`
--
DROP TABLE IF EXISTS ` assets ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` assets ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` asset_tag ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` model_id ` int ( 11 ) DEFAULT NULL ,
` serial ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` purchase_date ` date DEFAULT NULL ,
2016-11-20 19:59:57 -08:00
` purchase_cost ` decimal ( 20 , 2 ) DEFAULT NULL ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
` order_number ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` assigned_to ` int ( 11 ) DEFAULT NULL ,
` notes ` text COLLATE utf8_unicode_ci ,
` image ` text COLLATE utf8_unicode_ci ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` physical ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` status_id ` int ( 11 ) DEFAULT NULL ,
` archived ` tinyint ( 1 ) DEFAULT NULL ,
` warranty_months ` int ( 11 ) DEFAULT NULL ,
` depreciate ` tinyint ( 1 ) DEFAULT NULL ,
` supplier_id ` int ( 11 ) DEFAULT NULL ,
` requestable ` tinyint ( 4 ) NOT NULL DEFAULT ' 0 ' ,
` rtd_location_id ` int ( 11 ) DEFAULT NULL ,
` _snipeit_mac_address ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` accepted ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` last_checkout ` datetime DEFAULT NULL ,
` expected_checkin ` date DEFAULT NULL ,
` company_id ` int ( 10 ) unsigned DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 102 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `assets`
--
LOCK TABLES ` assets ` WRITE ;
/* !40000 ALTER TABLE `assets` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` assets ` VALUES ( 1 , ' Sharable contextually-based function ' , ' 310455216 ' , 4 , ' de8ec8cb-387d-3861-accf-031a26b6da4b ' , ' 1989-11-14 ' , NULL , ' 3452948 ' , NULL , ' Error quas error libero suscipit qui hic non. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 4 , 0 , 1 , NULL , NULL , NULL , NULL , 4 ) , ( 2 , ' Digitized didactic capacity ' , ' 842399003 ' , 5 , ' c579659e-e6df-3f21-8b32-f2e5e60cb960 ' , ' 1975-02-19 ' , NULL , ' 5783754 ' , NULL , ' Quibusdam consectetur sunt perspiciatis error. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 4 , 1 , 4 , NULL , NULL , NULL , NULL , 3 ) , ( 3 , ' Enhanced executive groupware ' , ' 990185629 ' , 1 , ' 8e09a1b5-ecf1-3ea0-b045-f51fb5631fb8 ' , ' 1971-07-19 ' , NULL , ' 24388545 ' , NULL , ' Doloremque labore quos excepturi est accusamus at cumque a. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 2 , 0 , 3 , NULL , NULL , NULL , NULL , 1 ) , ( 4 , ' Customer-focused intangible complexity ' , ' 546752914 ' , 4 , ' 82ea2c28-c182-3c5d-b370-4c8c66b96d02 ' , ' 2000-11-27 ' , NULL , ' 34470480 ' , NULL , ' Assumenda consequatur dolores quo commodi. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 4 , 1 , 4 , NULL , NULL , NULL , NULL , 3 ) , ( 5 , ' Configurable client-driven support ' , ' 212535141 ' , 1 , ' 5efd5c23-b151-3a8b-87e3-4d3479571ba4 ' , ' 1988-09-22 ' , NULL , ' 3328283 ' , NULL , ' Ad est quidem aliquam quae voluptatem nam. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 2 , 1 , 5 , NULL , NULL , NULL , NULL , 2 ) , ( 6 , ' User-centric static toolset ' , ' 411277269 ' , 5 , ' e82002a4-450c-3ff2-9568-71e7e5b67b36 ' , ' 1972-05-18 ' , NULL , ' 3971980 ' , NULL , ' Ducimus quasi sed quis eius unde. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 5 , 0 , 3 , NULL , NULL , NULL , NULL , 2 ) , ( 7 , ' Virtual neutral monitoring ' , ' 1172159860 ' , 4 , ' 0a7a05c7-8b7b-3896-aa26-418dbc5f56ef ' , ' 1985-11-20 ' , NULL , ' 10377281 ' , NULL , ' Necessitatibus est et nam doloremque impedit enim libero qui. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 2 , 1 , 5 , NULL , NULL , NULL , NULL , 1 ) , ( 8 , ' Monitored mission-critical time-frame ' , ' 298965372 ' , 2 , ' 7c5cd287-32b1-30f5-979d-d50b24411c35 ' , ' 2000-01-03 ' , NULL , ' 25514597 ' , NULL , ' Aut harum dignissimos quia officia ipsum qui corporis laudantium. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 5 , 1 , 2 , NULL , NULL , NULL , NULL , 4 ) , ( 9 , ' Upgradable background structure ' , ' 1040526590 ' , 4 , ' 0c973af0-7192-39af-8d15-61df89c44516 ' , ' 2007-09-13 ' , NULL , ' 3935957 ' , NULL , ' Distinctio quia quod adipisci sunt. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 4 , 1 , 2 , NULL , NULL , NULL , NULL , 2 ) , ( 10 , ' Facetoface holistic task-force ' , ' 820364496 ' , 3 , ' 85e0b99c-9e20-3fa4-8fbc-b03c947496cf ' , ' 1992-05-08 ' , NULL , ' 40804751 ' , NULL , ' Quo velit fuga occaecati quia. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 4 , 0 , 5 , NULL , NULL , NULL , NULL , 2 ) , ( 11 , ' Team-oriented holistic service-desk ' , ' 993520225 ' , 1 , ' e6641a5d-34d5-318e-b4e0-a6c56c460194 ' , ' 1978-10-13 ' , NULL , ' 8692167 ' , NULL , ' Eum et voluptate omnis. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 4 , 0 , 2 , NULL , NULL , NULL , NULL , 3 ) , ( 12 , ' Configurable heuristic capability ' , ' 925029102 ' , 5 , ' 5bc69980-51fa-35bf-8dd4-18397ca99282 ' , ' 1998-02-05 ' , NULL , ' 31551001 ' , NULL , ' Praesentium et autem quis minima neque enim enim. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 3 , 0 , 2 , NULL , NULL , NULL , NULL , 4 ) , ( 13 , ' Expanded systemic forecast ' , ' 1194379470 ' , 1 , ' 52cbe397-fdcf-3502-9d05-fcb291bbc7a9 ' , ' 1976-09-12 ' , NULL , ' 33902721 ' , NULL , ' Suscipit excepturi magni voluptatem dolores veniam est. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 3 , 0 , 5 , NULL , NULL , NULL , NULL , 1 ) , ( 14 , ' Robust demand-driven knowledgeuser ' , ' 614105786 ' , 1 , ' 8d38ebeb-ae28-37f5-817f-ca9ee939c6ec ' , ' 1985-09-19 ' , NULL , ' 24172772 ' , NULL , ' Saepe dolorem atque atque quia debitis incidunt delectus. ' , NULL , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , 1 , NULL , 1 , NULL , NULL , NULL , 1 , 0 , 4 , NULL , NULL , NULL , NULL , 1 ) , ( 15 , ' Synergistic systemic circuit ' , ' 1346537212 ' , 4 , ' 46051bf4-eb05-35f2-b1a2-9cdf7101360f ' , ' 2015-03-14 ' , NULL , ' 3419670 ' , NULL , ' Doloribus rerum sint itaque cumque. ' , NULL , 1 , ' 2016-11-20 23
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `assets` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `categories`
--
DROP TABLE IF EXISTS ` categories ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` categories ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` eula_text ` longtext COLLATE utf8_unicode_ci ,
` use_default_eula ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` require_acceptance ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` category_type ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' asset ' ,
` checkin_email ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 27 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `categories`
--
LOCK TABLES ` categories ` WRITE ;
/* !40000 ALTER TABLE `categories` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` categories ` VALUES ( 1 , ' Soluta consequatur. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 2 , ' Saepe repellendus. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 3 , ' Hic dolores minus. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-21 00:33:32 ' , NULL , ' 2016-11-21 00:33:32 ' , NULL , 0 , 0 , ' asset ' , 0 ) , ( 4 , ' Qui necessitatibus. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 5 , ' Beatae accusamus. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 6 , ' Error cum omnis. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 7 , ' Ipsam repellat id. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 8 , ' Asperiores nesciunt. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 9 , ' Quia sit veniam. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 10 , ' Quaerat repellendus. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' asset ' , 0 ) , ( 11 , ' Atque fuga esse. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' accessory ' , 0 ) , ( 12 , ' Et illo error porro. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' accessory ' , 0 ) , ( 13 , ' Soluta ipsam ea. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' accessory ' , 0 ) , ( 14 , ' Repellat mollitia. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' accessory ' , 0 ) , ( 15 , ' Et reprehenderit. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' accessory ' , 0 ) , ( 16 , ' Quia unde qui. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' consumable ' , 0 ) , ( 17 , ' Sunt quo voluptatem. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' consumable ' , 0 ) , ( 18 , ' Voluptatum dolor. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' consumable ' , 0 ) , ( 19 , ' Et sed doloremque. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' consumable ' , 0 ) , ( 20 , ' Pariatur qui amet. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' consumable ' , 0 ) , ( 21 , ' Deleniti occaecati. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' component ' , 0 ) , ( 22 , ' Tenetur aut dolores. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' component ' , 0 ) , ( 23 , ' Quae a ullam maxime. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' component ' , 0 ) , ( 24 , ' Quo harum enim quo. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' component ' , 0 ) , ( 25 , ' Nesciunt molestias. ' , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , 0 , 0 , ' component ' , 0 ) , ( 26 , ' TestModel ' , ' 2016-11-21 00:33:32 ' , ' 2016-11-21 00:33:32 ' , 1 , NULL , ' lorem ipsum blah blah ' , 0 , 1 , ' accessory ' , 1 ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `categories` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `checkout_requests`
--
DROP TABLE IF EXISTS ` checkout_requests ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` checkout_requests ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` user_id ` int ( 11 ) NOT NULL ,
` requestable_id ` int ( 11 ) NOT NULL ,
` requestable_type ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` quantity ` int ( 11 ) NOT NULL DEFAULT ' 1 ' ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` checkout_requests_user_id_requestable_id_requestable_type_unique ` ( ` user_id ` , ` requestable_id ` , ` requestable_type ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `checkout_requests`
--
LOCK TABLES ` checkout_requests ` WRITE ;
/* !40000 ALTER TABLE `checkout_requests` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `checkout_requests` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `companies`
--
DROP TABLE IF EXISTS ` companies ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` companies ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` companies_name_unique ` ( ` name ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 6 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `companies`
--
LOCK TABLES ` companies ` WRITE ;
/* !40000 ALTER TABLE `companies` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` companies ` VALUES ( 1 , ' Brekke-Heathcote ' , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' ) , ( 2 , ' Watsica Ltd ' , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' ) , ( 3 , ' Armstrong Group ' , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' ) , ( 4 , ' Willms, Brakus and Shields ' , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' ) , ( 5 , ' TestCompany ' , ' 2016-11-21 00:33:34 ' , ' 2016-11-21 00:33:34 ' ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `companies` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `components`
--
DROP TABLE IF EXISTS ` components ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` components ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` category_id ` int ( 11 ) DEFAULT NULL ,
` location_id ` int ( 11 ) DEFAULT NULL ,
` company_id ` int ( 11 ) DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` qty ` int ( 11 ) NOT NULL DEFAULT ' 1 ' ,
` order_number ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` purchase_date ` date DEFAULT NULL ,
2016-11-20 19:59:57 -08:00
` purchase_cost ` decimal ( 20 , 2 ) DEFAULT NULL ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` min_amt ` int ( 11 ) DEFAULT NULL ,
` serial ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 12 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `components`
--
LOCK TABLES ` components ` WRITE ;
/* !40000 ALTER TABLE `components` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` components ` VALUES ( 1 , ' Non rerum. ' , 21 , NULL , 1 , NULL , 9 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 2 , NULL ) , ( 2 , ' Ut odio nesciunt. ' , 23 , NULL , 4 , NULL , 8 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 1 , NULL ) , ( 3 , ' Quia eaque deleniti. ' , 22 , NULL , 3 , NULL , 4 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-21 00:33:37 ' , ' 2016-11-21 00:33:37 ' , 2 , NULL ) , ( 4 , ' Et et voluptates. ' , 21 , NULL , 4 , NULL , 4 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 2 , NULL ) , ( 5 , ' In aliquid soluta. ' , 25 , NULL , 2 , NULL , 3 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 1 , NULL ) , ( 6 , ' Quod expedita. ' , 23 , NULL , 2 , NULL , 5 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 2 , NULL ) , ( 7 , ' Delectus rerum. ' , 21 , NULL , 2 , NULL , 10 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 1 , NULL ) , ( 8 , ' Et et molestiae. ' , 21 , NULL , 1 , NULL , 3 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 1 , NULL ) , ( 9 , ' Nisi praesentium. ' , 22 , NULL , 1 , NULL , 5 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 1 , NULL ) , ( 10 , ' Vitae vitae maxime. ' , 22 , NULL , 1 , NULL , 8 , NULL , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , 1 , NULL ) , ( 11 , ' TestComponent ' , 25 , 2 , 2 , 1 , 12 , ' 12345 ' , ' 2016-01-01 ' , 25 . 00 , ' 2016-11-21 00:33:36 ' , ' 2016-11-21 00:33:36 ' , NULL , 6 , ' 3062436032621632326-325632523 ' ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `components` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `components_assets`
--
DROP TABLE IF EXISTS ` components_assets ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` components_assets ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` assigned_qty ` int ( 11 ) DEFAULT ' 1 ' ,
` component_id ` int ( 11 ) DEFAULT NULL ,
` asset_id ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `components_assets`
--
LOCK TABLES ` components_assets ` WRITE ;
/* !40000 ALTER TABLE `components_assets` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `components_assets` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `consumables`
--
DROP TABLE IF EXISTS ` consumables ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` consumables ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` category_id ` int ( 11 ) DEFAULT NULL ,
` location_id ` int ( 11 ) DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` qty ` int ( 11 ) NOT NULL DEFAULT ' 0 ' ,
` requestable ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` purchase_date ` date DEFAULT NULL ,
2016-11-20 19:59:57 -08:00
` purchase_cost ` decimal ( 20 , 2 ) DEFAULT NULL ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
` order_number ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` company_id ` int ( 10 ) unsigned DEFAULT NULL ,
` min_amt ` int ( 11 ) DEFAULT NULL ,
` model_number ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` manufacturer_id ` int ( 11 ) DEFAULT NULL ,
` item_no ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 27 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `consumables`
--
LOCK TABLES ` consumables ` WRITE ;
/* !40000 ALTER TABLE `consumables` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` consumables ` VALUES ( 1 , ' Corporis voluptate. ' , 17 , NULL , NULL , 5 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 2 , NULL , NULL , NULL ) , ( 2 , ' Quis dolores sunt. ' , 19 , NULL , NULL , 10 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 1 , 1 , NULL , NULL , NULL ) , ( 3 , ' Perferendis. ' , 16 , NULL , NULL , 8 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 4 , 2 , NULL , NULL , NULL ) , ( 4 , ' Maiores esse magni. ' , 20 , NULL , NULL , 10 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 2 , NULL , NULL , NULL ) , ( 5 , ' Vitae eum deserunt. ' , 19 , NULL , NULL , 8 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 2 , NULL , NULL , NULL ) , ( 6 , ' Nam et ab officiis. ' , 17 , NULL , NULL , 9 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-21 00:33:39 ' , ' 2016-11-21 00:33:39 ' , NULL , NULL , NULL , 3 , 2 , NULL , NULL , NULL ) , ( 7 , ' Voluptates officia. ' , 19 , NULL , NULL , 9 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 3 , 1 , NULL , NULL , NULL ) , ( 8 , ' Autem reprehenderit. ' , 19 , NULL , NULL , 7 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 3 , 1 , NULL , NULL , NULL ) , ( 9 , ' Omnis fugit sed. ' , 17 , NULL , NULL , 5 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 1 , NULL , NULL , NULL ) , ( 10 , ' Quia qui. ' , 17 , NULL , NULL , 10 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 3 , 1 , NULL , NULL , NULL ) , ( 11 , ' Officiis impedit. ' , 19 , NULL , NULL , 8 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 2 , NULL , NULL , NULL ) , ( 12 , ' Sunt harum dicta. ' , 18 , NULL , NULL , 7 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 1 , NULL , NULL , NULL ) , ( 13 , ' Sed accusamus porro. ' , 20 , NULL , NULL , 7 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 4 , 1 , NULL , NULL , NULL ) , ( 14 , ' Deleniti magnam. ' , 16 , NULL , NULL , 5 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 3 , 1 , NULL , NULL , NULL ) , ( 15 , ' Fugiat. ' , 19 , NULL , NULL , 6 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 1 , NULL , NULL , NULL ) , ( 16 , ' Illum vel enim. ' , 17 , NULL , NULL , 5 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 4 , 1 , NULL , NULL , NULL ) , ( 17 , ' Debitis quae. ' , 16 , NULL , NULL , 5 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 2 , NULL , NULL , NULL ) , ( 18 , ' Nulla inventore. ' , 20 , NULL , NULL , 6 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 1 , 1 , NULL , NULL , NULL ) , ( 19 , ' Quaerat voluptatem. ' , 18 , NULL , NULL , 8 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 3 , 1 , NULL , NULL , NULL ) , ( 20 , ' Dolores. ' , 17 , NULL , NULL , 6 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 1 , 1 , NULL , NULL , NULL ) , ( 21 , ' Modi maiores. ' , 18 , NULL , NULL , 8 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 4 , 1 , NULL , NULL , NULL ) , ( 22 , ' Provident eos. ' , 20 , NULL , NULL , 10 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 4 , 2 , NULL , NULL , NULL ) , ( 23 , ' Error molestiae. ' , 19 , NULL , NULL , 9 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 1 , 2 , NULL , NULL , NULL ) , ( 24 , ' Dolor quos est rem. ' , 18 , NULL , NULL , 7 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 2 , 1 , NULL , NULL , NULL ) , ( 25 , ' Maiores facilis. ' , 16 , NULL , NULL , 10 , 0 , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , 3 , 2 , NULL , NULL , NULL ) , ( 26 , ' TestConsumable ' , 21 , 0 , 1 , 12 , 0 , ' 2016-11-21 00:33:39 ' , ' 2016-11-21 00:33:39 ' , NULL , ' 2016-01-01 ' , 25 . 00 , ' 12345 ' , 2 , 6 , ' 032-356 ' , 0 , ' 32503 ' ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `consumables` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `consumables_users`
--
DROP TABLE IF EXISTS ` consumables_users ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` consumables_users ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` consumable_id ` int ( 11 ) DEFAULT NULL ,
` assigned_to ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `consumables_users`
--
LOCK TABLES ` consumables_users ` WRITE ;
/* !40000 ALTER TABLE `consumables_users` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `consumables_users` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `custom_field_custom_fieldset`
--
DROP TABLE IF EXISTS ` custom_field_custom_fieldset ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` custom_field_custom_fieldset ` (
` custom_field_id ` int ( 11 ) NOT NULL ,
` custom_fieldset_id ` int ( 11 ) NOT NULL ,
` order ` int ( 11 ) NOT NULL ,
` required ` tinyint ( 1 ) NOT NULL
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `custom_field_custom_fieldset`
--
LOCK TABLES ` custom_field_custom_fieldset ` WRITE ;
/* !40000 ALTER TABLE `custom_field_custom_fieldset` DISABLE KEYS */ ;
INSERT INTO ` custom_field_custom_fieldset ` VALUES ( 1 , 1 , 1 , 0 ) ;
/* !40000 ALTER TABLE `custom_field_custom_fieldset` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `custom_fields`
--
DROP TABLE IF EXISTS ` custom_fields ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` custom_fields ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` format ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` element ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` field_values ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` field_encrypted ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `custom_fields`
--
LOCK TABLES ` custom_fields ` WRITE ;
/* !40000 ALTER TABLE `custom_fields` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `custom_fields` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `custom_fieldsets`
--
DROP TABLE IF EXISTS ` custom_fieldsets ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` custom_fieldsets ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `custom_fieldsets`
--
LOCK TABLES ` custom_fieldsets ` WRITE ;
/* !40000 ALTER TABLE `custom_fieldsets` DISABLE KEYS */ ;
INSERT INTO ` custom_fieldsets ` VALUES ( 1 , ' Asset with MAC Address ' , NULL , NULL , NULL ) ;
/* !40000 ALTER TABLE `custom_fieldsets` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `depreciations`
--
DROP TABLE IF EXISTS ` depreciations ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` depreciations ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` months ` int ( 11 ) NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `depreciations`
--
LOCK TABLES ` depreciations ` WRITE ;
/* !40000 ALTER TABLE `depreciations` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` depreciations ` VALUES ( 2 , ' TestDepreciation ' , 15 , ' 2016-11-21 00:33:41 ' , ' 2016-11-21 00:33:41 ' , 1 ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `depreciations` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `groups`
--
DROP TABLE IF EXISTS ` groups ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` groups ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` permissions ` text COLLATE utf8_unicode_ci ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `groups`
--
LOCK TABLES ` groups ` WRITE ;
/* !40000 ALTER TABLE `groups` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` groups ` VALUES ( 2 , ' TestGroup ' , ' {\"superuser\":\"0\",\"admin\":\"0\",\"reports.view\":\"0\",\"assets.view\":\"0\",\"assets.create\":\"0\",\"assets.edit\":\"0\",\"assets.delete\":\"0\",\"assets.checkin\":\"0\",\"assets.checkout\":\"0\",\"assets.view.requestable\":\"0\",\"accessories.view\":\"0\",\"accessories.create\":\"0\",\"accessories.edit\":\"0\",\"accessories.delete\":\"0\",\"accessories.checkout\":\"0\",\"accessories.checkin\":\"0\",\"consumables.view\":\"0\",\"consumables.create\":\"0\",\"consumables.edit\":\"0\",\"consumables.delete\":\"0\",\"consumables.checkout\":\"0\",\"licenses.view\":\"0\",\"licenses.create\":\"0\",\"licenses.edit\":\"0\",\"licenses.delete\":\"0\",\"licenses.checkout\":\"0\",\"licenses.keys\":\"0\",\"components.view\":\"0\",\"components.create\":\"0\",\"components.edit\":\"0\",\"components.delete\":\"0\",\"components.checkout\":\"0\",\"components.checkin\":\"0\",\"users.view\":\"0\",\"users.create\":\"0\",\"users.edit\":\"0\",\"users.delete\":\"0\",\"self.two_factor\":\"0\"} ' , ' 2016-11-21 00:33:44 ' , ' 2016-11-21 00:33:44 ' ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `groups` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `license_seats`
--
DROP TABLE IF EXISTS ` license_seats ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` license_seats ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` license_id ` int ( 11 ) DEFAULT NULL ,
` assigned_to ` int ( 11 ) DEFAULT NULL ,
` notes ` text COLLATE utf8_unicode_ci ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` asset_id ` int ( 11 ) DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 23 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `license_seats`
--
LOCK TABLES ` license_seats ` WRITE ;
/* !40000 ALTER TABLE `license_seats` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` license_seats ` VALUES ( 1 , 1 , NULL , ' Enim ratione repudiandae voluptas inventore harum nihil non. ' , 1 , ' 1985-04-22 07:56:43 ' , ' 2016-11-21 00:33:47 ' , ' 2016-11-21 00:33:47 ' , NULL ) , ( 2 , 5 , NULL , ' Quidem nesciunt laudantium reprehenderit quia nemo non enim saepe. ' , 1 , ' 2008-11-13 14:47:37 ' , ' 2002-06-10 20:39:02 ' , NULL , NULL ) , ( 3 , 10 , NULL , ' Ipsa labore repellendus magni rem. ' , 1 , ' 1997-03-02 08:23:45 ' , ' 1970-03-28 10:33:13 ' , NULL , NULL ) , ( 4 , 3 , NULL , ' Impedit corporis sapiente numquam tenetur explicabo dolores et ipsam. ' , 1 , ' 1997-07-18 14:12:28 ' , ' 2012-11-20 06:52:26 ' , NULL , NULL ) , ( 5 , 3 , NULL , ' Autem explicabo consequatur harum consequatur repellat voluptate. ' , 1 , ' 1992-02-25 09:18:12 ' , ' 2013-11-25 04:08:47 ' , NULL , NULL ) , ( 6 , 5 , NULL , ' Repellendus vero voluptatem voluptate sed ipsam. ' , 1 , ' 1970-03-25 07:11:55 ' , ' 1994-07-21 11:28:55 ' , NULL , NULL ) , ( 7 , 10 , NULL , ' Tenetur sequi blanditiis similique quaerat explicabo quibusdam excepturi. ' , 1 , ' 1971-07-26 14:28:52 ' , ' 1995-12-16 02:16:50 ' , NULL , NULL ) , ( 8 , 3 , NULL , ' Nostrum veniam nulla quo consequatur consequatur et omnis eum. ' , 1 , ' 1972-09-10 03:47:34 ' , ' 1979-11-30 18:06:57 ' , NULL , NULL ) , ( 9 , 5 , NULL , ' Sint nihil omnis quod accusamus. ' , 1 , ' 1983-04-08 19:17:09 ' , ' 2008-06-22 21:35:40 ' , NULL , NULL ) , ( 10 , 7 , NULL , ' Ea et placeat quod blanditiis sed. ' , 1 , ' 2002-04-06 11:19:24 ' , ' 1996-02-14 01:10:39 ' , NULL , NULL ) , ( 11 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 12 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 13 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 14 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 15 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 16 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 17 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 18 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 19 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 20 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 21 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) , ( 22 , 11 , NULL , NULL , 1 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , NULL ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `license_seats` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `licenses`
--
DROP TABLE IF EXISTS ` licenses ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` licenses ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` serial ` varchar ( 2048 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` purchase_date ` date DEFAULT NULL ,
2016-11-20 19:59:57 -08:00
` purchase_cost ` decimal ( 20 , 2 ) DEFAULT NULL ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
` order_number ` varchar ( 50 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` seats ` int ( 11 ) NOT NULL DEFAULT ' 1 ' ,
` notes ` text COLLATE utf8_unicode_ci ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` depreciation_id ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` license_name ` varchar ( 120 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` license_email ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` depreciate ` tinyint ( 1 ) DEFAULT NULL ,
` supplier_id ` int ( 11 ) DEFAULT NULL ,
` expiration_date ` date DEFAULT NULL ,
` purchase_order ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` termination_date ` date DEFAULT NULL ,
` maintained ` tinyint ( 1 ) DEFAULT NULL ,
` reassignable ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` company_id ` int ( 10 ) unsigned DEFAULT NULL ,
` manufacturer_id ` int ( 11 ) DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 12 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `licenses`
--
LOCK TABLES ` licenses ` WRITE ;
/* !40000 ALTER TABLE `licenses` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` licenses ` VALUES ( 1 , ' Implemented composite firmware ' , ' 399629fa-69f5-3eaa-a0c0-8a53977030e3 ' , ' 2002-08-18 ' , 2744038 . 81 , NULL , 8 , ' Aut ea corrupti eligendi. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-21 00:33:47 ' , ' 2016-11-21 00:33:47 ' , ' Katharina Kulas ' , ' noelia.hermann@example.com ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 3 , NULL ) , ( 2 , ' Optimized systemic intranet ' , ' 89c6abac-19d9-3b54-ae5e-66f2556f0ec3 ' , ' 2012-08-25 ' , 269 . 24 , NULL , 1 , ' Quam eos praesentium sed aut quisquam dignissimos. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Mrs. Anika Cruickshank ' , ' drake.block@example.net ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 4 , NULL ) , ( 3 , ' Expanded client-server methodology ' , ' 7ae03022-765d-3791-b96f-e7fe31491061 ' , ' 1994-02-28 ' , 213701 . 76 , NULL , 2 , ' Molestiae porro dolorem vero quisquam quos praesentium debitis. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Prof. Dock Schumm MD ' , ' roslyn.torp@example.org ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 2 , NULL ) , ( 4 , ' Mandatory solution-oriented extranet ' , ' f3d92679-78db-38fa-aa9b-d93354e74d0c ' , ' 1996-10-08 ' , 2725956 . 85 , NULL , 9 , ' Et et nesciunt quasi magnam dolorum sed. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Kendra Skiles ' , ' valerie62@example.org ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 4 , NULL ) , ( 5 , ' Secured fault-tolerant architecture ' , ' d2fe95cd-38b2-3b85-9d9f-ad325288bb06 ' , ' 2010-08-24 ' , 5924561 . 63 , NULL , 5 , ' Repellat iste laudantium eum ullam quam. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Erica Kunde Jr. ' , ' genoveva16@example.org ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 1 , NULL ) , ( 6 , ' Fundamental context-sensitive product ' , ' ac1d2639-e0a7-34e6-9141-a491f4081e06 ' , ' 1982-06-16 ' , 2173 . 49 , NULL , 7 , ' Ut non esse qui voluptas. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Maryam Sawayn ' , ' raymond35@example.org ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 2 , NULL ) , ( 7 , ' Visionary attitude-oriented collaboration ' , ' da42bf65-2aeb-315a-a05a-92b0e4dea5f0 ' , ' 2005-06-03 ' , 0 . 00 , NULL , 9 , ' Velit consequuntur cum cumque maxime voluptas. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Ofelia Bogan MD ' , ' alessia.friesen@example.com ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 4 , NULL ) , ( 8 , ' Visionary needs-based strategy ' , ' 24c1090b-fda1-382b-bf30-97435c22c225 ' , ' 1980-05-16 ' , 394166 . 60 , NULL , 6 , ' Provident omnis incidunt non consequuntur molestiae et adipisci. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Emile Langosh DVM ' , ' ndietrich@example.org ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 4 , NULL ) , ( 9 , ' Public-key responsive installation ' , ' 7bc5a1fe-c90e-391a-bc71-194cdaa8bfbc ' , ' 1994-01-07 ' , 674379 . 59 , NULL , 9 , ' Reiciendis dolor excepturi consequatur velit nobis magni. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Curt Gutmann ' , ' enienow@example.com ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 2 , NULL ) , ( 10 , ' Cross-group asynchronous neural-net ' , ' 1e8d0378-3fdb-3883-8bd2-a7dbf477d2dc ' , ' 1986-12-28 ' , 178 . 51 , NULL , 7 , ' Sunt est ducimus tempora excepturi ut. ' , NULL , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , ' Brittany Mann ' , ' pouros.cristopher@example.net ' , NULL , NULL , NULL , NULL , NULL , NULL , 1 , 2 , NULL ) , ( 11 , ' Test Software ' , ' 946346-436346-346436 ' , ' 2016-01-01 ' , 25 . 00 , ' 12345 ' , 12 , ' lorem ipsum omicron delta phi ' , 1 , 0 , ' 2016-11-21 00:33:46 ' , ' 2016-11-21 00:33:46 ' , NULL , ' Marco Polo ' , ' g@m.com ' , NULL , 4 , ' 2018-01-01 ' , ' 234562 ' , ' 2020-01-01 ' , 1 , 1 , 4 , 1 ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `licenses` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `locations`
--
DROP TABLE IF EXISTS ` locations ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` locations ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` city ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
2016-11-20 19:59:57 -08:00
` state ` varchar ( 32 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
` country ` varchar ( 2 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` address ` varchar ( 80 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` address2 ` varchar ( 80 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` zip ` varchar ( 10 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` parent_id ` int ( 11 ) DEFAULT NULL ,
` currency ` varchar ( 10 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 7 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `locations`
--
LOCK TABLES ` locations ` WRITE ;
/* !40000 ALTER TABLE `locations` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` locations ` VALUES ( 1 , ' New Edd ' , ' Margieton ' , ' FL ' , ' UM ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , NULL , NULL , NULL , NULL , ' AUD ' ) , ( 2 , ' Hesselside ' , ' Daletown ' , ' WA ' , ' AM ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , NULL , NULL , NULL , NULL , ' SCR ' ) , ( 3 , ' South Cleoramouth ' , ' Gudrunville ' , ' MD ' , ' MS ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , NULL , NULL , NULL , NULL , ' TTD ' ) , ( 4 , ' Breitenbergview ' , ' Rolfsonmouth ' , ' NH ' , ' DE ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , NULL , NULL , NULL , NULL , ' JOD ' ) , ( 5 , ' Beahanmouth ' , ' Haylieland ' , ' IL ' , ' SO ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL , NULL , NULL , NULL , NULL , ' ZWL ' ) , ( 6 , ' Test Location ' , ' Sutherland ' , ' BV ' , ' AF ' , ' 2016-11-21 00:33:49 ' , ' 2016-11-21 00:33:49 ' , 1 , ' 046t46 South Street ' , ' Apt 356 ' , ' 30266 ' , ' 2016-11-21 00:33:49 ' , 3 , ' YEN ' ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `locations` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `manufacturers`
--
DROP TABLE IF EXISTS ` manufacturers ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` manufacturers ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 12 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `manufacturers`
--
LOCK TABLES ` manufacturers ` WRITE ;
/* !40000 ALTER TABLE `manufacturers` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` manufacturers ` VALUES ( 1 , ' Schaden, Waters and Koelpin ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 2 , ' Harber Group ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 3 , ' Johnson, Skiles and Howell ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 4 , ' Krajcik, Gutmann and Walter ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-21 00:33:52 ' , NULL , ' 2016-11-21 00:33:52 ' ) , ( 5 , ' Stark, Bradtke and Rohan ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 6 , ' Gulgowski, Renner and Lebsack ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 7 , ' Murazik-Lakin ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 8 , ' Fahey and Sons ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 9 , ' Leannon Ltd ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 10 , ' Romaguera-Heidenreich ' , ' 2016-11-20 23:07:30 ' , ' 2016-11-20 23:07:30 ' , NULL , NULL ) , ( 11 , ' Testufacturer ' , ' 2016-11-21 00:33:52 ' , ' 2016-11-21 00:33:52 ' , 1 , NULL ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `manufacturers` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `migrations`
--
DROP TABLE IF EXISTS ` migrations ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` migrations ` (
` migration ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` batch ` int ( 11 ) NOT NULL
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `migrations`
--
LOCK TABLES ` migrations ` WRITE ;
/* !40000 ALTER TABLE `migrations` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` migrations ` VALUES ( ' 2012_12_06_225921_migration_cartalyst_sentry_install_users ' , 1 ) , ( ' 2012_12_06_225929_migration_cartalyst_sentry_install_groups ' , 1 ) , ( ' 2012_12_06_225945_migration_cartalyst_sentry_install_users_groups_pivot ' , 1 ) , ( ' 2012_12_06_225988_migration_cartalyst_sentry_install_throttle ' , 1 ) , ( ' 2013_03_23_193214_update_users_table ' , 1 ) , ( ' 2013_11_13_075318_create_models_table ' , 1 ) , ( ' 2013_11_13_075335_create_categories_table ' , 1 ) , ( ' 2013_11_13_075347_create_manufacturers_table ' , 1 ) , ( ' 2013_11_15_015858_add_user_id_to_categories ' , 1 ) , ( ' 2013_11_15_112701_add_user_id_to_manufacturers ' , 1 ) , ( ' 2013_11_15_190327_create_assets_table ' , 1 ) , ( ' 2013_11_15_190357_create_licenses_table ' , 1 ) , ( ' 2013_11_15_201848_add_license_name_to_licenses ' , 1 ) , ( ' 2013_11_16_040323_create_depreciations_table ' , 1 ) , ( ' 2013_11_16_042851_add_depreciation_id_to_models ' , 1 ) , ( ' 2013_11_16_084923_add_user_id_to_models ' , 1 ) , ( ' 2013_11_16_103258_create_locations_table ' , 1 ) , ( ' 2013_11_16_103336_add_location_id_to_assets ' , 1 ) , ( ' 2013_11_16_103407_add_checkedout_to_to_assets ' , 1 ) , ( ' 2013_11_16_103425_create_history_table ' , 1 ) , ( ' 2013_11_17_054359_drop_licenses_table ' , 1 ) , ( ' 2013_11_17_054526_add_physical_to_assets ' , 1 ) , ( ' 2013_11_17_055126_create_settings_table ' , 1 ) , ( ' 2013_11_17_062634_add_license_to_assets ' , 1 ) , ( ' 2013_11_18_134332_add_contacts_to_users ' , 1 ) , ( ' 2013_11_18_142847_add_info_to_locations ' , 1 ) , ( ' 2013_11_18_152942_remove_location_id_from_asset ' , 1 ) , ( ' 2013_11_18_164423_set_nullvalues_for_user ' , 1 ) , ( ' 2013_11_19_013337_create_asset_logs_table ' , 1 ) , ( ' 2013_11_19_061409_edit_added_on_asset_logs_table ' , 1 ) , ( ' 2013_11_19_062250_edit_location_id_asset_logs_table ' , 1 ) , ( ' 2013_11_20_055822_add_soft_delete_on_assets ' , 1 ) , ( ' 2013_11_20_121404_add_soft_delete_on_locations ' , 1 ) , ( ' 2013_11_20_123137_add_soft_delete_on_manufacturers ' , 1 ) , ( ' 2013_11_20_123725_add_soft_delete_on_categories ' , 1 ) , ( ' 2013_11_20_130248_create_status_labels ' , 1 ) , ( ' 2013_11_20_130830_add_status_id_on_assets_table ' , 1 ) , ( ' 2013_11_20_131544_add_status_type_on_status_labels ' , 1 ) , ( ' 2013_11_20_134103_add_archived_to_assets ' , 1 ) , ( ' 2013_11_21_002321_add_uploads_table ' , 1 ) , ( ' 2013_11_21_024531_remove_deployable_boolean_from_status_labels ' , 1 ) , ( ' 2013_11_22_075308_add_option_label_to_settings_table ' , 1 ) , ( ' 2013_11_22_213400_edits_to_settings_table ' , 1 ) , ( ' 2013_11_25_013244_create_licenses_table ' , 1 ) , ( ' 2013_11_25_031458_create_license_seats_table ' , 1 ) , ( ' 2013_11_25_032022_add_type_to_actionlog_table ' , 1 ) , ( ' 2013_11_25_033008_delete_bad_licenses_table ' , 1 ) , ( ' 2013_11_25_033131_create_new_licenses_table ' , 1 ) , ( ' 2013_11_25_033534_add_licensed_to_licenses_table ' , 1 ) , ( ' 2013_11_25_101308_add_warrantee_to_assets_table ' , 1 ) , ( ' 2013_11_25_104343_alter_warranty_column_on_assets ' , 1 ) , ( ' 2013_11_25_150450_drop_parent_from_categories ' , 1 ) , ( ' 2013_11_25_151920_add_depreciate_to_assets ' , 1 ) , ( ' 2013_11_25_152903_add_depreciate_to_licenses_table ' , 1 ) , ( ' 2013_11_26_211820_drop_license_from_assets_table ' , 1 ) , ( ' 2013_11_27_062510_add_note_to_asset_logs_table ' , 1 ) , ( ' 2013_12_01_113426_add_filename_to_asset_log ' , 1 ) , ( ' 2013_12_06_094618_add_nullable_to_licenses_table ' , 1 ) , ( ' 2013_12_10_084038_add_eol_on_models_table ' , 1 ) , ( ' 2013_12_12_055218_add_manager_to_users_table ' , 1 ) , ( ' 2014_01_28_031200_add_qr_code_to_settings_table ' , 1 ) , ( ' 2014_02_13_183016_add_qr_text_to_settings_table ' , 1 ) , ( ' 2014_05_24_093839_alter_default_license_depreciation_id ' , 1 ) , ( ' 2014_05_27_231658_alter_default_values_licenses ' , 1 ) , ( ' 2014_06_19_191508_add_asset_name_to_settings ' , 1 ) , ( ' 2014_06_20_004847_make_asset_log_checkedout_to_nullable ' , 1 ) , ( ' 2014_06_20_005050_make_asset_log_purchasedate_to_nullable ' , 1 ) , ( ' 2014_06_24_003011_add_suppliers ' , 1 ) , ( ' 2014_06_24_010742_add_supplier_id_to_asset ' , 1 ) , ( ' 2014_06_24_012839_add_zip_to_supplier ' , 1 ) , ( ' 2014_06_24_033908_add_url_to_supplier ' , 1 ) , ( ' 2014_07_08_054116_add_employee_id_to_users ' , 1 ) , ( ' 2014_07_09_134316_add_requestable_to_assets ' , 1 ) , ( ' 2014_07_17_085822_add_asset_to_software ' , 1 ) , ( ' 2014_07_17_161625_make_asset_id_in_logs_nullable ' , 1 ) , ( ' 2014_08_12_053504_alpha_0_4_2_release ' , 1 ) , ( ' 2014_08_17_083523_make_location_id_nullable ' , 1 ) , ( ' 2014_10_16_200626_add_rtd_location_to_assets ' , 1 ) , ( ' 2014_10_24_000417_alter_suppl
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `migrations` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `models`
--
DROP TABLE IF EXISTS ` models ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` models ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` model_number ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` manufacturer_id ` int ( 11 ) DEFAULT NULL ,
` category_id ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` depreciation_id ` int ( 11 ) DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` eol ` int ( 11 ) DEFAULT NULL ,
` image ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` deprecated_mac_address ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` fieldset_id ` int ( 11 ) DEFAULT NULL ,
` notes ` longtext COLLATE utf8_unicode_ci ,
` requestable ` tinyint ( 4 ) NOT NULL DEFAULT ' 0 ' ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 8 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `models`
--
LOCK TABLES ` models ` WRITE ;
/* !40000 ALTER TABLE `models` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` models ` VALUES ( 1 , ' Organized zerotolerance strategy ' , ' 41955019 ' , 3 , 1 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , NULL , 1 , NULL , 0 , NULL , NULL , NULL , 0 ) , ( 2 , ' Operative responsive focusgroup ' , ' 36408246 ' , 7 , 5 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , NULL , 1 , NULL , 0 , NULL , NULL , NULL , 0 ) , ( 3 , ' Operative actuating success ' , ' 44231380 ' , 8 , 4 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , NULL , 1 , NULL , 0 , NULL , NULL , NULL , 0 ) , ( 4 , ' Configurable 3rdgeneration success ' , ' 17070824 ' , 1 , 2 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , NULL , 1 , NULL , 0 , NULL , NULL , NULL , 0 ) , ( 5 , ' Multi-channelled background model ' , ' 25964380 ' , 2 , 2 , ' 2016-11-20 23:07:28 ' , ' 2016-11-20 23:07:28 ' , NULL , NULL , 1 , NULL , 0 , NULL , NULL , NULL , 0 ) , ( 6 , ' Test Model ' , ' ' , 2 , 5 , ' 2016-11-20 23:12:49 ' , ' 2016-11-21 00:33:29 ' , 0 , 1 , 0 , NULL , 0 , ' 2016-11-21 00:33:29 ' , NULL , ' ' , 0 ) , ( 7 , ' TestModel ' , ' 350335 ' , 8 , 11 , ' 2016-11-21 00:33:28 ' , ' 2016-11-21 00:33:28 ' , 0 , 1 , 12 , NULL , 0 , NULL , NULL , ' lorem ipsum blah blah ' , 1 ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `models` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `password_resets`
--
DROP TABLE IF EXISTS ` password_resets ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` password_resets ` (
` email ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` token ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` created_at ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
KEY ` password_resets_email_index ` ( ` email ` ) ,
KEY ` password_resets_token_index ` ( ` token ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `password_resets`
--
LOCK TABLES ` password_resets ` WRITE ;
/* !40000 ALTER TABLE `password_resets` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `password_resets` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `requested_assets`
--
DROP TABLE IF EXISTS ` requested_assets ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` requested_assets ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` asset_id ` int ( 11 ) NOT NULL ,
` user_id ` int ( 11 ) NOT NULL ,
` accepted_at ` datetime DEFAULT NULL ,
` denied_at ` datetime DEFAULT NULL ,
` notes ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `requested_assets`
--
LOCK TABLES ` requested_assets ` WRITE ;
/* !40000 ALTER TABLE `requested_assets` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `requested_assets` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `requests`
--
DROP TABLE IF EXISTS ` requests ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` requests ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` asset_id ` int ( 11 ) NOT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` request_code ` text COLLATE utf8_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `requests`
--
LOCK TABLES ` requests ` WRITE ;
/* !40000 ALTER TABLE `requests` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `requests` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `settings`
--
DROP TABLE IF EXISTS ` settings ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` settings ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` per_page ` int ( 11 ) NOT NULL DEFAULT ' 20 ' ,
` site_name ` varchar ( 100 ) COLLATE utf8_unicode_ci NOT NULL DEFAULT ' Snipe IT Asset Management ' ,
` qr_code ` int ( 11 ) DEFAULT NULL ,
` qr_text ` varchar ( 32 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` display_asset_name ` int ( 11 ) DEFAULT NULL ,
` display_checkout_date ` int ( 11 ) DEFAULT NULL ,
` display_eol ` int ( 11 ) DEFAULT NULL ,
` auto_increment_assets ` int ( 11 ) NOT NULL DEFAULT ' 0 ' ,
` auto_increment_prefix ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL DEFAULT ' 0 ' ,
` load_remote ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` logo ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` header_color ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` alert_email ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` alerts_enabled ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` default_eula_text ` longtext COLLATE utf8_unicode_ci ,
` barcode_type ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' QRCODE ' ,
` slack_endpoint ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` slack_channel ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` slack_botname ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` default_currency ` varchar ( 10 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` custom_css ` text COLLATE utf8_unicode_ci ,
` brand ` tinyint ( 4 ) NOT NULL DEFAULT ' 1 ' ,
` ldap_enabled ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` ldap_server ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` ldap_uname ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` ldap_pword ` longtext COLLATE utf8_unicode_ci ,
` ldap_basedn ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` ldap_filter ` text COLLATE utf8_unicode_ci ,
` ldap_username_field ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' samaccountname ' ,
` ldap_lname_field ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' sn ' ,
` ldap_fname_field ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' givenname ' ,
` ldap_auth_filter_query ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' uid=samaccountname ' ,
` ldap_version ` int ( 11 ) DEFAULT ' 3 ' ,
` ldap_active_flag ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` ldap_emp_num ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` ldap_email ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` full_multiple_companies_support ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` ldap_server_cert_ignore ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` locale ` varchar ( 5 ) COLLATE utf8_unicode_ci DEFAULT ' en ' ,
` labels_per_page ` tinyint ( 4 ) NOT NULL DEFAULT ' 30 ' ,
` labels_width ` decimal ( 6 , 5 ) NOT NULL DEFAULT ' 2.62500 ' ,
` labels_height ` decimal ( 6 , 5 ) NOT NULL DEFAULT ' 1.00000 ' ,
` labels_pmargin_left ` decimal ( 6 , 5 ) NOT NULL DEFAULT ' 0.21975 ' ,
` labels_pmargin_right ` decimal ( 6 , 5 ) NOT NULL DEFAULT ' 0.21975 ' ,
` labels_pmargin_top ` decimal ( 6 , 5 ) NOT NULL DEFAULT ' 0.50000 ' ,
` labels_pmargin_bottom ` decimal ( 6 , 5 ) NOT NULL DEFAULT ' 0.50000 ' ,
` labels_display_bgutter ` decimal ( 6 , 5 ) NOT NULL DEFAULT ' 0.07000 ' ,
` labels_display_sgutter ` decimal ( 6 , 5 ) NOT NULL DEFAULT ' 0.05000 ' ,
` labels_fontsize ` tinyint ( 4 ) NOT NULL DEFAULT ' 9 ' ,
` labels_pagewidth ` decimal ( 7 , 5 ) NOT NULL DEFAULT ' 8.50000 ' ,
` labels_pageheight ` decimal ( 7 , 5 ) NOT NULL DEFAULT ' 11.00000 ' ,
` labels_display_name ` tinyint ( 4 ) NOT NULL DEFAULT ' 0 ' ,
` labels_display_serial ` tinyint ( 4 ) NOT NULL DEFAULT ' 1 ' ,
` labels_display_tag ` tinyint ( 4 ) NOT NULL DEFAULT ' 1 ' ,
` alt_barcode ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' C128 ' ,
` alt_barcode_enabled ` tinyint ( 1 ) DEFAULT ' 1 ' ,
` alert_interval ` int ( 11 ) DEFAULT ' 30 ' ,
` alert_threshold ` int ( 11 ) DEFAULT ' 5 ' ,
` email_domain ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` email_format ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' filastname ' ,
` username_format ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT ' filastname ' ,
` is_ad ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` ad_domain ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` ldap_port ` varchar ( 5 ) COLLATE utf8_unicode_ci NOT NULL DEFAULT ' 389 ' ,
` ldap_tls ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` zerofill_count ` int ( 11 ) NOT NULL DEFAULT ' 5 ' ,
` ldap_pw_sync ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` two_factor_enabled ` tinyint ( 4 ) DEFAULT NULL ,
` require_accept_signature ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `settings`
--
LOCK TABLES ` settings ` WRITE ;
/* !40000 ALTER TABLE `settings` DISABLE KEYS */ ;
INSERT INTO ` settings ` VALUES ( 1 , ' 2016-11-06 22:01:02 ' , ' 2016-11-06 22:01:02 ' , 1 , 20 , ' Test ' , NULL , NULL , NULL , NULL , NULL , 0 , ' 0 ' , 1 , NULL , NULL , ' snipe@google.com ' , 1 , NULL , ' QRCODE ' , NULL , NULL , NULL , ' USD ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , NULL , ' samaccountname ' , ' sn ' , ' givenname ' , ' uid=samaccountname ' , 3 , NULL , NULL , NULL , 0 , 0 , ' en ' , 30 , 2 . 62500 , 1 . 00000 , 0 . 21975 , 0 . 21975 , 0 . 50000 , 0 . 50000 , 0 . 07000 , 0 . 05000 , 9 , 8 . 50000 , 11 . 00000 , 0 , 1 , 1 , ' C128 ' , 1 , 30 , 5 , ' tews.com ' , ' filastname ' , ' filastname ' , 0 , NULL , ' 389 ' , 0 , 5 , 1 , NULL , 0 ) ;
/* !40000 ALTER TABLE `settings` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `status_labels`
--
DROP TABLE IF EXISTS ` status_labels ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` status_labels ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 100 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` deployable ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` pending ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` archived ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` notes ` text COLLATE utf8_unicode_ci ,
` color ` varchar ( 10 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` show_in_nav ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 9 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `status_labels`
--
LOCK TABLES ` status_labels ` WRITE ;
/* !40000 ALTER TABLE `status_labels` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` status_labels ` VALUES ( 1 , ' Ready to Deploy ' , 1 , ' 2004-12-14 19:19:01 ' , ' 2011-11-20 01:20:52 ' , NULL , 1 , 0 , 0 , ' ' , NULL , 0 ) , ( 2 , ' Pending ' , 1 , ' 2007-02-27 15:33:24 ' , ' 1987-07-30 16:33:07 ' , NULL , 0 , 1 , 0 , ' ' , NULL , 0 ) , ( 3 , ' Archived ' , 1 , ' 2001-11-21 23:22:44 ' , ' 2000-07-30 19:54:16 ' , NULL , 0 , 0 , 1 , ' These assets are permanently undeployable ' , NULL , 0 ) , ( 4 , ' Out for Diagnostics ' , 1 , ' 1981-09-28 05:03:46 ' , ' 1979-03-28 12:50:57 ' , NULL , 0 , 0 , 0 , ' ' , NULL , 0 ) , ( 5 , ' Out for Repair ' , 1 , ' 2010-09-10 11:59:47 ' , ' 1973-10-19 04:27:48 ' , NULL , 0 , 0 , 0 , ' ' , NULL , 0 ) , ( 6 , ' Broken - Not Fixable ' , 1 , ' 1979-08-28 12:09:59 ' , ' 1981-08-25 12:56:48 ' , NULL , 0 , 0 , 1 , ' ' , NULL , 0 ) , ( 7 , ' Lost/Stolen ' , 1 , ' 2011-04-26 04:28:42 ' , ' 1999-07-22 04:43:21 ' , NULL , 0 , 0 , 1 , ' ' , NULL , 0 ) , ( 8 , ' Test Status ' , 1 , ' 2016-11-21 00:33:54 ' , ' 2016-11-21 00:33:54 ' , NULL , 0 , 1 , 0 , ' lorem ipsum something else ' , ' #b46262 ' , 1 ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `status_labels` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `suppliers`
--
DROP TABLE IF EXISTS ` suppliers ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` suppliers ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` address ` varchar ( 50 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` address2 ` varchar ( 50 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` city ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` state ` varchar ( 2 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` country ` varchar ( 2 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` phone ` varchar ( 20 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` fax ` varchar ( 20 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` email ` varchar ( 150 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` contact ` varchar ( 100 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` notes ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` zip ` varchar ( 10 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` url ` varchar ( 250 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` image ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 7 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `suppliers`
--
LOCK TABLES ` suppliers ` WRITE ;
/* !40000 ALTER TABLE `suppliers` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` suppliers ` VALUES ( 1 , ' Deckow-Schuppe ' , ' 695 Alejandra Motorway ' , NULL , ' Torpmouth ' , ' OR ' , ' BG ' , ' 292.995.6573 x818 ' , NULL , ' addie65@example.com ' , ' Jaiden Gutkowski DVM ' , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , NULL ) , ( 2 , ' Gislason LLC ' , ' 8624 Kenneth Tunnel ' , NULL , ' Jamalburgh ' , ' RI ' , ' HK ' , ' 1-250-263-8392 ' , NULL , ' marielle32@example.com ' , ' Arianna Metz ' , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , NULL ) , ( 3 , ' Pouros, Bernhard and Herzog ' , ' 681 Simonis Summit ' , NULL , ' East Jaylinside ' , ' TX ' , ' MX ' , ' 756-364-0473 ' , NULL , ' jerad.schoen@example.net ' , ' Delphine Gulgowski Jr. ' , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , NULL ) , ( 4 , ' Weissnat, Reynolds and Quigley ' , ' 7175 Lowe Bridge ' , NULL , ' Vandervortberg ' , ' ND ' , ' MG ' , ' 446.315.3002 x50031 ' , NULL , ' ryleigh69@example.com ' , ' Bradly Rogahn DDS ' , NULL , ' 2016-11-20 23:07:29 ' , ' 2016-11-20 23:07:29 ' , NULL , NULL , NULL , NULL , NULL ) , ( 5 , ' Test Supplier ' , ' 046t46 South Street ' , ' Apt 356 ' , ' Sutherland ' , ' BV ' , ' AF ' , ' 032626236 x35 ' , ' 342 33 6647 3555 ' , ' p@roar.com ' , ' Mr. Smith ' , ' lorem ipsum indigo something ' , ' 2016-11-21 00:33:56 ' , ' 2016-11-21 00:33:56 ' , 1 , NULL , ' 30266 ' , ' http://snipeitapp.com ' , NULL ) , ( 6 , ' Blank Supplier ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' 2016-11-21 00:35:59 ' , ' 2016-11-21 00:35:59 ' , 1 , NULL , ' ' , ' http:// ' , NULL ) ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `suppliers` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `throttle`
--
DROP TABLE IF EXISTS ` throttle ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` throttle ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` user_id ` int ( 10 ) unsigned DEFAULT NULL ,
` ip_address ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` attempts ` int ( 11 ) NOT NULL DEFAULT ' 0 ' ,
` suspended ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` banned ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` last_attempt_at ` timestamp NULL DEFAULT NULL ,
` suspended_at ` timestamp NULL DEFAULT NULL ,
` banned_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
KEY ` throttle_user_id_index ` ( ` user_id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `throttle`
--
LOCK TABLES ` throttle ` WRITE ;
/* !40000 ALTER TABLE `throttle` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `throttle` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS ` users ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` users ` (
` id ` int ( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
` email ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` password ` varchar ( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
` permissions ` text COLLATE utf8_unicode_ci ,
` activated ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` activation_code ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` activated_at ` timestamp NULL DEFAULT NULL ,
` last_login ` timestamp NULL DEFAULT NULL ,
` persist_code ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` reset_password_code ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` first_name ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` last_name ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
` website ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` country ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` gravatar ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` location_id ` int ( 11 ) DEFAULT NULL ,
` phone ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` jobtitle ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` manager_id ` int ( 11 ) DEFAULT NULL ,
` employee_num ` text COLLATE utf8_unicode_ci ,
` avatar ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` username ` varchar ( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` notes ` text COLLATE utf8_unicode_ci ,
` company_id ` int ( 10 ) unsigned DEFAULT NULL ,
` remember_token ` text COLLATE utf8_unicode_ci ,
` ldap_import ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` locale ` varchar ( 5 ) COLLATE utf8_unicode_ci DEFAULT ' en ' ,
` show_in_list ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` two_factor_secret ` varchar ( 32 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
` two_factor_enrolled ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` two_factor_optin ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
PRIMARY KEY ( ` id ` ) ,
KEY ` users_activation_code_index ` ( ` activation_code ` ) ,
KEY ` users_reset_password_code_index ` ( ` reset_password_code ` )
2016-11-20 19:59:57 -08:00
) ENGINE = InnoDB AUTO_INCREMENT = 45 DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `users`
--
LOCK TABLES ` users ` WRITE ;
/* !40000 ALTER TABLE `users` DISABLE KEYS */ ;
2016-11-20 19:59:57 -08:00
INSERT INTO ` users ` VALUES ( 1 , ' snipe@google.com ' , ' $2y$10$oSjP81uCdXW.nAHBIPteA..DsLPhJBiwD1tfny4hY0Ndicv1B5Nk6 ' , ' {\"superuser\":\"1\",\"admin\":\"0\",\"reports.view\":\"0\",\"assets.view\":\"0\",\"assets.create\":\"0\",\"assets.edit\":\"0\",\"assets.delete\":\"0\",\"assets.checkin\":\"0\",\"assets.checkout\":\"0\",\"assets.view.requestable\":\"0\",\"accessories.view\":\"0\",\"accessories.create\":\"0\",\"accessories.edit\":\"0\",\"accessories.delete\":\"0\",\"accessories.checkout\":\"0\",\"accessories.checkin\":\"0\",\"consumables.view\":\"0\",\"consumables.create\":\"0\",\"consumables.edit\":\"0\",\"consumables.delete\":\"0\",\"consumables.checkout\":\"0\",\"licenses.view\":\"0\",\"licenses.create\":\"0\",\"licenses.edit\":\"0\",\"licenses.delete\":\"0\",\"licenses.checkout\":\"0\",\"licenses.keys\":\"0\",\"components.view\":\"0\",\"components.create\":\"0\",\"components.edit\":\"0\",\"components.delete\":\"0\",\"components.checkout\":\"0\",\"components.checkin\":\"0\",\"users.view\":\"0\",\"users.create\":\"0\",\"users.edit\":\"0\",\"users.delete\":\"0\",\"self.two_factor\":\"0\"} ' , 1 , NULL , NULL , NULL , NULL , NULL , ' snipe ' , ' Snipe ' , ' 2016-11-06 22:01:02 ' , ' 2016-11-21 00:33:59 ' , NULL , NULL , NULL , NULL , NULL , ' ' , ' ' , NULL , ' ' , NULL , ' snipeit ' , ' ' , NULL , ' yui6FpaJTPf72mgW84Cv8YqcoE6C7UbuNoh5yGe9eW2yKCoOtryJNE230g9q ' , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 3 , ' bnelson0@cdbaby.com ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Bonnie ' , ' Nelson ' , ' 2016-11-06 22:03:21 ' , ' 2016-11-06 22:03:21 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' bnelson0 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 4 , ' jferguson1@state.tx.us ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Judith ' , ' Ferguson ' , ' 2016-11-06 22:03:21 ' , ' 2016-11-06 22:03:21 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' jferguson1 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 5 , ' mgibson2@wiley.com ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Mildred ' , ' Gibson ' , ' 2016-11-06 22:03:21 ' , ' 2016-11-06 22:03:21 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' mgibson2 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 6 , ' blee3@quantcast.com ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Brandon ' , ' Lee ' , ' 2016-11-06 22:03:21 ' , ' 2016-11-06 22:03:21 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' blee3 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 7 , ' bpowell4@tuttocitta.it ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Betty ' , ' Powell ' , ' 2016-11-06 22:03:21 ' , ' 2016-11-06 22:03:21 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' bpowell4 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 8 , ' awheeler5@cocolog-nifty.com ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Anthony ' , ' Wheeler ' , ' 2016-11-06 22:03:21 ' , ' 2016-11-06 22:03:21 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' awheeler5 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 9 , ' dreynolds6@ustream.tv ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Dennis ' , ' Reynolds ' , ' 2016-11-06 22:03:21 ' , ' 2016-11-06 22:03:21 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' dreynolds6 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 10 , ' aarnold7@cbc.ca ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Andrea ' , ' Arnold ' , ' 2016-11-06 22:03:21 ' , ' 2016-11-06 22:03:21 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' aarnold7 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 11 , ' abutler8@wikia.com ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Anna ' , ' Butler ' , ' 2016-11-06 22:03:22 ' , ' 2016-11-06 22:03:22 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' abutler8 ' , NULL , NULL , NULL , 0 , ' en ' , 1 , NULL , 0 , 0 ) , ( 12 , ' mbennett9@diigo.com ' , ' $2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO ' , NULL , 1 , NULL , NULL , NULL , NULL , NULL , ' Mark ' , ' Bennett ' , ' 2016-11-06 22:03:22 ' , ' 2016-11-06 22:03:22 ' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , ' mbennett9 ' ,
Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.
This is a large code change that doesn't do much immediately. It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.
In addition, I've gone ahead and renamed a few database fields. We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number. We had items using ::note and ::notes, I've standardized
on ::notes. Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.
TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.
Rename assetmodel::modelno to model_number for clarity and consistency
Rename consumable::model_no to model_number for clarity and consistency
Rename assetmodel::note to notes for clarity and consistency
Port asset and assetmodel to new partials layout. Adapt all code to the renamed model_number and notes database changes. Fix some stying.
* Share a settings variable with all views.
* Allow editing the per_page setting. We showed the value, but we never showed it on the edit page..
* use snipeSettings in all views instead of the long ugly path.
* War on partials. Centralize all bootstrap table javascript
* Use model_number instead of modelno in importer
* Codacy fix.
* More unification/deduplication. Create an edit form template layout that we use as the base for all edit forms. This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.
* Use a ViewComposer instead of sharing the variable directly. Fixes artisan optimize trying to hit the db--which ruins new installs
* Fix DB seeder.
* Base sql dump and csv's to import data from for tests.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* A few things to make acceptance tests work. Add a name to the companies table, and make the locations table have the correct name
* Use a .env.tests file for testing functional and unit to allow a separate database.
* Add functional tests for compoents, groups, and licenses.
* Now that the config is in the functional.yml, this just confuses things.
* Start some functional tests for creating items.
* Add functional tests for all create methods. Still need to do tests for edits, deletes, and lots of other things
* Improvements to functional tests.
Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.
* Some improvements to acceptance tests.
Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.
I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.
* update db dump
* Update tests to new reality
* env for the test setup
* only load the database at beginning of tests, not between each Functional test.
* Fix a miss from renaming note to notes.
* Set Termination date when creating an asset. It was only set on edit.
* Rename serial_number to serial in components for consistency.
* Update validation rules to match limits in database. Currently we just accepted the values and they were truncated when adding to DB.
* Much more detailed functional testing of creating items. This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00
/* !40000 ALTER TABLE `users` ENABLE KEYS */ ;
UNLOCK TABLES ;
--
-- Table structure for table `users_groups`
--
DROP TABLE IF EXISTS ` users_groups ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !40101 SET character_set_client = utf8 */ ;
CREATE TABLE ` users_groups ` (
` user_id ` int ( 10 ) unsigned NOT NULL ,
` group_id ` int ( 10 ) unsigned NOT NULL ,
PRIMARY KEY ( ` user_id ` , ` group_id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
--
-- Dumping data for table `users_groups`
--
LOCK TABLES ` users_groups ` WRITE ;
/* !40000 ALTER TABLE `users_groups` DISABLE KEYS */ ;
/* !40000 ALTER TABLE `users_groups` ENABLE KEYS */ ;
UNLOCK TABLES ;
/* !40103 SET TIME_ZONE=@OLD_TIME_ZONE */ ;
/* !40101 SET SQL_MODE=@OLD_SQL_MODE */ ;
/* !40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */ ;
/* !40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */ ;
/* !40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */ ;
/* !40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */ ;
/* !40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */ ;
/* !40111 SET SQL_NOTES=@OLD_SQL_NOTES */ ;
2016-11-20 19:59:57 -08:00
-- Dump completed on 2016-11-20 12:36:32