Fixes: 1) Removed reliance on suppressed exceptions for UUID lookup; 2) Improved handling of invalid or missing objects during lookup.
Extra: 1) Cleaned up unused import `suppress`; 2) Simplified code by replacing redundant lookup logic with a unified method.
Fixes: 1) Correct dynamic URL generation for images in Open Graph (`og_image` and `logo_url`); 2) Address potential missing or empty `crumbs` handling in breadcrumbs generation;
Extra: 1) Refactor redundant action names (e.g., `seo` to `seo_meta`) for better consistency; 2) Clean up and optimize serializer structures and Graphene object fields; 3) Improve readability and maintainability of action and object implementations.;
Fixes: 1) Resolve annotations compatibility with mypy `type: ignore` adjustments; 2) Correct `resolve_price_with_currency` method to ensure proper float returns; 3) Handle scenarios for empty or null queryset in vendor methods.
Extra: 1) Refactor utility functions for better type annotations and robustness; 2) Minor formatting corrections and removal of redundant mypy strict setting; 3) Improve method return types for consistency.
Fixes: 1) Add missing import for `DigitalAssetDownload`;
Extra: 1) Enhance order processing logic to finalize digital product orders with associated stocks.
Fixes: 1) Avoid unused variable warning in `update_products_task` by removing exception variable `vie`; 2) Add missing imports for `logging` and `traceback` in `payments/signals.py`;
Extra: 1) Minor formatting fix in `dbbackup.py` to consolidate FTP URL string construction; 2) Remove unnecessary newline in `core/vendors/__init__.py`.
Fixes: 1) Remove unused migration file `0037_alter_vendor_b2b_auth_token`; 2) Update `b2b_auth_token` field in `Vendor` model to remove uniqueness constraint;
Extra: 1) Add explicit return type annotation to `Vendor.save` method.
Fixes: 1) Adjust `is_business` property logic for accuracy; 2) Fix import cleanup in serializers and utils files;
Extra: Refactor `core.models`, `core.utils`, and `core.vendors` for improved type annotations and other minor adjustments; Expand mypy exclusions in `pyproject.toml`.
Fixes: 1) Correct iml file structure for better compatibility;
Extra: Update `.idea/evibes.iml` to include Django-specific settings for project consistency;
Fixes: 1) Handle `user` lookup more robustly using `getattr`; 2) Prevent redundant list creation in distinct value processing;
Extra: 1) Use consistent cache key variable; 2) Improve code readability with `defaultdict` for grouping; 3) Minor cleanup and formatting enhancements; 4) Remove unnecessary attribute redefinitions.
Fixes: 1) Resolved misaligned line annotations for translations; 2) Corrected minor grammatical inconsistencies in Polish and German translations.
Extra: Adjusted formatting for improved readability across multiple language files.
Fixes: 1) Remove redundant logic for `attributes` handling in `emailing.py`;
Extra: 1) Minor refactor in `process_order_changes` for better attribute management.
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.
Fixes: 1) Remove obsolete API documentation and translations from locale files;
Extra: Cleared out unused gettext entries, improving locale management.
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.
Fixes: 1) Correct logic for optional address validation to avoid runtime errors;
Extra: 1) Change documentation settings format from "Google" to "Plain".
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`.
Fixes: 1) Streamline queryset filtering in `delete_inactives` by removing redundant line breaks;
Extra: 1) Minor formatting cleanup for improved code readability;
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.
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`.
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.
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.
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.
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.
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.
Fixes: 1) Ensure accurate return types in resolver methods to avoid potential runtime issues;
Extra: 1) Minor code consistency improvements in `object_types.py`;
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.
Fixes: 1) Ensure command continues execution if an error occurs in batch deletion;
Extra: 1) Minor formatting adjustment by removing an unnecessary blank line.
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.
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.
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.
Fixes: 1) Resolve potential redundancy in script and CSS inclusion.
Extra: Simplify and streamline the template by removing inline `<script>` tags and consolidating structure.
Fixes: 1) Remove redundant external JavaScript includes for autocomplete functionality;
Extra: 1) Add minor formatting tweak by inserting a blank line for improved readability.
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.
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.
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.
Fixes: 1) Ensure default value for `lookup_val` is an empty string if not provided; 2) Correct `field_name` parameter in the autocomplete URL to use `field_path`;
Extra: 1) Minor cleanup by removing redundant variable declarations.
Fixes: 1) Add missing imports for `FieldListFilter` and `reverse` in `core/admin.py`;
Extra: 1) Include relevant JS and CSS assets for autocomplete functionality; 2) Add comments and structure for better readability in template and script.
Fixes: 1) Remove unnecessary imports related to the deleted functionality.
Extra: 1) Extensive cleanup to remove redundant code and references; 2) Minor formatting adjustments for improved readability.
Fixes: 1) Correct file paths for JavaScript and CSS dependencies in admin filter components;
Extra: Streamlined template and asset references for better maintainability;
Fixes: 1) Clean up unused imports in `filters.py`.
Extra: 1) Apply consistent string quoting across `admin.py` for formatting standardization; 2) Update logging configuration for `django.template` with new filter.
Fixes: 1) Remove unused imports from `core/admin.py`;
Extra: 1) Delete redundant `autocomplete_filter.html` template and associated filter classes for cleanup; 2) Minor refactoring of `ProductAdmin` class in alignment with the removal of filters.
Fixes: 1) Correct `parameter_name` assignments in BrandAdminFilter, CategoryAdminFilter, TagsAdminFilter, and VendorAdminFilter to use plain strings;
Extra: None;
Fixes: 1) Correct parameter name value extraction to use `current` in `BaseAutocompleteFilter`;
Extra: 1) Refactor HTML rendering in `BaseAutocompleteFilter` for readability; 2) Add comments to explain purposes in the new template.
Fixes: 1) Replace hardcoded `AutocompleteListFilter` with newly created filters for better modularity;
Extra: 1) Refactor queryset string handling and enhance readability in filter choices; 2) Update admin `list_filter` with new filter classes.
Fixes: 1) Remove unused `django-autocompletefilter` package and adjust imports; 2) Clean up related settings and dependency references;
Extra: Minor formatting adjustments in `payments/admin.py`.
Fixes: 1) Remove deprecated `dalf` package from dependencies and configurations;
Extra: Update `poetry.lock` file and related hashes to reflect changes;
Fixes: 1) Replace `DALFModelAdmin` with `ModelAdmin` in `ProductAdmin` class; 2) Remove invalid use of `DALFChoicesField` for `list_filter` in `ProductAdmin`;
Extra: 1) Add missing import for `forms` and `get_select2_language`; 2) General cleanup and refactoring of `ProductAdmin` class.
Fixes: 1) Correct use of `@action` decorator within `ActivationActionsMixin` for defining admin actions; 2) Remove unused `BasicModelAdmin` inheritance from multiple admin classes.
Extra: Refactor and simplify admin imports and site registration for better readability and maintainability.
Fixes: 1) Removed unused imports to reduce clutter; 2) Simplified media property in `ProductAdmin` by removing unnecessary customization logic.
Extra: Refactored all admin model classes to utilize `ActivationActionsMixin` for consistency and maintainability.
Fixes: 1) Correct handling of the Select2 i18n file path in admin media to prevent issues with optional language files;
Extra: 1) Minor refactoring to streamline JavaScript file list construction.
Fixes: 1) Update paths for JavaScript assets to remove redundant `admin/js/vendor` prefix;
Extra: 1) Simplify file list construction by adjusting paths for consistency.
Fixes: 1) Replace `DALFRelatedFieldAjax` with `DALFRelatedOnlyField` for vendor stock field.
Extra: 1) Minor formatting adjustments in `api_urls.py` for readability.
Fixes: 1) Correct indentation in `api_urls.py` for better readability; 2) Update `.gitignore` to include `.nuxt/`, `.next/`, and `next-env.d.ts` paths; 3) Simplify query formatting in `delete_never_ordered_products` command;
Extra: None;
Fixes: 1) Resolve inconsistency by replacing `DALFRelatedOnlyField` with `DALFRelatedFieldAjax`;
Extra: Clean up admin field definitions to align with the latest field usage.
Fixes: 1) Correct list_filter fields for brand and category in ProductAdmin to use proper lookup names;
Extra: 1) Add missing import for forms and get_select2_language from
Fixes: 1) Correct unnecessary use of `Collection` type hint in core and simple serializers; 2) Fix translation of "blacklisted tokens" in Russian localization;
Extra: 1) Simplify conditional logic in `get_children` methods across serializers; 2) Remove unused imports and improve code readability.
Fixes: 1) Simplify Prometheus and GraphQL path definitions in `evibes/api_urls.py`;
Extra: 1) Add line breaks across multiple files for improved code readability.
Fixes: 1) Adjusted Django admin translations display logic for improved clarity; 2) Updated locale files across multiple regions (e.g., `ru_RU`, `zh_Hans`, `ro_RO`) to align with new context placeholders;
Extra: Removed obsolete `STOCKS_ARE_SINGLE` setting; minor formatting and spacing corrections in translations and source files.
Fixes: 1) Correct transaction primary key reference in email utility; 2) Remove unnecessary model permissions in `jazzmin.py`;
Extra: 1) Minor formatting alignments to codebase including whitespace adjustments; 2) Retain static URL handling in debug mode for `api_urls`.