Commit graph

14 commits

Author SHA1 Message Date
pre-commit-ci[bot]
29ceb87434 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-10-14 15:13:44 +00:00
serbanPricop
2fddeab56f feat(eav): add bulk save functionality to Entity model
- Add `commit` parameter to `save` method
- Implement `save_bulk` method for preparing bulk EAV Value objects
- Modify `save` method to support bulk creation when `commit=False`
- Update attribute value handling in `save` method
2024-10-14 18:13:33 +03:00
pre-commit-ci[bot]
6a80a3a22c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-10-14 14:49:53 +00:00
serbanPricop
127bae291b feat(entity): optimize entity save method and add bulk save functionality
- Add `commit` parameter to `Entity.save()` method
- Implement `save_bulk()` method for efficient bulk creation of EAV values
- Modify `save()` method to collect values and use `save_bulk()` when commit is True
- Improve performance by reducing database queries during save operations
2024-10-14 17:45:52 +03:00
Mike
8f18d5e7e2 fix(attribute): restore backward compatibility for invalid slugs
Replace ValidationError with a warning when creating Attributes with invalid slugs. This change allows existing code to continue functioning while alerting users to potential issues.
2024-09-01 21:26:45 -07:00
Mike
b5b576aca5 refactor: apply ruff linter rules and standardize code style
Replace flake8 with ruff and apply consistent linting rules across the entire codebase. Update type annotations, quotation marks, and other style-related changes to comply with the new standards.
2024-09-01 14:57:47 -07:00
pre-commit-ci[bot]
41fa7ddc5c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-31 21:20:36 -07:00
Mike
27d3887604 feat(attribute): add slug validation for Python identifier compliance
Implement custom validation for Attribute model's slug field to ensure it's a valid Python identifier. Add corresponding test case.
2024-08-31 21:20:36 -07:00
Christian Clauss
0b683ef3d5 Fix typos with codespell --ignore-words-list=unkown --skip="*.po" -w 2024-01-10 21:06:29 +01:00
Jacob Fredericksen
ee3f5662de fix: use typing.Tuple for annotations 2023-12-06 17:53:36 -05:00
Jacob Fredericksen
289e86e03f fix: use typing.Tuple for annotations 2023-12-06 13:43:02 -05:00
Jacob Fredericksen
08086b00c6 fix: use typing.Tuple for annotations 2023-12-05 11:47:28 -05:00
Jacob Fredericksen
1cdc2c4a41 refactor: cleanup 2023-11-30 13:11:59 -05:00
Jacob Fredericksen
7153bedce0 refactor: split model modules 2023-11-30 13:05:20 -05:00