Commit graph

222 commits

Author SHA1 Message Date
9591494fee Features: 1) Add "dalf" package to dependencies for enhancing Django admin list_filter capabilities; 2) Update "notebook" package to version 7.4.4 and adjust its dependencies; 3) Integrate "dalf" filters in admin list_filter configuration;
Fixes: 1) Correct admin list_filter configurations with appropriate DALF fields;

Extra: 1) Update PyCharm project settings to use Google-style docstrings.
2025-06-30 16:59:32 +03:00
83cad6c1cc Features: 1) Update all logger instances across the codebase to use "evibes" instead of "django";
Fixes: 1) None;

Extra: 1) Enhance consistency in logging configuration and improve alignment with project-specific naming conventions.
2025-06-30 01:44:20 +03:00
090e575404 Features: none;
Fixes: none;

Extra: 1) Improve Russian translation in API documentation text for clarity and readability;
2025-06-29 21:31:44 +03:00
856f2ff516 Features: 1) Add app_name attribute in multiple urls.py files across apps to support namespacing;
Fixes: 1) Simplify Prometheus and GraphQL path definitions in `evibes/api_urls.py`;

Extra: 1) Add line breaks across multiple files for improved code readability.
2025-06-29 20:03:33 +03:00
7ff62cea0e Features: 1) Add detailed class-level docstrings for multiple ViewSets and views, improving maintainability and documentation; 2) Introduce namespace for "core_b2b" in URL patterns for better URL resolution.
Fixes: 1) Remove unused "prometheus/" URL pattern for cleanup.

Extra: Update imports and formats for consistency; refine sitemap functions with explicit docstrings.
2025-06-29 19:56:52 +03:00
74813bcdf4 Features: 1) Added "Home" translation to AR, EN, and ES locale files; 2) Updated PO and MO file metadata with revised POT creation date.
Fixes: 1) Corrected inconsistent translation strings across locale files.

Extra: Updated version and contributor metadata in locale files.
2025-06-29 19:51:45 +03:00
27603edf4e Features: 1) Introduced RootDirectory class for integration with management commands; 2) Added support for scanning root level configurations in check_translated.py and deepl_translate.py;
Fixes: 1) Adjusted Django admin translations display logic for improved clarity; 2) Updated locale files across multiple regions (e.g., `ru_RU`, `zh_Hans`, `ro_RO`) to align with new context placeholders;

Extra: Removed obsolete `STOCKS_ARE_SINGLE` setting; minor formatting and spacing corrections in translations and source files.
2025-06-29 19:40:44 +03:00
14c37701b6 Features: 1) Add _ import for translations in emailing utility; 2) Simplify urlpatterns definition in api_urls; 3) Introduce is_publicly_visible attribute to multiple core models;
Fixes: 1) Correct transaction primary key reference in email utility; 2) Remove unnecessary model permissions in `jazzmin.py`;

Extra: 1) Minor formatting alignments to codebase including whitespace adjustments; 2) Retain static URL handling in debug mode for `api_urls`.
2025-06-29 19:18:27 +03:00
7dc69ad63f Features: 1) Add docutils dependency to pyproject.toml and poetry.lock for enhanced documentation utilities; 2) Add verbose and descriptive docstrings for multiple core models to outline attributes, methods, and meta options; 3) Enable XViewMiddleware in settings for admin documentation support;
Fixes: None;

Extra: Update `lock-version` and `content-hash` in `poetry.lock` reflecting the addition of `docutils` package;
2025-06-29 19:12:48 +03:00
eb68132dd3 Features: 1) None;
Fixes: 1) Correct formatting of multi-line expressions for better readability; 2) Ensure consistent use of single-line expressions where appropriate; 3) Fix minor spacing issues in text fields; 4) Adjust admin model field `general_fields` to include `priority`;

Extra: Refactored several multi-line statements to improve consistency and code style.
2025-06-29 19:08:17 +03:00
9f703fe5e5 Features: 1) Update Jazzmin UI theme to "cyborg" for both light and dark modes;
Fixes: ;

