Commit graph

651 commits

Author SHA1 Message Date
9cf4717a0b Features: 1) Allow tracking of .idea/icon.svg in the repository;
Fixes: None;

Extra: None;
2025-06-27 04:16:40 +03:00
718f3dffa9 Features: 1) Added inactivation method parameter to delete_inactives for flexible product deletion options.
Fixes: 1) Corrected error message in `products` update case for consistent terminology.

Extra: 1) Refactored `delete_inactives` logic for clarity and added validation for inactivation methods.
2025-06-27 02:22:40 +03:00
61033a58d6 Features: 1) Add method parameter to prepare_for_stock_update to support multiple actions (deactivate, delete, update description);
Fixes: None;

Extra: 1) Add `QuerySet` import to support type hinting; 2) Improve error handling with descriptive `ValueError` for invalid method.
2025-06-27 02:19:54 +03:00
3020a40747 Features: None;
Fixes: None;

Extra: 1) Add `.nuxt` to `.gitignore` for Storefronts project consistency.
2025-06-27 01:58:50 +03:00
426af1ad2c Features: 1) Update admin icons for better visual representation ("order products" and "children").
Fixes: None;

Extra: 1) Normalize code formatting in `vibes_auth` manager methods for consistency; 2) Clean redundant indentation and comments in methods.
2025-06-26 13:10:56 +03:00
e6d59f053c Features: 1) Add is_active field to general_fields across all admin configurations; 2) Modify method definitions in BasicModelAdmin to utilize request parameter;
Fixes: 1) Correct method parameters for activation/deactivation actions in `BasicModelAdmin`;

Extra: 1) Improve formatting of `general_fields` lists for readability.
2025-06-24 17:12:21 +03:00
5886ca0ab9 Features: 1) Adjusted field weights in SMART_FIELDS for "name" and "name.ngram" to improve relevance scoring;
Fixes: None;

Extra: None;
2025-06-23 19:28:30 +03:00
0a81b12100 Features: 1) Add support for fine-tuned boosts in Elasticsearch scoring for title and related fields; 2) Adjust product, brand, and category scoring multipliers to improve search ranking flexibility.
Fixes: 1) Correct `total_orders` calculation in `Product` model to count only relevant statuses.

Extra: 1) Refactor comments for clarity in Elasticsearch configuration; 2) Minor formatting adjustments.
2025-06-23 16:52:39 +03:00
23351c79ab Fixes: 1) Corrected callable usage for attachment_upload_to in Summernote settings;
Extra: None;
2025-06-23 16:21:50 +03:00
f9c6fe3424 Features: 1) Add icon attributes to Balance and OrderInline admin classes; 2) Introduce evibes_summernote_upload_to_func for custom attachment upload paths in Summernote config;
Fixes: 1) Add missing import for `os`, `uuid`, and `datetime` in `evibes.utils.__init__.py`;

Extra: None;
2025-06-23 16:12:43 +03:00
fa54271e89 Features: 1) Add autocomplete_fields for user in admin; 2) Extend general_fields in admin to include start_time, end_time, and used_on;
Fixes: 1) Make `used_on` a readonly field in admin;

Extra: 1) Minor formatting update in `search_fields`.
2025-06-23 16:00:12 +03:00
080fcb2a25 Features: 1) Add suppress(NotRegistered) to handle unregistered translation models safely; 2) Enhance add_translations_fieldset logic for better error handling;
Fixes: 1) Add missing import for `NotRegistered` in `admin.py`;

Extra: 1) Minor refactoring of `add_translations_fieldset` function for readability;
2025-06-23 15:33:35 +03:00
2410f6dd3d Fixes: 1) Correct import path for CONSTANCE_CONFIG and EVIBES_VERSION. 2025-06-23 02:53:30 +03:00
4abb174287 Features: 1) Add support for dynamic versioning in sidebar footnote;
Fixes: 1) Add missing import for EVIBES_VERSION;

Extra: 1) Minor update to sidebar footnote formatting;
2025-06-23 02:42:50 +03:00
f7c5fdcf37 Fixes: 1) Remove redundant populate_index calls from core/tasks.py;
Extra: 1) Cleanup unused import for `populate_index`.
2025-06-23 02:31:16 +03:00
d419d9c72e Features: 1) Add billiard.exceptions.WorkerLostError to handled exceptions in Sentry configuration;
Fixes: 1) Remove conditional `DEBUG` block that redundantly extended ignored errors at runtime;

Extra: 1) Add comments clarifying handled exceptions; 2) Cleanup unused `DEBUG` logic for error handling.
2025-06-22 23:59:28 +03:00
b0aa8e0906 Features: 1) Add auto_refresh attribute to Elasticsearch documents with default False;
Fixes: None;

