Commit graph

1064 commits

Author SHA1 Message Date
255c3f9328 Extra: 1) I18N for messaging 2025-11-12 12:12:28 +03:00
de0cb836fc Features: 1) Add rate-limiting decorators for multiple API methods across core viewsets; 2) Add translation support to messaging documentation.
Fixes: 1) Fix missing import for `send_message` moved to method scope in Telegram message handler; 2) Correct Swagger UI socket connection setting to `False`.

Extra: 1) Minor code cleanup and reformatting in viewsets and settings.
2025-11-12 11:50:51 +03:00
554769d48e Features: 1) Add detailed serializers for user messages, staff inbox, and thread consumers; 2) Update schema definitions to support new serializers with improved descriptions and summaries; 3) Introduce flexible event-based serializer for staff inbox actions.
Fixes: 1) Replace generic serializers with context-specific implementations in schema definitions.

Extra: 1) Minor code cleanup and reorganization for improved readability and maintainability; 2) Add comments for new serializers.
2025-11-12 11:37:34 +03:00
0464c1b11b Features: 1) Introduced Telegram forwarder with bot functionality for message forwarding and user support; 2) Added new commands (/start, /unlink, /help) for Telegram bot; 3) Enabled webhook integration and message linking via Telegram.
Fixes: 1) Replaced legacy `TELEGRAM_API_TOKEN` configuration with `TELEGRAM_TOKEN`; 2) Incorporated anti-spam checks for user messages to prevent abuse.

Extra: Refactored websocket consumers by integrating Telegram support and enhancing thread-assignment workflows; improved logging and API consistency; minor cleanup and deprecations.
2025-11-12 11:23:44 +03:00
73162635be Fixes: 1) Remove unused fields small_logo and big_logo from BrandDetailSerializer.
Extra: 1) Cleanup related unused methods `get_small_logo` and `get_big_logo`.
2025-11-12 10:25:56 +03:00
5a046fb628 Features: 1) Messaging submodule drafts 2025-11-11 23:31:06 +03:00
6109643acb Features: 1) Introduced ChatThread and ChatMessage models for messaging functionality; 2) Added ThreadStatus and SenderType choices for structured messaging states; 3) Integrated Django migrations with indexing for new models;
Fixes: 1) Corrected `admin.py` imports for consistency and model alignment;

Extra: Refactored `choices.py` for reusable enums; restructured `models.py` for clarity and maintainability.
2025-11-11 18:31:17 +03:00
52a62f0f6f Features: 1) Update POT creation date across all translation files; 2) Refresh translation references to correct serializer line numbers.
Fixes: None;

Extra: Update and clean up comments in translation files across locales.
2025-11-11 18:06:30 +03:00
bf03534f1b Features: 1) Add fallback to environment variable for BASE_DOMAIN in middleware redirects; 2) Introduce new "Taskboard" link to Jazzmin settings;
Fixes: 1) Correct import of BASE_DOMAIN in DRF settings;

Extra: 1) Adjust "GraphQL Docs" and "REST Docs" labels to remove translation; 2) Reorganize Jazzmin settings links for consistency.
2025-11-11 17:27:26 +03:00
da2403c3c5 Features: 1) Centralize use of BASE_DOMAIN to replace CONSTANCE_CONFIG in API URLs.
Fixes: 1) Add missing import for `BASE_DOMAIN` in `drf.py`.

Extra: 1) Minor cleanup by removing redundant imports in `jazzmin.py`.
2025-11-11 17:08:29 +03:00
73138c3911 Features: 1) Update "Storefront" and "GraphQL Docs" links to use BASE_DOMAIN and STOREFRONT_DOMAIN constants.
Fixes: 1) Add missing import for `BASE_DOMAIN` and `STOREFRONT_DOMAIN`.

Extra: 1) Remove unused `base_domain` field from `ConfigType`.
2025-11-11 16:24:24 +03:00
9d97ec3d76 Features: 1) Replace constance with django.conf.settings for dynamic config values; 2) Update UserSerializer to include avatar instead of avatar_url.
Fixes: 1) Remove unused `get_avatar_url` method in `UserSerializer`.