Extra: ;
2025-06-29 18:53:14 +03:00
d3dbbcb242 Features: 1) Update Russian translation for "balances" in payments/locale/ru_RU/LC_MESSAGES/django.po; 2) Enable UI builder in Jazzmin settings; 3) Add "uuid" to readonly_fields in both blog/admin.py and core/admin.py;
Fixes: 1) Correct Russian translation for "balances" in locale files; 2) Fix mismatch in Jazzmin `site_brand` configuration to use project name;

Extra: Refactor locale files, add missing translation updates, and adjust formatting;
2025-06-29 18:50:33 +03:00
78f3081f2b Features: 1) Add JAZZMIN_UI_TWEAKS configuration with theme and dark mode theme options;
Fixes:;

Extra:;
2025-06-29 16:47:41 +03:00
090d2fc457 Features: 1) Support COMPANY_NAME variable for site_brand; 2) Add type annotations with type: ignore in JAZZMIN_SETTINGS;
Fixes: 1) Update `search_model` to `None` to avoid incorrect search configurations;

Extra: 1) Remove deprecated user menu links for a cleaner interface; 2) Minor adjustments for consistency in string formatting.
2025-06-29 16:44:41 +03:00
f8a34f7ae0 Features: 1) Simplify logo and favicon paths in Jazzmin settings.
Fixes: 1) None.

Extra: 1) Minor formatting adjustments to Jazzmin configuration.
2025-06-29 16:39:18 +03:00
83e1f09873 Features: 1) Replace django-daisy with django-jazzmin for admin UI; 2) Add extensive configuration for django-jazzmin including topmenu links, user menu links, and custom icons; 3) Enable language chooser and horizontal tabs in change form layout;
Fixes: 1) Remove unused dependency `django-daisy` from `pyproject.toml` and `poetry.lock`;

Extra: 1) Upgrade `lxml` to version 6.0.0; 2) Upgrade `click-plugins` and `jupyterlab` to newer minor versions.
2025-06-29 16:32:53 +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
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
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
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
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
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
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
73cfcb280c Fixes: 1) Remove unused sniff_on_start and sniff_on_connection_fail keys from Elasticsearch settings;
Extra: Clean up redundant settings in configuration.
2025-06-22 01:08:17 +03:00
f090b2ddc9 Features: 1) Add verbosity option for manage.py migrate and collectstatic commands in reboot scripts;
Fixes: 1) Remove unused sniffer_timeout in Elasticsearch settings;

Extra: 1) Minor adjustments to improve script output clarity.
2025-06-22 01:06:20 +03:00
ac7c71c4a1 Fixes: 1) Replace os.getenv with getenv in Elasticsearch settings to avoid import errors;
Extra: 1) Add `noqa: F405` comment to suppress linter warning for `getenv`.
2025-06-22 01:01:47 +03:00
db1a357ccb Features: 1) Update Elasticsearch configuration to use a single host;
Fixes: 1) Replace obsolete `getenv` usage with `os.getenv` for better clarity;

Extra: 1) Remove sniffing-related configurations no longer required;
2025-06-22 01:00:41 +03:00
4e6d0a9bab Features: 1) Add support for multiple Elasticsearch hosts with enhanced configurations; 2) Enable sniffing parameters for cluster discovery and failover handling; 3) Introduce Celery-based signal processor for Elasticsearch synchronization.
Fixes: 1) Correct `http_auth` parameter to replace deprecated `basic_auth`.

Extra: 1) Update default Elasticsearch configuration values; 2) Modify `ELASTICSEARCH_DSL_AUTOSYNC` to reflect debug mode; 3) General cleanup and parameter refinements.
2025-06-22 00:54:54 +03:00
a91ba0c41a Features: 1) Add priority field to Category model; 2) Update priority field in Brand model to improve consistency.
Fixes: 1) Ensure correct handling of query results in category/brand auto-resolve methods; 2) Fix PO formatting issues across multiple locales.

