Commit graph

655 commits

Author SHA1 Message Date
a1db34d1c9 Features: 1) Rename 'avatar' argument to 'file' in UploadAvatar mutation for clarity;
Fixes: None;

Extra: None;
2025-07-09 02:52:59 +03:00
f10e5f96eb Features: 1) Add filter to exclude products with null stocks and inactive vendors in sitemaps query;
Fixes: None;

Extra: None;
2025-07-09 02:30:57 +03:00
b6983b63a3 Features: 1) Enhance queryset filtering in get_queryset to include additional active checks for brand, category, stocks, and vendor; 2) Add caching and header variation for sitemap_index and sitemap_detail views; 3) Update sitemap limit settings for Category and Brand sitemaps to adjust capacity;
Fixes: 1) Replace usage of `slugify` with direct access to `obj.slug` in sitemap location methods;

Extra: 1) Remove unused `slugify` import from `core/sitemaps.py`.
2025-07-09 02:30:26 +03:00
89301d6432 Features: 1) Add support for processing chosen_products in order creation and update mutations; 2) Introduce new field chosen_products to serializers and GraphQL inputs; 3) Enhance order model to allow bulk addition of products with quantity updates;
Fixes: 1) Correct avatar resolution in `resolve_avatar` method for cases where `url` or `name` attributes are missing; 2) Refresh user object from the database after avatar update to avoid stale data;

Extra: 1) Rename `BulkActionOrderProductInput` to `BulkProductInput` for consistency; 2) Minor code refactorings and adjustments for clarity.
2025-07-08 21:02:54 +03:00
171f2cb20f Features: 1) Add update_order_products_statuses method for bulk updating product statuses; 2) Wrap order creation logic in atomic transaction to ensure integrity.
Fixes: 1) Add missing `transaction` import in `core/models.py`.

Extra: 1) Refactor order product status updates to use the new method; 2) Enhance readability and maintainability of order processing logic.
2025-07-08 16:32:01 +03:00
c2fd267374 Features: 1) Optimize loop filtering for digital products in order processing;
Fixes: 1) None;

Extra: 1) Minor readability improvement via simplified query logic;
2025-07-08 16:14:35 +03:00
007331fcc1 Features: 1) Integrate OrderProductSimpleSerializer to log detailed order product information during order status changes;
Fixes: None;

Extra: 1) Extend debug logging in order status change processing to include serialized order products.
2025-07-08 16:11:45 +03:00
014c9620c6 Features: 1) Add debug logging for order processing changes;
Fixes:;

Extra:;
2025-07-08 15:54:23 +03:00
3b67f5cabc Features: 1) Add "notifications" and "attributes" fields to admin's general_fields;
Fixes: None;

Extra: None;
2025-07-08 15:19:12 +03:00
a4e4e3cd40 Features: 1) Add get_queryset method to BrandViewSet for conditional prefetching of categories.
Fixes: 1) Add missing import for `Prefetch` in `core/viewsets.py`.

Extra: n/a.
2025-07-08 15:11:38 +03:00
1563016af0 Features: 1) Add debug log for attempting to buy order product;
Fixes: None;

Extra: None;
2025-07-08 15:01:16 +03:00
3427c6ad22 Features: 1) Add validation for empty attributes in Order model; 2) Introduce final_amount retrieval for streamlined promocode application.
Fixes: 1) Update `logger.debug` call to improve readability; 2) Correct `promocode` key to `promocode_uuid` in order attributes dictionary to ensure consistent naming.

Extra: 1) Minor cleanup and code comments in `Order` processing logic.
2025-07-08 14:56:38 +03:00
aa643f6773 Features: 1) Initialize order.attributes as an empty dictionary if undefined;
Fixes: 1) Prevent potential errors when accessing `order.attributes` without initialization;

Extra: None;
2025-07-07 19:49:44 +03:00
def55e9221 Features: None;
Fixes: 1) Change `UUID` to `String` for various GraphQL arguments; 2) Correct type annotation for `chosen_products` in `core/models.py`;

Extra: None;
2025-07-07 19:43:06 +03:00
8eae18f099 Fixes: 1) Correct conditional check for error types in middleware logging.
Extra: Refactor exception handling for improved clarity and robustness.
2025-07-07 19:14:31 +03:00
a562591900 Features: 1) Introduced distinct warning and error logging for specific exceptions in GraphQL middleware; 2) Added new exception types for enhanced validation handling.
Fixes: 1) Corrected indentation inconsistency in delete_never_ordered_products command; 2) Fixed improper formatting of log handler configurations.

Extra: Adjusted logging to conform to best practices; amended middleware exception handling logic to improve code readability.
2025-07-07 19:12:43 +03:00
4ef06dd971 Features: 1) Add logging configuration for Gunicorn access and error logs;
Fixes: None;

