Commit graph

822 commits

Author SHA1 Message Date
9ec78c3360 Features: 1) Replace dictionary in CONSTANCE_CONFIG with a list for better structure; 2) Switch to gettext_noop for CONSTANCE_CONFIG_FIELDSETS keys instead of _;
Fixes: 1) Remove commented-out Redis backend reference in `CONSTANCE_BACKEND` declaration;

Extra: Simplify and improve readability of code with updated formatting and minor comment adjustments.
2025-07-16 19:33:15 +03:00
1ec8acdf4f Features: 1) Add CONSTANCE_SUPERUSER_ONLY setting allowing non-superusers access to Constance configuration;
Fixes:;

Extra:;
2025-07-16 19:29:06 +03:00
515beef39d Features: 1) Introduce OrderedDict for CONSTANCE_CONFIG for predictable key order; 2) Add CONSTANCE_CONFIG_FIELDSETS for better organization of configuration fields;
Fixes: 1) None;

Extra: 1) Refactor `CONSTANCE_CONFIG` definition for improved readability and structure;
2025-07-16 19:28:00 +03:00
bcaa209fa7 Features: 1) Ensure attributes field is initialized as a dictionary if not already set; 2) Add logic to mark system_email_sent in attributes when order is finished;
Fixes: 1) Remove redundant logic for `attributes` handling in `emailing.py`;

Extra: 1) Minor refactor in `process_order_changes` for better attribute management.
2025-07-16 19:02:33 +03:00
ec1a63afd8 Features: 1) Add tracking of buy_time when order status is set to payment; 2) Add buy_time field to admin general fields;
Fixes: None;

Extra: None;
2025-07-16 17:25:35 +03:00
0a2b4b65a0 Features: 1) Prevent duplicate "order finished" emails with added check on system_email_sent attribute; 2) Automatically update system_email_sent attribute after sending order email;
Fixes: 1) Remove unused `_` import in `drf.py`; 2) Trim redundant newline in `apply_addresses` method;

Extra: 1) Fix minor formatting in `deepl_translate.py` command; 2) Simplify `SPECTACULAR_PLATFORM_DESCRIPTION` string handling; 3) Minor refactoring and cleanup in email utility and related logic.
2025-07-16 14:54:33 +03:00
e9d17eddab Features: 1) N/A;
Fixes: 1) Remove obsolete API documentation and translations from locale files;

Extra: Cleared out unused gettext entries, improving locale management.
2025-07-14 18:05:45 +03:00
c149adb0a8 Features: 1) Add detailed translation logic in deepl_translate command with placeholder mapping and DeepL API integration; 2) Enhance deepl_translate with better PO handling and dynamic saving.
Fixes: 1) Correct incorrect type annotations and imports for `readline` in `deepl_translate` command; 2) Remove unused variables `billing_address` and `shipping_address` in address application logic.

Extra: Add `# type: ignore` comments to suppress type-checking errors across admin classes.
2025-07-14 17:12:26 +03:00
e49c942a1b Features: 1) Add detailed in-line comments with type ignore for improved debugging and maintainability; 2) Update I18N strings and translation placeholders across locales; 3) Introduce "address set" as a translatable object;
Fixes: 1) Resolve malformed phone number error message format; 2) Fix minor grammatical issues in message strings; 3) Align POT-Creation-Date metadata in locale files;

Extra: Enhance formatting consistency in documentation and translations; Remove obsolete translation strings.
2025-07-14 16:22:19 +03:00
210d569536 Features: 1) Add actions on top and bottom in ActivationActionsMixin; 2) Define permissions for activate and deactivate actions.
Fixes: None;

Extra: Refactor actions list in `ActivationActionsMixin` for better structure and readability;
2025-07-14 10:53:04 +03:00
eb7cc9847a Features: 1) Add default Address.objects.none() placeholders in apply_addresses method; 2) Validate address application only when billing or shipping address exists;
Fixes: 1) Correct logic for optional address validation to avoid runtime errors;

Extra: 1) Change documentation settings format from "Google" to "Plain".
2025-07-14 10:26:17 +03:00
eb213c7f3f Features: 1) Add interfaces with relay.Node to Address Meta class;
Fixes: None;

Extra: None;
2025-07-12 19:04:00 +03:00
09366213b6 Features: 1) Introduced AddressFilter and AddressType to enable filtering and querying addresses via GraphQL; 2) Added resolve_addresses method with permission check in GraphQL schema; 3) Updated DRF settings to improve API documentation structure.
Fixes: 1) Corrected `apply_addresses` logic to handle address validation more robustly; 2) Fixed incorrect imports and annotations for better type safety; 3) Resolved typos and clarified docstrings for various views and methods.

Extra: Adjusted formatting, added `# type: ignore` for stricter type checks, and removed unused `dist/` directory from `.dockerignore`.
2025-07-12 18:49:25 +03:00
661f9f2fe6 Features: 1) Add additional filters to promocodes query, including used_on__isnull and start_time__lte.
Fixes: None;

Extra: 1) Adjust query formatting for improved readability.
2025-07-09 17:04:14 +03:00
68db25e022 Features: 1) Add initialization for filter_kwargs in delete_inactives method;
Fixes: 1) Streamline queryset filtering in `delete_inactives` by removing redundant line breaks;

Extra: 1) Minor formatting cleanup for improved code readability;
2025-07-09 16:58:31 +03:00
95cd868ebd Features: 1) Add support for batched deletion of inactive products in delete_inactives with configurable batch size; 2) Include ProductImage in imports for cleanup operations;
Fixes: 1) Ensure `delete_inactives` handles deletions safely by using query batching; 2) Correct filter logic in `delete_inactives` for inactivation methods;

Extra: Refactor `delete_inactives` logic for better maintainability and clearer error handling;
2025-07-09 03:58:05 +03:00
4160e29455 Features: 1) Add management command to delete products by description in batches;
Fixes: 1) Correct indentation in multiple locations across `viewsets.py` for better readability; 2) Resolve inconsistent logging formatting in `signals.py`;

Extra: 1) Minor formatting adjustments in `views.py` and `signals.py`; 2) Clean up trailing blank lines across files.
2025-07-09 03:13:38 +03:00
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