Extra: 1) Add `priority` field to Django admin for categories; 2) Suppress specific type-checking warnings in settings and utilities.
2025-06-22 00:48:06 +03:00
fdd92dbf8b Features: 1) Introduced strict parameter for zip function in widgets.py; 2) Added EXTENSIONS_MAX_UNIQUE_QUERY_ATTEMPTS setting;
Fixes: 1) Resolved redundant lines and formatting inconsistencies across multiple files; 2) Corrected Collection typing imports and Optional replacements with union types (e.g., `str | None`);

Extra: Improved formatting and readability by consolidating single-line code sections and simplifying expressions.
2025-06-21 20:38:37 +03:00
fe9dfe552b Features: None;
Fixes: None;

Extra: 1) Remove unused `divider_title` attribute across app configurations and settings; 2) Cleanup unnecessary translation import in `daisy.py`.
2025-06-21 19:19:09 +03:00
29f8be5624 Fixes: 1) Correct invalid URL in DAISY_SETTINGS for EXTRA_STYLES path. 2025-06-21 19:11:46 +03:00
400d198afc Features: 1) Add dynamic BASE_DOMAIN-based URL for EXTRA_STYLES in DAISY_SETTINGS;
Fixes: None;

Extra: 1) Add missing import for CONSTANCE_CONFIG in daisy.py;
2025-06-21 18:49:07 +03:00
b96ad5aa80 Features: 1) Added "eVibes Engine" translation for multiple languages; 2) Updated priorities for applications in settings/daisy.py;
Fixes: 1) Corrected mismatched line references in translations; 2) Adjusted timestamps in locale files for accuracy;

Extra: Refactored and cleaned up unused or misplaced translation entries.
2025-06-21 18:45:14 +03:00
3ab95e9b56 Features: 1) Added icons, divider titles, priorities, and hide settings to apps; 2) Introduced Daisy settings file for customizable UI configuration; 3) Implemented new CSS styles for paginator component with hover and active states.
Fixes: 1) Updated AutoSlugField to enhance slug generation logic in core models.

Extra: 1) Removed redundant Daisy settings from base configurations; 2) Minor code cleanup and organization.
2025-06-21 18:35:34 +03:00
1e2351afd5 Revert "Features: 1) Add chunk_size attribute to _BaseDoc class; 2) Enable additional Elasticsearch configurations (timeout, max_retries, retry_on_timeout); 3) Set ELASTICSEARCH_DSL_PARALLEL to True;"
This reverts commit 1dae1a6be5.
2025-06-20 05:12:00 +03:00
65a34bb90b Revert "Features: 1) Adjust Elasticsearch timeout settings and retry configuration for improved connection handling."
This reverts commit 76954ac24c.
2025-06-20 05:11:57 +03:00
76954ac24c Features: 1) Adjust Elasticsearch timeout settings and retry configuration for improved connection handling.
Fixes: 1) Reduce `_BaseDoc.chunk_size` to prevent potential memory issues.

Extra: 1) Disable Elasticsearch parallel indexing to enhance stability.
2025-06-20 04:56:31 +03:00
1dae1a6be5 Features: 1) Add chunk_size attribute to _BaseDoc class; 2) Enable additional Elasticsearch configurations (timeout, max_retries, retry_on_timeout); 3) Set ELASTICSEARCH_DSL_PARALLEL to True;
Fixes: None;

Extra: None;
2025-06-20 04:10:55 +03:00
ba335e5d96 Features: 1) Add configuration for django_summernote in settings menu;
Fixes: ;

Extra: 1) Update priority values for existing menu items to accommodate `django_summernote`;
2025-06-19 16:46:48 +03:00
ac39dedf94 Features: 1) Enable iframe support in Summernote configuration;
Fixes:

Extra: 1) Revert Summernote theme from "bs5" to "bs4".
2025-06-19 13:59:44 +03:00
77d978fecb Features: 1) Integrated django-summernote for rich text editing; 2) Added Summernote fields in PostAdmin with configuration; 3) Configured summernote settings in a separated module;
Fixes: 1) Adjusted modeltranslation admin import to use external jQuery variant; 2) Corrected optional flags for package dependencies in poetry.lock;