Extra: 1) Reorganize imports in serializers and middleware for clarity; 2) General code cleanup in `UserSerializer`.
2025-11-11 16:17:40 +03:00
ee25bb67f0 Features: 1) Introduced STOREFRONT_DOMAIN in settings as a replacement for FRONTEND_DOMAIN;
Fixes: 1) Updated email templates to use `STOREFRONT_DOMAIN` instead of `FRONTEND_DOMAIN`; 2) Added a missing import for `settings` in emailing utilities;

Extra: 1) Removed unused configuration keys `FRONTEND_DOMAIN` and `BASE_DOMAIN`; 2) Cleaned up obsolete imports and formatting in serializers; 3) Adjusted environment file generation scripts to use `STOREFRONT_DOMAIN`.
2025-11-11 16:12:48 +03:00
a6bceb66db Fixes: 1) Remove unused relation fields small_logo and big_logo from admin configuration;
Extra: 1) Clean up relation fields for clarity and maintainability;
2025-11-11 16:04:46 +03:00
a2665b593b Features: 1) Remove unused small_logo and big_logo fields from BrandProductDetailSerializer and BrandSimpleSerializer.
Fixes: 1) None.

Extra: 1) Cleanup unused methods and associated meta field definitions for logo handling in serializers.
2025-11-11 16:00:42 +03:00
5f9f07d8f4 Features: 1) Replace config.BASE_DOMAIN with settings.BASE_DOMAIN across the codebase; 2) Add support for dynamic STATIC_URL and MEDIA_URL based on initialization state; 3) Introduce INITIALIZED flag to determine application state;
Fixes: 1) Add missing import for `settings` in multiple modules;

Extra: 1) Remove unused `SerializerMethodField` from serializers; 2) Update `RELEASE_DATE` to align with new version; 3) General cleanup and consistency adjustments.
2025-11-11 15:08:44 +03:00
01ba06d52c Features: 1) Add image_url property to Category and ProductImage models for constructing absolute image URLs; 2) Replace direct image.url references with image_url across serializers and GraphQL resolvers;
Fixes: None;

Extra: 1) Simplify serializer methods by removing redundant `suppress` blocks for `image.url`; 2) Minor adjustments to GraphQL resolver parameter names for consistency.
2025-11-11 14:38:41 +03:00
71b0cdd818 Fixes: 1) Remove unused "categories" field from relation_fields in admin configuration;
Extra: Minor cleanup for better maintainability;
2025-11-10 17:06:17 +03:00
f4c9767585 Features: None;
Fixes: None;

Extra: I18N;
2025-11-10 15:57:15 +03:00
9f867f775f Features: 1) None;
Fixes: 1) None;

Extra: 1) Reformatted `nginx.conf` for improved readability by aligning indentation and spacing across all directives and blocks;
2025-11-10 13:07:24 +03:00
10434d8e2b Features: 1) Add new /static/ and /media/ location blocks for serving static and media files.
Fixes: 1) Normalize spacing and indentation throughout `nginx.conf`.

Extra: Improve readability and consistency of configuration file by aligning header and directive formatting.
2025-11-10 13:01:07 +03:00
cd2e6c31cf Features: 1) Add WHITENOISE_MANIFEST_STRICT setting with default value set to False;
Fixes: None;

Extra: None;
2025-11-10 12:04:27 +03:00
cd067ee5da Features: 1) Add static files configuration in nginx for cross-origin requests.
Fixes: 1) Update Console styling in 'initialize' command to remove non-standard style notice; 2) Simplify STATIC_URL and MEDIA_URL definitions in settings for uniformity.

Extra: 1) Minor cleanup in static and media path handling; 2) Add new location block in nginx for static files access.
2025-11-10 11:51:34 +03:00
dd2922e3e6 Features: 1) Add logging warning to update_currencies_to_euro for deprecation notice.
Fixes: 1) None.

Extra: 1) Remove deprecated payment gateway configuration settings; 2) Refactor `EXCHANGE_RATE_API_KEY` usage into `COMPANY_CONFIGURATION` group; 3) Add logging import to `currencies.py` module.
2025-11-10 11:37:40 +03:00
4f885f45a8 Features: 1) Rename URL path from vibes_auth to authv for consistency;
Fixes: None;