Extra: 1) Remove unused healthcheck configuration from `docker-compose.yml`.
2025-06-22 23:37:57 +03:00
58b227c2d6 Features: 1) Update project version to 2.8.10 in pyproject.toml and translation files;
Fixes: 1) None;

Extra: 1) Update translation metadata across multiple locales.
2025-06-22 20:45:26 +03:00
0e9f16d7d0 Features: 1) Add condition to check notify flag before sending balance deposit email;
Fixes: 1) Ensure emails are only sent when notification flag is enabled;

Extra: None;
2025-06-22 20:29:53 +03:00
d1f385e387 Features: 1) Use AbstractGateway for processing transactions in signals;
Fixes: 1) Add missing import for `AbstractGateway` in `signals.py`;

Extra: n/a;
2025-06-22 20:27:10 +03:00
489ceeaa2a Features: 1) Add AbstractGateway base class with process_transaction and process_callback methods.
Fixes: 1) Correct gateway status handling logic in `payments/signals.py`.

Extra: 1) Remove redundant condition checks in `payments/signals.py`.
2025-06-22 20:26:51 +03:00
b92e7e28f1 Features: 1) Add new email content translations for ru_RU, zh_Hans, and ro_RO locales; 2) Update "balance deposit" and general email-related translations across multiple languages;
Fixes: 1) Correct inconsistent formatting in translation strings; 2) Fix placeholders in email templates for better accuracy;

Extra: Update `.gitignore` to include `.env` file exclusion.
2025-06-22 20:18:19 +03:00
d9e50c04c1 Features: 1) Add related_models attribute to document configuration;
Fixes: None;

Extra: None;
2025-06-22 18:30:49 +03:00
5c8d83a7ae Fixes: 1) Add OperationalError to the base exception filter list;
Extra: None;
2025-06-22 18:25:19 +03:00
3a89fb4aca Fixes: 1) Remove unused "health_check.contrib.celery" from installed apps;
Extra: 1) Removed dead code to improve clarity and maintainability;
2025-06-22 18:23:03 +03:00
35ac700a44 Features: 1) Add verbose_name attribute to multiple Slug fields for better clarity;
Fixes: 1) Correct conditional handling of `fieldsets` to avoid duplicate `metadata` fields in admin view;

Extra: n/a;
2025-06-22 17:12:59 +03:00
43141bc3d5 Features: 1) Extend metadata field handling in admin to include both uuid and slug.
Fixes: _(no relevant changes detected)_.

Extra: 1) Update Russian locale binary (`django.mo`) file content.
2025-06-22 17:08:16 +03:00
437f3cff31 Features: 1) Simplify FieldsetsMixin class by including translation handling method inline; 2) Improve icon consistency with updated replacements in ModelAdmin classes.
Fixes: 1) Add missing `# type: ignore` comments for type-checking in admin site customizations.

Extra: 1) Refactor admin models by removing `TranslationFieldsetMixin` usage; 2) Streamline translation fieldset injection logic; 3) Code cleanup and minor comment adjustments.
2025-06-22 16:57:54 +03:00
0079998ed7 Features: 1) Add is_navtab, verbose_name, verbose_name_plural, and icon attributes to several inlines for better configuration and clarity;
Fixes: 1) Add `# type: ignore` comments to suppress type checking issues on model assignments;

Extra: 1) General code cleanup and improvements to the `admin.py` file.
2025-06-22 16:48:50 +03:00
15df6dd0c8 Features: 1) Add readonly_fields for uuid, modified, and created attributes across multiple admin models; 2) Improve type annotations for FieldsetsMixin class fields.
Fixes: 1) Resolve "type: ignore" addition for `ProductAdmin` model definition.

Extra: 1) Minor formatting adjustments for improved readability; 2) Enhance code clarity by standardizing `readonly_fields` across admin classes.
2025-06-22 16:41:32 +03:00
d9e67d5de3 Fixes: None;
Features: None;

Extra: 1) Change fieldset titles to lowercase for consistency.
2025-06-22 16:34:57 +03:00
092c7e908c Features: 1) Implement FieldsetsMixin to dynamically generate and manage admin fieldsets; 2) Refactor admin class definitions to leverage FieldsetsMixin for better consistency and extensibility.
Fixes: 1) Correct usage of `CONSTANCE_CONFIG` when setting `site_title` and `index_title` in `admin`.

Extra: Updated imports, removed redundant inline configs, cleaned up unused code, and improved readability in `admin.py`.
2025-06-22 16:34:07 +03:00
d9c4717a8d Features: 1) Add a new Elasticsearch document for TestModel with fields and settings;
Fixes: None;

