In this release, we fix a long-standing issue with the API. The item categories route is plural; however, nothing else in the API supports multiple category assignments existing. We have added a category and subcategory limit, which is definable per item-type.
Added
- We have added an
item-subtypetable; the subtypes will allow us to customise individualitem-typeswithin the Costs to Expect App. - We have added a migration for the new
item-typeand the subtypes supported by theitem-type. - We have updated all resource collection and item response, we will include the selected
item-subtypein the response. - We have added an
item-subtypeschema. - We have added an
assigned-categoryschema for category assignments. - We have added an
assigned-subcategoryschema for subcategory assignments.
Changed
- We have modified the unique indexes on the
item_categoryanditem_sub_categorytable; we need to remove the unique index to allow multiple category assignments peritem. - We have updated create resource; we need you to define the
item-subtypewhen creating a resource. - We have added comments to the
allocated-expenseandsimple-expensemodels. We left join to the category and subcategory tables knowing there will only ever be at most one category. For lateritem-typesmultiple categories will get assigned to an item, we will need to come up with an alternative solution. - We have updated the clear cache calls for delete requests; we no longer add a job to the queue, we clear the cache synchronously.
Fixed
- We have updated create resource type; we didn’t start a transaction.
- We have updated the returned response after creating a resource type; the chosen item type will now show in the response.