Extra: 1) Removed custom PostAdminForm in favor of SummernoteModelAdmin; 2) Enhanced formatting consistency in api_urls and admin files.
2025-06-19 13:15:04 +03:00
11977ff0c6 Fixes: 1) Correct ALLOWED_HOSTS syntax by changing "app:" to "app". 2025-06-18 23:55:52 +03:00
c07803db42 Features: 1) Update ALLOWED_HOSTS to simplify and standardize host patterns.
Fixes: None;

Extra: None;
2025-06-18 23:50:16 +03:00
d616d2e18b Features: 1) Improved support for nested multi-line typing hints across numerous functions; 2) Refactored variable assignments for enhanced readability within bulk_add_products and bulk_remove_products; 3) Updated token-related test methods to ensure consistent styling;
Fixes: 1) Removed unused imports including `Order` from `payments/models.py` and `health_check.contrib.redis` from settings; 2) Fixed inconsistent formatting and parameter alignment in method definitions; 3) Corrected type annotations and adjusted verbose text handling;

Extra: Cleaned up formatting in docstrings, comments, and JSON field help text across multiple files for better code style compliance and readability.
2025-06-18 16:55:49 +03:00
8fb4ca3362 Features: 1) Add type annotations for various models and methods; 2) Introduce refined graphene resolvers to enhance permission handling; 3) Include type checking suppression with # type: ignore for unsupported cases.
Fixes: 1) Correct `urlsafe_base64_encode` decoding logic in tests; 2) Fix queryset access issues in resolvers; 3) Address missing or incorrect imports across multiple files.

Extra: Improve code readability with consistent naming and formatting; Add `# noinspection` annotations to suppress IDE warnings; Update `pyproject.toml` to exclude `drf.py` in MyPy checks.
2025-06-18 16:38:07 +03:00
a33be30098 Features: 1) Added vendor, product tag, category tag models and metadata; 2) Introduced proper noinspection comments for Mypy warnings; 3) Extended Markdown linting rules.
Fixes: 1) Corrected `ForeignKey` type assertions across models; 2) Resolved typos and formatting inconsistencies in `.env` and README; 3) Fixed explicit boolean checks in user manager methods.

Extra: Updated type hints in multiple models, serializers, and views.
2025-06-18 15:58:49 +03:00
328ccaa615 Features: 1) 2.8.9 update
Fixes: 1) wtf go read diff;

Extra: ???
2025-06-18 15:05:58 +03:00
0153157653 Features: None;
Fixes: 1) Correct indentation in multiple modules, including mutations, models, and utility methods to maintain consistency; 2) Fix typos in function parameters and update alignment for readability;

Extra: Refactored for improved code readability and adherence to PEP 8 style guidelines.
2025-06-17 11:34:02 +03:00
6ee3870ab0 Features: 1) Add a management command to fix product stock prices; 2) Introduce 'products' field to CategoryType in GraphQL schema to fetch products associated with a category; 3) Enable GraphQL resolvers to utilize type hinting for better clarity.
Fixes: 1) Correct multiple unaligned code blocks in various Python scripts and GraphQL resolvers; 2) Improve condition formatting for readability in mutations and queries; 3) Resolve missing related_name in product model.

Extra: Simplify and refactor Windows scripts removing legacy spinner logic for clarity and better user feedback; adjust spacing, comments, and formatting across various files; update imports for unused QuerySet.
2025-06-17 11:13:11 +03:00
576c7618e7 Fixes: 1) Correct typo in settings key from "ADVERTISIMENT_DATA" to "ADVERTISEMENT_DATA";
Extra: None;
2025-06-16 18:16:19 +03:00
0da8bd77b0 Features: 1) Add "required: False" option to JSON custom field;
Fixes: None;

