wolflu05 / inventree-bulk-plugin

A bulk creation plugin for InvenTree, which helps you generating locations, categories and even parts in bulk by using customized naming strategies and ensure them along your complete storage tree.
MIT License
17 stars 1 forks source link

API refactor #47

Closed wolflu05 closed 1 year ago

wolflu05 commented 1 year ago

This PR refactors the API to use a generic endpoint for bulk creation. It also refactors to use the more readable drf views to simplify code.

TODO

github-actions[bot] commented 1 year ago

Coverage Report

Code Coverage Name Stmts Miss Cover Missing
inventree_bulk_plugin/BulkGenerator/BulkGenerator.py 148 0 100%
inventree_bulk_plugin/BulkGenerator/dimensions.py 66 0 100%
inventree_bulk_plugin/BulkGenerator/generators/gen_alpha.py 36 0 100%
inventree_bulk_plugin/BulkGenerator/generators/gen_numeric.py 14 0 100%
inventree_bulk_plugin/BulkGenerator/generators/generator.py 33 0 100%
inventree_bulk_plugin/BulkGenerator/template.py 10 0 100%
inventree_bulk_plugin/BulkGenerator/utils.py 9 0 100%
inventree_bulk_plugin/BulkGenerator/validations.py 53 0 100%
inventree_bulk_plugin/InvenTreeBulkPlugin.py 23 0 100%
inventree_bulk_plugin/api.py 62 0 100%
inventree_bulk_plugin/bulkcreate_objects.py 59 0 100%
inventree_bulk_plugin/migrations/0001_initial.py 6 0 100%
inventree_bulk_plugin/models.py 21 0 100%
inventree_bulk_plugin/serializers.py 22 0 100%
inventree_bulk_plugin/version.py 1 0 100%
TOTAL 563 0 100%