Commit graph

994 commits

Author SHA1 Message Date
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
d2b3dccda9 Features: 1) Add system_attributes JSONField to Stock model; 2) Introduce StockForm with system_attributes widget; 3) Integrate StockForm into StockAdmin in Django admin panel.
Fixes: None;

Extra: 1) Update migrations to include addition of `system_attributes`; 2) Modify admin interface to display `system_attributes` in additional_fields.
2025-10-26 19:59:43 +03:00
753a2059d4 Features: 1) Add discount_price field to ProductDetailSerializer, PromotionDetailSerializer, and Product GraphQL type; 2) Introduce promos and discount_price properties in the Product model;
Fixes: None;

Extra: 1) Update field inclusion lists and methods in serializers to reflect the new `discount_price` field; 2) Add model property caching for `discount_price`;
2025-10-26 19:51:41 +03:00
75cc74e592 Features: n/a;
Fixes: n/a;

Extra: 1) Update locale files for Portuguese and French translations; 2) Correct PO creation date for alignment with new translations; 3) Translated strings for transaction view operations (list and retrieve).
2025-10-26 19:27:12 +03:00
c0fcde4bb4 Features: 1) Introduced extend_schema for multiple viewsets to improve OpenAPI documentation; 2) Added detailed schema definitions for blog and payments viewsets using drf-spectacular; 3) Transitioned download_digital_asset functionality to class-based DownloadDigitalAssetView for better modularity.
Fixes: 1) Standardized error responses in `DownloadDigitalAssetView`.

Extra: Improved maintainability by refactoring serializers and schema definitions into modular components; updated API URLs to use new class-based view.
2025-10-26 18:44:19 +03:00
c9fd4b4f98 Features: 1) Remove categories field from attribute model via migration;
Fixes: 1) Ensure database schema aligns with updated model definitions;

Extra: 1) Auto-generated migration script for database changes.
2025-10-26 17:11:07 +03:00
95a0958292 Features: 1) Enforce LF line endings for .sh files using .gitattributes; 2) Add filtering of attributes and products based on active status in querysets.
Fixes: none;

Extra: none;
2025-10-26 16:56:34 +03:00
8d2ce5b013 Features: None;
Fixes: None;

Extra: 1) Remove unnecessary blank line in `CategoryDetailListSerializer`; 2) Simplify queryset methods in `core/admin.py` by restructuring `.select_related` calls;
2025-10-26 16:40:34 +03:00
bccf67970f Fixes: 1) Remove prefetch_related for "attributes" in queryset to fix redundant data loading;
Extra: None;
2025-10-26 16:38:53 +03:00
b8f68cf1bd Fixes: 1) Remove unused categories field from autocomplete_fields;
Extra: 1) Minor cleanup to simplify field declaration;
2025-10-26 16:28:56 +03:00
2114c8bb76 Features: 1) Add bulk_prefetch_filterable_attributes for optimized attribute fetching; 2) Introduce FilterableAttribute typing for standardizing attribute data across serializers and models; 3) Enhance CategoryDetailSerializer with custom list_serializer_class for bulk operations.
Fixes: 1) Replace redundant `get_filterable_attributes` logic with `filterable_attributes` property to avoid duplications; 2) Remove unnecessary imports and redundant comments in various modules.

Extra: Refactor admin queryset methods for optimization; remove unused `categories` field in `Attribute` model; improve clarity and maintainability of Graphene resolvers and related logic.
2025-10-26 16:21:34 +03:00
fa46e3ad9c Features: 1) Introduced refined formatting for translation files across multiple locales to ensure unified structure and readability; 2) Added a new translatable string under payments/admin.py for enhanced application functionality.
Fixes: 1) Addressed line-break inconsistencies in multi-line strings across various language files to ensure proper display; 2) Fixed minor spacing in `django.po` entries for Italian, Swedish, and Turkish locales.

Extra: Optimized file headers and metadata in all updated locale files by syncing timestamps and project information for uniform tracking.
2025-10-25 20:54:51 +03:00
b815d70d54 Features: 1) Migrate from gunicorn to uvicorn. 2) Add skeleton for chat functionality;
Fixes: None;
Extra: Add missing translations;
2025-10-25 19:36:34 +03:00
9086834a6b Features: 1) Add dependencies for channels, channels-redis, and django-channels to support asynchronous communication and redis integration; 2) Include uvicorn to enable ASGI server compatibility; 3) Upgrade pip dependency to version >=25.3 for enhanced package management;
Fixes: 1) Correct dependency order in `pyproject.toml`;

Extra: Ensure dependency hashes and metadata in `uv.lock` are updated to match added packages.
2025-10-25 16:17:26 +03:00
bb4dc9355c Fixes: 1) Remove redundant comments for await_services calls in Docker entrypoint scripts for app, stock-updater, worker, and beat.
Extra: Streamline entrypoints by eliminating unnecessary comments and simplifying script logic.
2025-10-25 16:06:02 +03:00
d07e724934 Features: 1) Add LogLevel Enum to standardize logging levels; 2) Introduce generalized logging utility in VendorManager with Celery runtime context support; 3) Add support for attribute group warnings using the new logging method;
Fixes: 1) Ensure logging conditions are guarded by proper vendor and attribute checks; 2) Correct `__str__` method fallback logic for `VendorManager`;

Extra: 1) Update dependencies including `docutils` to 0.21.2, `psutil` to 7.1.2, and `pip` to >=25.3; 2) Clean up `pyproject.toml` and `uv.lock` with refined version specifications and added new entries; 3) Refactor import statements and remove redundant code; 4) Upgrade Python version to 3.13 in config.
2025-10-25 15:51:25 +03:00
7a3151e2a1 Features: 1) Add profiles: ["monitoring"] to multiple exporters in docker-compose.yml; 2) Include health check dependency for database service in docker-compose.yml.
Fixes: n/a;

Extra: n/a;
2025-10-25 02:49:39 +03:00
ae1d16edda Features: Move from poetry to uv.
Fixes: Removed naive datetime warning

Extra: Correct import in elasticsearch submodule.
2025-10-25 02:18:41 +03:00
ec8c1039f3 Features: 1) Add setter method for can_be_used property in payments model;
Fixes: None;

Extra: None;
2025-10-22 11:23:45 +03:00
3fe3d571bb Features: 1) Add GatewayManager and GatewayQuerySet to handle advanced gateway filtering and usage checks; 2) Integrate GatewayManager with Gateway model for automatic query filtering; 3) Introduce can_be_used query annotation for gateway availability.
Fixes: 1) Default to a usable `Gateway` when processing new transactions if none is specified.

Extra: 1) Add missing import for `GatewayManager` in `payments.models`; 2) Refactor gateway availability logic into the manager and query set for cleaner code organization.
2025-10-22 11:12:30 +03:00
33fbbc049a Features: 1) Register Gateway model in the admin interface;
Fixes: 1) Add missing `Gateway` import to `payments/admin.py`;

Extra: 1) No extra changes made;
2025-10-21 12:58:55 +03:00