Extra: None;
2025-06-16 12:11:26 +03:00
c950ce04b9 Features: 1) Add support for custom JSON field in CONSTANCE_ADDITIONAL_FIELDS.
Fixes: 1) Correct placement of "constance" in `INSTALLED_APPS`.

Extra: 1) Minor comment formatting adjustment in `CONSTANCE_BACKEND` declaration.
2025-06-16 12:10:04 +03:00
1cad1aead8 Features: 1) Update ADVERTISEMENT_DATA and ANALYTICS_DATA definitions to use raw environment string and type "json";
Fixes: 1) Remove unused `json` import;

Extra: 1) Minor adjustment to code formatting in `constance.py`.
2025-06-16 11:13:57 +03:00
a4e586719c Features: I18N 2025-06-16 11:07:34 +03:00
7ba9afda6a Features: 1) Add analytics_data and advertisement_data fields to company configuration in GraphQL schema;
Fixes: 1) Correct spelling error in `CONSTANCE` configuration key from `ADVERTISIMENT_DATA` to `ADVERTISEMENT_DATA`;

Extra: 1) Update string translations in `constance.py`.
2025-06-16 10:42:39 +03:00
0fa8cba05e Features: 1) Add ADVERTISIMENT_DATA and ANALYTICS_DATA to CONSTANCE_CONFIG with default values and descriptions; 2) Integrate translation functionality into CONSTANCE_CONFIG descriptions using _(); 3) Expand EXPOSABLE_KEYS to include new config fields.
Fixes: 1) Replace redundant or missing translation calls in configuration values; 2) Correct oversight in description consistency for existing fields.

Extra: Refactor `CONSTANCE_CONFIG` structure for improved readability using multi-line formatting where necessary; clean up imports to include `gettext_lazy` and `json`.
2025-06-16 10:40:21 +03:00
52ea4c3212 Fixes: settings data types 2025-06-11 11:23:54 +03:00
1e8d053ab6 Features: 1) OS-specific scripts for deployments.
2) Healthcheck improvements.
Fixes: merge_recently_viewed for UserViewSet
2025-06-11 02:54:46 +03:00
3b9b69a409 Features:
1) CategoryTag migration
2) docker-compose.yml healthchecks
2025-06-10 06:08:50 +03:00
18f3b9d2e8 Features:
1) Userless orders will be merged on user's registration by their phone number and/or email. Added Viewset action "merge_recently_viewed" so recently viewed products may be stored on server's side.
2) Added comprehensive products' filtering by category(support for including subcategories)
Fixes: I18N
2025-06-10 05:40:07 +03:00
f97d84ae58 Fixes: no_underscore_before_number to False 2025-06-08 14:58:22 +03:00
867c4d919b 2.8.0 released 2025-06-05 20:47:30 +03:00
8db354c85a Fixes: fix ALLOWED_HOSTS 2025-06-05 19:23:10 +03:00
39f5d19f9b Fixes: fix ALLOWED_HOSTS 2025-06-05 19:16:50 +03:00
66157518b8 Fixes: fix logging 2025-06-05 19:12:14 +03:00
b01041d150 Fixes: add debugging log 2025-06-05 19:08:13 +03:00
8e7a6caae9 Fixes: fix BlockInvalidHostMiddleware 2025-06-05 19:00:22 +03:00
546234c68c Fixes: fix ALLOWED_HOSTS for prometheus container 2025-06-05 18:11:00 +03:00
520b8ee8f7 Fixes: fix incorrect imports 2025-06-05 18:01:00 +03:00
3c21f9f386 Fixes: tryout without command code aligning 2025-06-05 17:45:15 +03:00
fb61383b2d Fixes: try without prometheus backends 2025-06-05 17:28:56 +03:00
cbdb6fe845 Fixes: set sentry's debug to false to streamline logs 2025-06-05 16:52:46 +03:00
572e6a7e9c Fixes: django_prometheus.cache.backends.redis.RedisCache 2025-06-05 16:35:53 +03:00
e800bbab15 Features: Prometheus addons 2025-06-05 16:02:32 +03:00
a2d38cbdfb Features: Prometheus added 2025-06-05 15:16:59 +03:00
d3e9775d54 Features: None;
Fixes: None;

