Commit graph

411 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
7722eef0a3 Features: 1) Added custom queues to all Celery tasks for more granular processing; 2) Implemented sensitive data scrubbing in Sentry error reporting.
Fixes: None;

Extra: Refactored Sentry initialization to include `before_send` callback and improved settings structure.
2025-07-02 15:36:52 +03:00
369b4adfc0 Features: 1) Display tags' names in the admin list view;
Fixes: ;

Extra: ;
2025-07-01 20:32:06 +03:00
61eb5d3f6b Features: 1) Add brand__slug and category__slug to the admin display fields;
Fixes: None;

Extra: None;
2025-07-01 20:31:30 +03:00
ce53eec560 Features: 1) Remove AutocompleteFieldListFilter and related admin filters and templates; 2) Remove associated JavaScript, CSS, and Python logic; 3) Simplify admin configurations by dropping unused autocomplete filters;
Fixes: None;

Extra: 1) Cleanup unused imports and redundant UI files; 2) Minor adjustments to filter handling in `core/admin.py`.
2025-07-01 20:20:50 +03:00
8a07fc69b1 Features: 1) Add AutocompleteFieldListFilter for streamlined admin autocomplete functionality; 2) Provide new template admin/autocomplete_filter.html for enhanced UI display; 3) Introduce optimized Select2-based filtering in autocomplete_filter.js.
Fixes: 1) Replace deprecated `RelatedAutocompleteFilter` with `AutocompleteFieldListFilter`; 2) Fix validation and handling of lookup values for admin filters.

Extra: 1) Update CSS for consistent styling of autocomplete widgets; 2) Remove unused `autocomplete_list_filter` assets and references; 3) Refactor JS for better maintainability and performance improvements.
2025-07-01 20:14:09 +03:00
2bf396c744 Features: 1) Enhance script initialization for Select2 in autocomplete_list_filter.html to improve compatibility.
Fixes: 1) Correct inconsistent spacing in `core/admin.py` field attribute assignments and methods.

Extra: 1) Format HTML and Python code for improved readability; 2) Replace inline script with `DOMContentLoaded` listener for better code structure.
2025-07-01 19:56:40 +03:00
3c9c95d9bd Features: 1) Add support for initializing Select2 dropdowns in autocomplete list filters;
Fixes: 1) Ensure proper functionality of Select2 initialization script for dynamic inputs;

Extra: 1) Add missing newline handling in template file.
2025-07-01 19:38:41 +03:00
d4156f88ab Features: 1) Refactor autocomplete filter template to use {% block %} structure for better modularity; 2) Include {% block media %} for styles and scripts management.
Fixes: 1) Resolve potential redundancy in script and CSS inclusion.

Extra: Simplify and streamline the template by removing inline `<script>` tags and consolidating structure.
2025-07-01 19:28:03 +03:00
b70f5601e7 Fixes: 1) Correct script tag order for Select2 initialization in autocomplete_list_filter.html;
Extra: Ensure dependent scripts are properly loaded to avoid potential issues;
2025-07-01 19:18:52 +03:00
1116d6c602 Features: 1) Add required static asset links for Select2 styles and scripts; 2) Enhance autocomplete list filter with improved styles and functionality;
Fixes: 1) Fix indentation inconsistencies in HTML template;

Extra: 1) Refactor inline script for improved readability;
2025-07-01 19:11:01 +03:00
efcbfea825 Features: 1) Simplify autocomplete list filter by utilizing django.jQuery for bootstrap initialization;
Fixes: 1) Remove redundant external JavaScript includes for autocomplete functionality;

Extra: 1) Add minor formatting tweak by inserting a blank line for improved readability.
2025-07-01 19:04:41 +03:00
9b118aacef Features: 1) Add jQuery and Select2 scripts to autocomplete_list_filter.html;
Fixes: 1) None;

Extra: 1) None;
2025-07-01 18:58:18 +03:00
9f3b202646 Fixes: 1) Add missing "static" library import in autocomplete_list_filter.html;
Extra: Ensure compatibility with static assets in the template.
2025-07-01 18:54:36 +03:00
65beeb2a26 Features: 1) Add custom stylesheet and JavaScript for autocomplete functionality in admin filter template;
Fixes: None;

Extra: 1) Improve HTML indentation for better readability;
2025-07-01 18:51:44 +03:00
9927fe510b Fixes: 1) Ensure field verbose_name is converted to lowercase for consistency;
Extra: Adjusted `field_label` initialization to use `.lower()` method for improved uniformity;
2025-07-01 18:45:33 +03:00
f15897f20d Features: 1) Simplify autocomplete_list_filter.html template by removing unused static assets and unnecessary label tag; 2) Refactor indentation for better readability;
Fixes: None;

Extra: Streamline template code by removing redundant HTML elements and unused script imports;
2025-07-01 18:45:02 +03:00
306f54b4a2 Features: 1) Replace autocomplete input with Select2-based dropdown for enhanced functionality and improved styling; 2) Add support for displaying the initial selection text in the dropdown; 3) Load additional Select2-specific JavaScript and CSS resources dynamically;
Fixes: 1) Correct handling of initial selection when lookup value is invalid or missing;

Extra: 1) Refactor related admin template and Python code to improve readability and maintainability; 2) Align variable names and code style for consistency.
2025-07-01 18:35:01 +03:00
08dc89ef19 Features: 1) Update AutocompleteListFilter to dynamically display field label in placeholder using blocktrans; 2) Enhance choices method with field_label for improved context;
Fixes: 1) Remove redundant jQuery UI script and CSS imports for optimization;

Extra: 1) Minor formatting adjustments for readability; 2) Replace variable `base_url` with `base` for naming consistency; 3) Improve `expected_parameters` method to return list format.
2025-07-01 18:29:25 +03:00
aff9a4cfa7 Fixes: 1) Correct expected_parameters method to use precise query parameter naming with field_path and target_field. 2025-07-01 18:22:02 +03:00
5926ceb8bf Features: 1) Add missing call to super().__init__() in admin field constructor;
Fixes: 1) Correct use of `remote` to `remote_opts` for consistent model metadata reference;

Extra: 1) Improve formatting for better code readability.
2025-07-01 18:16:02 +03:00
83ac6b27e6 Features: 1) Add data-lookup-kwarg to autocomplete input for better filtering; 2) Streamline admin autocomplete URL structure for consistency;
Fixes: 1) Replace outdated jQuery UI paths with modern equivalents; 2) Ensure proper retrieval of JSON responses in autocomplete widget; 3) Correct misaligned parameter initialization in `AdminFilter`;

Extra: Minor formatting improvements and variable renaming for readability.
2025-07-01 18:12:50 +03:00