Commit graph

9 commits

Author SHA1 Message Date
serbanPricop
e3ae5b516d style(entity): improve code style and consistency in Entity class
- Change `save` method signature to use keyword-only argument
2024-10-14 23:30:19 +03:00
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
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
Christian Clauss
0b683ef3d5 Fix typos with codespell --ignore-words-list=unkown --skip="*.po" -w 2024-01-10 21:06:29 +01: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