Extra: 1) Bump version to 2.7.1 in pyproject.toml and settings/base.py.
2025-05-29 22:24:21 +03:00
a28ce41394 Features: ;
Fixes: 1) Update environment variable references for STATIC_URL and MEDIA_URL to use 'EVIBES_BASE_DOMAIN';

Extra: ;
2025-05-27 10:56:49 +03:00
afcf8c9bd2 Features: None;
Fixes: 1) Update environment variable names to use 'EVIBES_' prefix for consistency;

Extra: None;
2025-05-26 17:40:34 +03:00
d86a6ed3c8 RUFF 2025-05-26 16:12:59 +03:00
4991828b9b Features: 1) Updated user language field in vibes_auth to include more language options with a default set to 'en-gb';
Fixes: 1) Standardized field names in core models by renaming locale-specific fields to lowercase format for consistency (e.g., name_en_GB to name_en_gb);

Extra: Applied migrations to reflect these changes in vibes_auth and core apps for smoother db schema alignment.
2025-05-20 22:08:04 +03:00
110c2828ae Features: ;
Fixes: ;

Extra: 1) Remove unused `LocaleMiddleware` and replace with `CustomLocaleMiddleware`.
2025-05-20 21:42:04 +03:00
123459ede5 Features: 1) Add CustomLocaleMiddleware for language normalization and activation.
Fixes: None;

Extra: 1) Add CustomLocaleMiddleware to middleware stack in base settings; 2) Add missing import for LocaleMiddleware and translation module; 3) Refactor locale handling by extending LocaleMiddleware.
2025-05-20 21:39:07 +03:00
9d7efa310a Features: 1) None;
Fixes: 1) Remove unused `GrapheneLocaleMiddleware` and `CustomLocaleCommonMiddleware` from middleware stack; 2) Remove unused `get_language_from_header` import and related translation logic;

Extra: 1) Clean up settings and middleware files by removing redundant locale handling logic; 2) Minor formatting adjustments for consistency.
2025-05-20 21:06:20 +03:00
d001e238f8 2.7.0 2025-05-20 08:56:33 +03:00
0ab8738520 Features: 1) None;
Fixes: 1) None;

Extra: 1) Removed the entire "geo" module, including migrations, model definitions, admin configurations, utilities, documentation, templates, translations, and related files. Moved functionality to "core".
2025-05-20 08:00:44 +03:00
71e5f5dc32 Features: 1) Add DBBACKUP_CONNECTORS configuration with default settings;
Fixes: 1) Add missing noqa comment for import statement;

Extra: None;
2025-05-19 16:04:19 +03:00
564ce0706b Features: Full Geo rework.
Fixes: 1) Address redundant migration logic by dropping stale migrations; 2) Cleanup swapper-based dependencies in Geo models;

Extra: Streamlined database initialization by resetting all previous migrations.
2025-05-19 14:45:53 +03:00
190fb479be Features: 1) Enhance host validation in middleware to allow wildcard "*" in ALLOWED_HOSTS;
Fixes: 1) Correct .gitignore entries for static files to improve exclusion logic;

Extra: 1) Minor refactor in middleware for readability;
2025-05-14 03:38:39 +03:00
8375ef41db Features: 1) Add save method to enforce single pending order per user in Order model;
Fixes: 1) Adjust import order in `core/models.py` for better consistency;

Extra: Refactor formatting for better readability in `core/models.py`; Update `pyproject.toml` version to 2.6.2; Update compiled translation file `cs_CZ/LC_MESSAGES/django.mo`.
2025-05-13 23:02:16 +03:00
ba9e5080bc Features: 1) Add error handlers for Attribute, AttributeGroup, and AttributeValue DoesNotExist exceptions;
Fixes: 1) None;

Extra: None;
2025-05-13 05:55:49 +03:00
ea0d14bfc8 Features: 1) Add "Stock.DoesNotExist" and "ProductImage.DoesNotExist" to ignored exceptions in base settings;
Fixes: 1) Ensure auto_resolver_helper returns only the created or fetched instance by accessing tuple index [0];

