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

Feature/dimensions cleanup #7

Closed wolflu05 closed 1 year ago

wolflu05 commented 1 year ago

This PR refactors the generators into own classes and adds the ability to have multiple generators in one dimension.

⚠️ Breaking

Infinity generators now need a * before their name and the ALPHA_* generators were renamed to ALPHA with a casing=lower parameter.

Migration:

NUMERIC -> *NUMERIC ALPHA_LOWER -> *ALPHA{casing=lower} ALPHA_UPPER -> *ALPHA{casing=upper}

Todo

Fixes

fixes #4

github-actions[bot] commented 1 year ago

Coverage Report

Code Coverage Name Stmts Miss Cover Missing
inventree_bulk/BulkActionPlugin.py 118 0 100%
inventree_bulk/BulkGenerator/BulkGenerator.py 85 0 100%
inventree_bulk/BulkGenerator/dimensions.py 66 0 100%
inventree_bulk/BulkGenerator/generators/gen_alpha.py 36 0 100%
inventree_bulk/BulkGenerator/generators/gen_numeric.py 14 0 100%
inventree_bulk/BulkGenerator/generators/generator.py 33 0 100%
inventree_bulk/BulkGenerator/validations.py 24 0 100%
inventree_bulk/migrations/0001_initial.py 6 0 100%
inventree_bulk/models.py 21 0 100%
inventree_bulk/version.py 1 0 100%
TOTAL 404 0 100%