Extra: None;
2025-11-10 11:12:30 +03:00
3a0224cbc8 Features: None;
Fixes: None;

Extra: 1) Remove unused plugin reference `com.mallowigi` from `.idea/externalDependencies.xml`.
2025-11-10 08:53:05 +03:00
39e120e8c6 Features: 1) Add logging for saving vendor responses and processing attributes; 2) Update process_attribute to return AttributeValue upon success.
Fixes: 1) Replace missing return values with `None` in `process_attribute` for clarity; 2) Correct typo in debug log messaging.

Extra: 1) Update method definitions for readability; 2) Improve logging granularity and structure.
2025-11-10 08:44:36 +03:00
3fbe6883c7 2025.4 BETA 2025-11-10 08:36:57 +03:00
c09c0d8753 Features: 1) Update link name to "REST Docs".
Fixes: 1) Remove duplicate and unused "B2B REST Docs" link.

Extra: 1) Minor cleanup in navigation settings.
2025-11-08 06:07:31 +03:00
18e38d1665 Fixes: 1) Update task paths in CELERY_BEAT_SCHEDULE to use engine.core namespace;
Extra: None;
2025-11-08 06:05:11 +03:00
e0ac598bdd Fixes: 1) Correct invalid module paths in AUTH_PASSWORD_VALIDATORS. 2025-11-08 05:20:40 +03:00
dd499560ba Fixes: 1) Remove invalid db_table attribute from Meta class in authv.models.User.
Extra: 1) No functional changes; 2) Cleanup of redundant `db_table` declaration.
2025-11-08 05:07:14 +03:00
5e10f2eac7 Features: 1) Add db_table attribute for vibes_auth_user in authv.models; 2) Enhance DB backup configuration to support sftp and ftp storage in settings.
Fixes: 1) Add missing import for `ImproperlyConfigured` in `base.py`.

Extra: 1) Refactor and relocate DB backup configuration from `dbbackup.py` to `base.py`.
2025-11-08 05:06:58 +03:00
33362d8340 2025.4 PREVIEW 2025-11-08 04:38:09 +03:00
d9a0d74759 Features: 1) Add support for including es_rank in ordering when _es_rank_applied is set;
Fixes: 1) Adjust ordering logic to handle scenarios with `_es_rank_applied`;

Extra: None;
2025-11-05 11:27:36 +03:00
d40f6036da Features:;
Fixes: 1) Correct type and structure for `uuids_by_index` dictionary values; 2) Remove unnecessary dictionary wrapping for UUID values in `uuids_by_index`;

Extra: Simplify UUID appending logic for `meta.index` values.
2025-11-05 10:30:44 +03:00
5ae69b5d05 Features: 1) Add module and line number to logging format; 2) Introduce configurable log level based on DEBUG flag for all loggers; 3) Add specific loggers for evibes, blog, core, payments, and vibes_auth modules;
Fixes: 1) Adjust log level declarations for better consistency across handlers;

Extra: 1) Minor formatting improvements in logging configuration for clarity;
2025-11-05 10:18:47 +03:00
a7af054631 Features: 1) Enhance all logger calls to include exc_info for improved error tracing.
Fixes: 1) Correct format strings in `logger` calls to avoid using f-strings and replace with comma-delimited logging arguments; 2) Remove unused imports including `traceback` and `gettext_lazy`.

Extra: Consolidate logging practices across multiple modules for better consistency and maintainability.
2025-11-04 15:41:07 +03:00
5058fb1c18 Features: 1) Replace celery.utils.log.get_task_logger with standard logging.getLogger for uniform logger usage.
Fixes: 1) Remove unused imports in `vendors.py`, `tasks.py`, and `emailing.py`.

Extra: 1) Minor cleanup of redundant functions and variables in `vendors.py`; 2) Reorganize imports for clarity and consistency.
2025-11-04 15:09:38 +03:00
e5714519bb Fixes: 1) Remove unused import for EVIBES_VERSION; 2) Correct LOGGING version key to use a static value of 1;
Extra: None;
2025-11-04 14:48:45 +03:00
0dcee7fefe Features: None;
Fixes: 1) Standardize string quotes in migration file; 2) Fix redundant parentheses in Elasticsearch query execution;