Extra: 1) Add missing import for TestModel in `core/elasticsearch/documents.py`.
2025-06-22 16:20:05 +03:00
c682137fc5 Features: 1) Replace I18NFieldsetMixin with TranslationFieldsetMixin across all applicable admin classes; 2) Add new inlines for managing related objects such as OrderProduct and CategoryChildren; 3) Introduce support for dynamic translation fields in admin fieldsets.
Fixes: 1) Correct `notifications` field handling in `OrderAdmin` and `OrderItemAdmin` save logic; 2) Fix admin `get_queryset` prefetching logic for various models.

Extra: Remove outdated labels and sections in fieldsets; clean up unused imports and commented code for readability.
2025-06-22 16:15:48 +03:00
5425225e31 Features: 1) Add datetime library import; 2) Introduce id_for_label properties for all fields in NiceModel;
Fixes: 1) Correct field type hints and add `# type: ignore` to suppress validation issues;

Extra: Refactor code for formatting consistency and readability.
2025-06-22 15:54:43 +03:00
8b46c0a2c5 Features: None;
Fixes: None;

Extra: 1) Remove deprecated `health_check.contrib.celery_ping` from installed apps; 2) Remove unused `HEALTHCHECK_CELERY_PING_TIMEOUT` setting.
2025-06-22 15:36:48 +03:00
9347ce1767 Features: 1) Add HEALTHCHECK_CELERY_PING_TIMEOUT setting with default value.;
Fixes: (none);

Extra: (none);
2025-06-22 15:32:21 +03:00
30326042b5 Fixes: 1) Removed unused health check dependency for the app service in docker-compose.yml. 2025-06-22 15:28:08 +03:00
eb07ca381e Fixes: 1) Update healthcheck to include 'Accept: application/json' header in curl command;
Extra: None;
2025-06-22 15:21:00 +03:00
7dae84dc10 Features: 1) Add inclusion of Django i18n URL configuration to urlpatterns;
Fixes: 1) None;

Extra: 1) Add imports for `include` and `path` from `django.urls`.
2025-06-22 15:15:57 +03:00
1db40a85cf Fixes: 1) Correct metrics path in Prometheus configuration.
Extra: None.
2025-06-22 15:09:36 +03:00
b28d6f1407 Features: 1) Add Windows PowerShell script for database and media backups;
Fixes: 1) Correct health check URL syntax in `docker-compose.yml`;

Extra: N/A;
2025-06-22 15:03:43 +03:00
a53a3dc788 Fixes: 1) Correct trailing slash in Prometheus metrics_path for 'app' job. 2025-06-22 14:55:55 +03:00
ad41718d09 Fixes: 1) Update healthcheck URL path in docker-compose.yml to correct endpoint.
Extra: N/A;
2025-06-22 14:55:13 +03:00
a8d5969198 Features: 1) Add icons to various admin inline and model configurations for improved UI clarity;
Fixes: None;

Extra: None;
2025-06-22 14:46:56 +03:00
76c3cd17e3 Features: 1) Replace I18NTabTranslationAdmin with I18NFieldsetMixin for admin classes; 2) Introduce _TranslationInline for managing translation fields dynamically; 3) Add created and modified fields to readonly_fields in Category admin class;
Fixes: 1) Resolve unnecessary imports from `modeltranslation.admin` and streamline admin imports;

Extra: 1) Refactor translation logic into `get_inline_instances` for improved modularity and clarity.
2025-06-22 01:55:46 +03:00
0d37b5b23b Fixes: 1) Correct iteration over local_fields in translator options, replacing deprecated fields.keys(). 2025-06-22 01:42:48 +03:00
c73a8957ed Features: None;
Fixes: None;

Extra: 1) Remove redundant SECTION_I18N fieldsets across admin configurations for cleaner and more maintainable code;
2025-06-22 01:37:37 +03:00
48ef110ac4 Features: 1) Add I18NFieldsetMixin to organize translation fields into a dedicated fieldset; 2) Implement I18NTabTranslationAdmin for enhanced multi-language admin support; 3) Apply new translation admin to AttributeGroupAdmin, AttributeAdmin, AttributeValueAdmin, CategoryAdmin, BrandAdmin, ProductAdmin, ProductTagAdmin, CategoryTagAdmin, and PromotionAdmin.
Fixes: 1) Replace `TranslationGenericTabularInline` with `I18NTabTranslationAdmin` to avoid potential translation field duplication.

Extra: 1) Update fieldsets in various model admins for improved structure and translation field grouping; 2) Add constants for fieldset section names to enhance readability and consistency.
2025-06-22 01:31:33 +03:00
02102fa470 Features: 1) Replace TabbedExternalJqueryTranslationAdmin with TranslationGenericTabularInline for multiple admin classes to update translation handling;
Fixes: 1) None;

Extra: 1) Regenerate `django.mo` file for localization updates.
2025-06-22 01:20:39 +03:00