3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-08 18:25:37 +00:00
Commit Graph

7 Commits

Author SHA1 Message Date
c8ad45b11e Port import manager code to develop 2018-10-03 00:52:29 -07:00
2c38036123 Improvement: Better documentation, small refactors (#6017)
* Better documentation, small refactors

* Small comment fixes
2018-08-01 00:06:41 -07:00
baa3be728d Refactoring: A nicer and easier syntax for searching models (#5841)
* Adds the ability to search by dates

Adding extra „where“-conditions to the „TextSearch“ queries, allowing the users to search by dates

* Adds missing dates to $dates in models

* Removes duplicated „where“ conditions

* Adds the Searchable trait to models, defining the searchable attributes and relations

* Removes the old text search methods

* Adds back additional conditions to the search

These conditions could not be modeled in the „attributes“ or „relations“, so we include them here

* Removes unnecessary check for the deleted_at attribute

* Fixes typo in comments

* suppresses errors from Codacy

We can safely ignore the error codacy is throwing here, since this method is a standin/noop for models who need to implement more advanced searches
2018-07-16 14:13:07 -07:00
0cf9cdd3b1 Make department columns sortable 2018-02-21 05:04:20 -08:00
e0d2cbef20 Allow manager to be null for dept 2017-05-23 02:49:00 -07:00
96e8109d01 Allow location/company/manager to be null via validation 2017-05-23 02:48:51 -07:00
ae329f4160 Department model 2017-05-22 21:32:22 -07:00