Extra: None;
2025-07-07 18:30:52 +03:00
d8d4c07e80 Fixes: 1) Add missing Any import to typing. 2025-07-06 23:53:58 +03:00
1ace97c233 Features: 1) Add support for optional billing_address_uuid and shipping_address_uuid in apply_addresses; 2) Introduce chosen_products parameter in the buy method for customized order creation;
Fixes: 1) Correct type annotations in `buy` and `bulk_add_products` methods for improved type safety;

Extra: 1) Refactor `buy` method for enhanced readability and maintainability; 2) Update usage of `self` to `order` for clarity in dynamic order creation scenarios.
2025-07-06 23:53:46 +03:00
34f25052e0 Features: 1) Update type annotations in resolver methods for clarity and type safety;
Fixes: 1) Ensure accurate return types in resolver methods to avoid potential runtime issues;

Extra: 1) Minor code consistency improvements in `object_types.py`;
2025-07-06 23:34:43 +03:00
07aadb5d83 Features: 1) Add type hinting to resolver methods in Order; 2) Improve resolve_payments_transactions to handle QuerySet access.
Fixes: 1) Add missing `QuerySet` import in `graphene/object_types.py`.

Extra: 1) Minor refactoring for clarity in resolver method definitions.
2025-07-06 23:34:16 +03:00
ea236743ae Features: 1) Switch transaction signal from pre_save to post_save for processing changes; 2) Add created parameter handling for improved transaction processing logic;
Fixes: 1) Remove unused `pre_save` signal import;

Extra: 1) Update conditional logic for `process_transaction_changes` to improve clarity and error handling; 2) Minor formatting adjustments.
2025-07-06 23:30:06 +03:00
220e50c01b Features: 1) Restructure transaction processing to handle unsaved instances using pk check; 2) Instantiate AbstractGateway to prevent potential shared reference issues;
Fixes: 1) Correct logic to properly detect new transactions for processing;

Extra: 1) Minor code tidy-up with consistent case handling;
2025-07-06 23:17:23 +03:00
4ed76b85de Features: 1) Add pre_save signal handling for Transaction model; 2) Enhance error status handling within process_transaction_changes.
Fixes: 1) Correct type conversion for process status to a string for consistency.

Extra: 1) Adjust signal usage from post_save to pre_save for improved transaction handling.
2025-07-06 19:21:15 +03:00
8ed5bc4c17 Features: 1) Add "modified" and "created" fields to TransactionAdmin list display;
Fixes: 1) Rearrange order of fields in list display to improve clarity;

Extra: 1) No additional changes.
2025-07-06 17:53:58 +03:00
0915cfd610 Features: 1) Add require_debug_false and require_debug_true filters to log configuration;
Fixes: None;

Extra: None;
2025-07-06 17:27:15 +03:00
af127045ae Features: None;
Fixes: 1) Update logging configuration to align all logger instances to use "django" instead of "evibes"; 2) Remove unused logging configuration for "django.request";

Extra: 1) Add detailed error logging in GraphQL execution to include exception messages.
2025-07-06 17:22:14 +03:00
bb82f10cd6 Features: 1) Add mail_admins logging handler for error notifications; 2) Introduce django.server logger configuration with INFO level;
Fixes: 1) Streamline logger handlers by replacing specific debug/production configuration with unified `console` handler; 2) Update template logger level to ERROR in production settings;

Extra: Removed unused `console_debug` and `console_production` handlers for cleaner configuration;
2025-07-06 17:18:53 +03:00
5522e494c4 Fixes: 1) Correct import path for DEBUG, EVIBES_VERSION, and SECRET_KEY in drf.py;
Extra: N/A;
2025-07-06 17:06:56 +03:00
adfffee0a3 Features: 1) Update all log handlers to dynamically switch based on DEBUG setting; 2) Introduce improved middleware logging configuration.
Fixes: 1) Remove unnecessary wildcard imports in settings files; 2) Add missing imports for `getenv`, `DEBUG`, and other constants; 3) Fix logger usage in middleware to align with `django.request`.

Extra: 1) Refactor settings files for readability and consistency; 2) Remove outdated `noqa` comments; 3) Minor formatting adjustments.
2025-07-06 16:58:43 +03:00
41dd02147c Fixes: 1) Ensure Wishlist object query includes user constraint to prevent unauthorized access;
Extra: None;
2025-07-06 16:25:28 +03:00
d3dd23d99f Features: 1) Add chunk size argument for deleting never ordered products;
Fixes: 1) Improve error handling with detailed exception logging during deletion;

Extra: 1) Replace hardcoded chunk size with a dynamic option; 2) Enhance log output for better debugging.
2025-07-05 02:47:35 +03:00
db0d64bfd2 Features: 1) Add exception handling to product deletion process in delete_never_ordered_products command;
Fixes: 1) Ensure command continues execution if an error occurs in batch deletion;
Extra: 1) Minor formatting adjustment by removing an unnecessary blank line.
2025-07-05 02:44:27 +03:00
8f5fd2582c Features: 1) Add deletion of related AttributeValue and ProductImage records when deleting never ordered products.
Fixes: None;