Extra: Format cleanup and minor readability improvements.
2025-11-04 14:41:01 +03:00
9898212855 Features: 1) Introduced LoggingError exception for invalid log level handling in log method; 2) Updated logging framework to dynamically initialize loggers using __name__ instead of hardcoded "django".
Fixes: 1) Fixed missing `exc_info` flag in critical and error logs to provide richer error context; 2) Addressed redundant code and unused imports in the logging logic for cleaner execution.

Extra: Refactored `LOGGING` configuration for improved readability and runtime adaptability; optimized related log-handling logic throughout the codebase.
2025-11-04 14:40:50 +03:00
38b22704b1 Features: 1) Enhance product filter to support Elasticsearch ranking with preserved order; 2) Add personal_orders_only field to ProductDocument; 3) Introduce "name_exact" analyzer for case-insensitive exact matching in Elasticsearch;
Fixes: 1) Fix Elasticsearch document mapping to include missing "ci" field; 2) Correct slug field index setting from index=False to indexed; 3) Update Elasticsearch search weights and sizes for improved relevance and pagination;

Extra: 1) Refactor product search logic to prioritize partnumber > sku > slug > name.ci; 2) Add new analyzer "name_exact" for case-insensitive exact matching; 3) Adjust stock model to allow blank system_attributes; 4) Update migration to reflect JSONField changes; 5) Adjust Elasticsearch boosting weights for better ranking; 6) Increase category search size to 33 for consistency; 7) Add missing personal_orders_only field to ProductDocument.
2025-11-02 03:09:16 +03:00
0cec8b0380 Features: 1) Replace DigitalAssetDownload creation logic with get_or_create.
Fixes: 1) Remove unnecessary conditional check for DigitalAssetDownload existence.

Extra: 1) Simplify flow for processing order products with digital assets.
2025-10-29 12:43:12 +03:00
0dc3daaa4f Features: 1) Add fallback for missing jq in image verification; 2) Enhance verbosity control for management commands in run.sh; 3) Update generate-environment-file.sh to use consistent variable names and handle CORS origins dynamically.
Fixes: 1) Correct `.env` export script to handle sorted variables without associative arrays; 2) Fix incomplete `.env` output in `generate-environment-file.sh`.

Extra: 1) Improve code readability and maintainability across shell scripts; 2) Standardize echo statements and reduce excessive formatting.
2025-10-28 15:31:26 +03:00
9412b0dd7a Features: 1) Enforce currency validation when resolving price with no provided currency; 2) Update async logger initialization to use "vendors" scope;
Fixes: 1) Correct typo in error message “probider” to “provider”;

Extra: 1) Remove redundant initialization log during vendor setup; 2) Minor code cleanup in `resolve_price_with_currency` method.
2025-10-27 01:17:29 +03:00
6d4d651320 Features: 1) Add logging on initialization for vendor instances; 2) Introduce safe parameter to get_vendor_instance method to handle inactive or nonexistent vendors gracefully;
Fixes: 1) Modify `__str__` method to use `get_vendor_instance` with `safe=True` for improved error handling;

Extra: 1) Minor code structure improvements in `get_vendor_instance` method.
2025-10-27 01:03:17 +03:00
0c990291a4 Features: 1) Add currency handling logic in resolve_price_with_currency method to ensure correct conversion when the currency matches the provider or default currency;
Fixes: 1) None;

Extra: 1) None;
2025-10-26 22:37:38 +03:00
b4292fde53 Features: 1) Add JSONField system_attributes to stock model with default as an empty dictionary; 2) Extend sitemaps for Category and Brand to include slug in queried fields;
Fixes: None;

Extra: 1) Standardize quotes in migration dependencies and field declarations; 2) Break down queryset methods in sitemaps for improved readability;
2025-10-26 22:34:01 +03:00
0cd2e417cb Features: 1) Add form attribute to StockInline class to use StockForm.
Fixes: None;

Extra: None;
2025-10-26 20:09:05 +03:00