Extra: None;
2025-05-13 03:15:15 +03:00
2e9659a562 Features: 1) Update project version to 2.6.1 in pyproject.toml and settings.
Fixes: none;

Extra: none;
2025-05-13 03:03:26 +03:00
2d67b69b42 Features: ;
Fixes: ;

Extra: 1) Update environment variable values to "development" and "production" for clarity;
2025-05-13 02:53:15 +03:00
4a97779139 Features: 1) Extend ignored errors in Sentry when DEBUG mode is enabled;
Fixes: None;

Extra: 1) Refactor ignored errors list to conditionally include additional exceptions in DEBUG mode;
2025-05-13 02:50:27 +03:00
37c0867ab7 Features: 1) Add support for defaults in get_or_create for auto_resolver_helper; 2) Modularize Sentry ignore_errors configuration with a dedicated variable;
Fixes: None;

Extra: 1) Minor code refactor to streamline `ignore_errors` handling in Sentry setup;
2025-05-13 02:48:56 +03:00
78db5e1f96 Features: ;
Fixes: ;

Extra: 1) Simplify ignore_errors list by consolidating NotFoundErrorHandler entries.
2025-05-13 02:21:07 +03:00
87c355474c Features: 1) Enable Elasticsearch DSL autosync and switch to CelerySignalProcessor; 2) Extract common logic into auto_resolver_helper for resolving brands and categories; 3) Add conditional CACHEOPS_ENABLED based on sys arguments;
Fixes: 1) Add missing sys import in caches.py; 2) Ensure CACHEOPS_REDIS is only declared when CACHEOPS_ENABLED is True;

Extra: 1) Formatting and cleanup for readability in settings and auto-resolve methods; 2) Rearrange cacheops import in base settings;
2025-05-13 02:09:10 +03:00
88a8c2e898 Features: 1) Activate translation based on request locale in CustomLocaleCommonMiddleware; 2) Activate translation within GrapheneJWTAuthorizationMiddleware;
Fixes: None;

Extra: None;
2025-05-12 10:16:31 +03:00
03eb6d03ca Features: 1) Replace hardcoded API version with dynamic EVIBES_VERSION; 2) Enhance Sentry SDK configuration to include Celery, OpenTelemetry, and Redis integration;
Fixes: 1) Correct file formatting for consistency in poetry.lock;

Extra: Perform general cleanup of file structure and hash formatting in poetry.lock for better readability;
2025-05-12 10:09:30 +03:00
ddeafdbd53 Features: 1) Replace CelerySignalProcessor with RealTimeSignalProcessor for Elasticsearch signal processing;
Fixes: None;

Extra: 1) Update indentation for improved readability; 2) Set ELASTICSEARCH_DSL_AUTOSYNC and ELASTICSEARCH_DSL_PARALLEL to False for configuration change;
2025-05-11 22:52:45 +03:00
82667216f2 Features: None;
Fixes: 1) Prevent error by adding user check when processing non-PENDING orders; 2) Remove redundant status assignment and save for CREATED orders; 3) Add missing error handler for POST requests in settings;

Extra: None;
2025-05-11 22:43:38 +03:00
60240d4cd9 Features:
1) Extend worker task time limits (soft: 10800 seconds, hard: 21600 seconds);

Fixes:
(none);