Extra: Remove redundant blank line for cleanup.
2025-07-05 01:48:58 +03:00
bf1668b35b Features: 1) Add BulkWishlistAction mutation to perform batch actions on wishlist products; 2) Add FeedbackProductAction mutation to manage feedback for order products.
Fixes: None;

Extra: Update locale files to `EVIBES 2.9.2`; add missing imports to `mutations.py`.
2025-07-05 00:55:27 +03:00
da4b4f6d68 Fixes: 1) Remove unused sysctl configuration for tcp_keepalive_time in Redis service;
Extra: Cleanup `docker-compose.yml` by simplifying Redis health check setup.
2025-07-04 13:00:40 +03:00
42657209f8 Fixes: 1) Remove unused Celery health check dependency.
Extra: Simplify health check configuration by cleaning up unused import.
2025-07-04 07:12:41 +03:00
9b8b54d53b Features: 1) Add configuration for Celery health check timeouts (HEALTHCHECK_CELERY_RESULT_TIMEOUT and HEALTHCHECK_CELERY_QUEUE_TIMEOUT);
Fixes: None;

Extra: None;
2025-07-04 07:07:34 +03:00
d73215ca3a Features: 1) Add REDIS_URL configuration with dynamic password support;
Fixes: 1) None;

Extra: 1) None;
2025-07-04 07:00:13 +03:00
fbfc432dfd Features: 1) Add additional health check integrations for Celery, Celery Ping, Redis, and Mail in evibes/settings/base.py;
Fixes: None;

Extra: None;
2025-07-04 06:50:06 +03:00
602a59bd84 Features: 1) Add exit condition checks for $LASTEXITCODE in various PowerShell scripts to ensure graceful error handling; 2) Enhance schema filtering with additional condition for active vendors in graphene/schema.py;
Fixes: 1) Remove unused imports in `celery.py`;

Extra: Refactor formatting and improve code readability in PowerShell scripts.
2025-07-04 03:00:51 +03:00
2eede833ef Features: 1) Update POT-Creation-Date for multiple locale files; 2) Adjust message references in blog models translations; 3) Update email template line references in payments app;
Fixes: 1) Correct offsets for translations in payments admin and models;

Extra: Align translation files across multiple languages.
2025-07-03 18:38:15 +03:00
118882ac1b Features: 1) Add new make-messages.ps1 and compile-messages.ps1 scripts for Windows localization workflow; 2) Update Docker ENTRYPOINT scripts to use bash for app, worker, stock_updater, and beat containers; 3) Bump project version to 2.9.1 in pyproject.toml and settings;
Fixes: 1) Ensure `install.ps1` handles non-zero exit codes gracefully; 2) Remove redundant `vm.overcommit_memory` Docker sysctl setting; 3) Add explicit exit command to `starter.ps1` for clean terminations;

Extra: Minor formatting and consistency improvements across ENTRYPOINT scripts;
2025-07-03 18:33:37 +03:00
f37206ed4e Features: 1) Add Redis sysctl configurations to docker-compose.yml; 2) Introduce broker heartbeat and transport options for Celery in settings/celery.py.
Fixes: 1) Extract and centralize broker transport options in `settings/celery.py`; 2) Remove redundant Celery settings from `celery.py`.

Extra: 1) Cleanup and streamline Celery configuration in `celery.py`.
2025-07-03 17:14:22 +03:00
29005527bb Features: 1) RUFFVCKED 2025-07-03 15:00:18 +03:00
aa8f15d0ee Features: 1) RUFFVCKED 2025-07-03 02:53:01 +03:00
d17839abed Features: 1) Implement safeguard to trim resolving_name exceeding 255 characters; 2) Introduce character limit enforcement for key within Attribute creation;
Fixes: 1) None;

Extra: Refactor handling of oversized strings to improve robustness and avoid potential errors;
2025-07-02 17:28:05 +03:00
81675fc55f Features: 1) Add service_healthy condition for database in docker-compose.yml dependencies; 2) Add payments_transactions field to OrderType GraphQL schema.
Fixes: 1) Add missing imports for `TransactionType` and `Transaction` in `graphene.object_types.py`.

Extra: 1) Update `docker-compose.yml` and GraphQL schema for improved service health checks and payment transaction resolution.
2025-07-02 16:52:59 +03:00
f4d5bf1543 Fixes: 1) Correct typo in variable name uidb64 to uidb_64 in vibes_auth/viewsets.py. 2025-07-02 15:48:59 +03:00
2094b22586 Features: 1) Add support for optional **kwargs in ActivationActionsMixin methods.
Fixes: None.

Extra: 1) Minor updates to method signatures for enhanced flexibility.
2025-07-02 15:38:05 +03:00