Extra:
1) Update `docker-compose.yml` to reflect new task time limits in Celery command;
2025-05-09 04:19:13 +03:00
0ed8a8d48e Remove unused serializer and update ignored error settings
The `BuyAsBusinessOrderSerializer` import was removed as it is no longer used. Additionally, new error types were added to the `ignore_errors` list in the base settings file to prevent unnecessary logging of expected exceptions.
2025-05-07 18:18:23 +03:00
d1cd8515b5 Set console production log level to WARNING.
Updated the log level from INFO to WARNING in the console production handler. This change aims to reduce log noise and surface only warnings and errors in production environments.
2025-05-07 04:57:18 +03:00
6e19d9f65f Add new dependencies and standardize file formatting
Added `paramiko`, `django-dbbackup`, `django-storages`, and `bcrypt` to the dependency list in `pyproject.toml`. Reformatted file entries in `poetry.lock` to ensure consistent alignment with style guidelines, improving readability and maintainability.
2025-05-07 03:10:50 +03:00
12ccd04943 Update API version to 2.6.0 and reformat migration files
Updated the API version from 2.5.0 to 2.6.0 in the DRF settings for consistency across configurations. Reformatted migration files for better readability, ensuring consistency in code style and improving maintainability. These changes do not alter functionality but enhance clarity and documentation.
2025-05-06 19:19:49 +03:00
131258517f Adjust Celery task time limits in configuration.
Increased `task_soft_time_limit` to 7200 seconds and `task_time_limit` to 10800 seconds in both `celery.py` and `docker-compose.yml`. This change allows longer-running tasks to complete without premature termination.
2025-05-06 16:39:21 +03:00
64a2fe7726 Increase Celery task time limits.
Updated `task_soft_time_limit` to 3600 seconds and `task_time_limit` to 7200 seconds in both `celery.py` and `docker-compose.yml`. This allows tasks to run longer before being terminated, ensuring support for extended processing requirements.
2025-05-06 14:58:39 +03:00
3f94933017 Add core.b2b_urls to B2B URL routing
Included the core.b2b_urls module in the main B2B URL patterns to organize and modularize URL configurations. This change enhances code maintainability and improves routing logic clarity.
2025-05-06 04:14:04 +03:00
5012727e84 Refactor DRF settings and fix schema configurations
Updated DRF settings with new TOS URL and version for consistency. Corrected API URLs in B2B schema and reorganized imports in core views for better readability. These changes ensure accurate references and maintain cleaner code structure.
2025-05-06 03:48:59 +03:00
76d490f2e2 Refactor translation command and improve order model.
Enhanced the `deepl_translate` management command with improved placeholder handling, error messages, and support for missing translations. Added `human_readable_id` and `is_business` attributes to the `Order` model, updating associated admin configurations to reflect these changes.
2025-05-06 03:28:06 +03:00
85a49c4e8b Add "DISABLED_COMMERCE" feature to disable buying functionality
Introduce a global config flag `DISABLED_COMMERCE` to toggle buy functionality availability. Raise specific `DisabledCommerceError` when buying is disabled, ensuring end-users are informed. Additionally, reformat code for readability and consistency, improving overall maintainability.
2025-05-05 17:32:57 +03:00
96c3fe23b0 Update promotion handling and logging levels
Change promotions to inactive instead of deleting them to maintain data integrity. Adjust Celery logging levels to be DEBUG/INFO based on the DEBUG setting, improving log granularity during development and clarity in production.
2025-05-05 17:16:57 +03:00
4bd037b828 Update middleware to validate hosts and conditionally log errors
Replaced hardcoded host checks with a dynamic check using `ALLOWED_HOSTS` from environment variables. Adjusted exception logging to include tracebacks only when the `DEBUG` environment variable is enabled.
2025-05-05 15:49:20 +03:00
04a89be549 Update Celery settings and worker configuration
Refactored Celery configurations to enhance task reliability, including changes to prefetch multiplier and timeout settings. Updated the worker command in `docker-compose.yml` to specify concurrency, memory limits, and task timeouts. Added a memory limit for the worker service to improve resource management.
2025-05-05 15:28:20 +03:00
3ec0991aa6 Add slug field to Product and update related functionalities
Introduce a unique, auto-generated slug field to the Product model, populated from category, brand, and name. Update core filters, serializers, sitemaps, and GraphQL object types to support the new slug functionality. Also, enforce HTTP-only cookies for session, CSRF, and language for improved security.
2025-04-30 16:31:54 +03:00
68febcdb08 Initial Commit 2025-04-29 22:40:30 +03:00