Commit graph

137 commits

Author SHA1 Message Date
87369b48a9 Features: 1) Add TabbedTranslationAdmin to all admin classes for translation support.
Fixes: 1) Remove unused LANGUAGES reference from ProductAdmin; 2) Eliminate redundant translatable_fields definition from ProductAdmin.

Extra: Refactor admin class imports and integrate TabbedTranslationAdmin for a centralized translation approach.
2025-05-20 19:42:48 +03:00
5a7f3d4883 Features: 1) Add transaction hook to ensure send_verification_email_task runs after database commit.
Fixes: 1) Add missing import for `transaction` in `signals.py`; 2) Fix incorrect handling of `pre_save` skip logic for non-existent users; 3) Correct conditional logic for email change handling to avoid unnecessary activation resets.

Extra: 1) Simplify mutation attribute validation in `mutations.py` by excluding specific fields earlier in the loop; 2) Improve code readability with minor refactors in both `signals.py` and `mutations.py`.
2025-05-20 15:04:55 +03:00
4f4d4c5c10 Features: 1) Add AddressViewSet to API routing; 2) Add is_publicly_visible attribute to Address model;
Fixes:

Extra: 1) Minor import addition for AddressViewSet in api_urls.py;
2025-05-20 14:12:32 +03:00
e259cf202c Features: 1) Replace success field with user field in UploadAvatar mutation response;
Fixes: None;

Extra: 1) Adjust mutation return statement to include `user` instead of static success value;
2025-05-20 12:04:19 +03:00
495aacc818 Features: 1) Add UploadAvatar mutation to handle avatar uploads; 2) Integrate graphene-file-upload for file upload capability.
Fixes: None;

Extra: 1) Update `poetry.lock` and `pyproject.toml` to include `graphene-file-upload`; 2) Minor formatting adjustments in `poetry.lock`.
2025-05-20 11:52:07 +03:00
5c98129a6f Features: 1) Switch Promotion creation to update_or_create to handle existing records;
Fixes: 1) Ensure Promotion update logic correctly applies changes to existing entries;

Extra: 1) Code formatting adjustments to improve readability;
2025-05-20 10:45:03 +03:00
d001e238f8 2.7.0 2025-05-20 08:56:33 +03:00
07d32de16b Features: 1) Add AddressType class above FeedbackType for organizational clarity;
Fixes: 1) Resolve duplicate declaration of AddressType by removing the redundant implementation;

Extra: Reorder and clean up code to improve structure and maintainability;
2025-05-20 08:18:35 +03:00
351b4eda00 Features: 1) Add migration to remove existing billing and shipping address columns and re-add them pointing to core.Address;
Fixes: 1) Correct on_delete parameter reference from django.db.models.deletion to models.deletion;

Extra: 1) Cleanup migration file header and remove unnecessary import; 2) Add comments for better clarity on SQL operations.
2025-05-20 08:14:00 +03:00
ed1796dbc4 Features: ;
Fixes: 1) Remove duplicate import of Address;

Extra: 1) Reformat import statements for better readability;
2025-05-20 08:00:59 +03:00
0ab8738520 Features: 1) None;
Fixes: 1) None;

Extra: 1) Removed the entire "geo" module, including migrations, model definitions, admin configurations, utilities, documentation, templates, translations, and related files. Moved functionality to "core".
2025-05-20 08:00:44 +03:00
cf0069a532 Features: 1) Allow 'user' field in 'balance' model to be optional with blank=True and null=True; 2) Adjust 'order' field in 'transaction' model formatting without functional changes;
Fixes: None;

Extra: 1) Remove unnecessary blank line in migrations file; 2) Minor formatting adjustments for better readability in migration definitions;
2025-05-19 17:54:52 +03:00
49fc9b33b6 Features: (none);
Fixes: (none);

Extra: 1) Remove unused migration file `0003_add_district_field.py`.
2025-05-19 17:25:44 +03:00
3fd3f0e0ee Features: None;
Fixes: None;
Extra: 1) Remove obsolete migration file `0004_add_missing_fields.py` from `geo`.
2025-05-19 17:25:10 +03:00
5ee3e4a974 Features: 1) Add 'country' field to geo model;
Fixes: 1) Remove redundant fields 'location', 'raw_data', 'api_response', and 'user' from 'address' model;

Extra: Adjust formatting by removing an unnecessary blank line;
2025-05-19 17:20:28 +03:00
28ac65332c Features: 1) Add new fields (city, region, postal_code, country, location, raw_data, api_response, user) to the Address model via migration 0004; 2) Introduce user ForeignKey to link Address model with AUTH_USER_MODEL.
Fixes: 1) Correct PointField import in migration 0001 to resolve GIS model inconsistency.

Extra: Adjust formatting in migration files for consistency.
2025-05-19 17:18:00 +03:00
7b7a518050 Features: 1) Add 'district' field to 'address' model in migrations;
Fixes: 1) Add missing import for models in migration file;

Extra: 1) Remove autogenerated timestamp comment from migration file;
2025-05-19 17:05:47 +03:00
b808c6684a Features: 1) Add new migration file for geo app to track database changes;
Fixes: ;

Extra: 1) Generated migration skeleton for district field addition;
2025-05-19 17:05:11 +03:00
b685c2a2b8 Features:
Fixes: 1) Correct dependency to use 'geo' app's initial migration instead of a later migration;

Extra:
2025-05-19 16:11:13 +03:00
71e5f5dc32 Features: 1) Add DBBACKUP_CONNECTORS configuration with default settings;
Fixes: 1) Add missing noqa comment for import statement;

Extra: None;
2025-05-19 16:04:19 +03:00
de03c714d1 Features: None;
Fixes: None;

Extra: 1) Fix spacing issue in tuple definition for `readonly_fields`.
2025-05-19 15:12:11 +03:00
d6f178acb6 Features: ;
Fixes: 1) Correct logical condition to check if product_uuid is in recently_viewed;

Extra: ;
2025-05-19 15:10:12 +03:00
3590dbbe2b Features: 1) Add caching mechanism for 'recently_viewed' functionality.
Fixes: 1) Remove 'recently_viewed' ManyToManyField from User model and related migration; 2) Correct handling of product addition in 'recently_viewed' logic.

Extra: Refactor 'recently_viewed' to use cache instead of database field; cleanup unused imports and model attributes.
2025-05-19 15:09:45 +03:00
c3c2222d99 Features: ;
Fixes: 1) Update dependency for 'geo' app in core migrations; 2) Remove redundant 'core' app dependency in vibes_auth migrations;

Extra: .
2025-05-19 15:01:57 +03:00
0b1a8550ab Features: None;
Fixes: None;

Extra: 1) Add dependency on 'geo' app in core migration initial script;
2025-05-19 14:57:09 +03:00
564ce0706b Features: Full Geo rework.
Fixes: 1) Address redundant migration logic by dropping stale migrations; 2) Cleanup swapper-based dependencies in Geo models;

Extra: Streamlined database initialization by resetting all previous migrations.
2025-05-19 14:45:53 +03:00
ec4fa17d72 Features: ;
Fixes: 1) Fix indentation issue in handling zip file stream for proper file processing;

Extra: ;
2025-05-16 02:05:02 +03:00
97b877c943 Features: 1) Add support for parsing files directly from zip-encoded streams.
Fixes: 1) Correct parsing logic to ensure consistent handling of file objects regardless of source type.

Extra: Refactor indentation and reduce duplicate logic for file parsing.
2025-05-16 01:53:19 +03:00
43c8df0c05 Features: 1) Add support for shipping and billing addresses in serializers, mutations, and models; 2) Validate address inputs during order purchasing; 3) Auto-fill billing address if only shipping address is provided and vice-versa;
Fixes: 1) Correct redundant variable and file handling in geo management commands; 2) Fix formatting inconsistencies in tqdm loops across geo management commands; 3) Remove unnecessary decorator in token verification view;

Extra: Clean up imports, line breaks, and redundant code for better readability and maintainability in multiple files;
2025-05-16 01:47:45 +03:00
11edfb9d4f Features: 1) Dynamic rate limiting based on DEBUG mode for authentication endpoints;
Fixes: 1) Add missing import for DEBUG from settings;

Extra: Updated rate limit for consistency across TokenObtain, TokenRefresh, and TokenVerify views.
2025-05-15 17:23:51 +03:00
9ebc9c73e0 Features: 1) Updated PostSerializer to inherit from ModelSerializer for enhanced functionality;
Fixes: 1) Removed unnecessary import of Serializer from rest_framework.serializers;

Extra: 1) Minor formatting and code cleanup in serializers.py.
2025-05-15 11:50:10 +03:00
1b252baf78 Features: 1) Allow referrer field to accept a string instead of UUID;
Fixes: None;

Extra: 1) Fix indentation inconsistencies in `mutate` method and attribute check block;
2025-05-15 11:26:53 +03:00
11071996af Features: 1) Add return self to bulk_add_products; 2) Add return self to bulk_remove_products;
Fixes: None;

Extra: None;
2025-05-14 12:38:40 +03:00
631d0b503e Features: 1) Pass wishlist to WishlistDetailSerializer for correct data serialization;
Fixes: None;

Extra: None;
2025-05-14 12:26:50 +03:00
190fb479be Features: 1) Enhance host validation in middleware to allow wildcard "*" in ALLOWED_HOSTS;
Fixes: 1) Correct .gitignore entries for static files to improve exclusion logic;

Extra: 1) Minor refactor in middleware for readability;
2025-05-14 03:38:39 +03:00
4a9c147149 Features:
Fixes: 1) Correct syntax for updating schema responses in `update` method;
Extra:
2025-05-13 23:16:03 +03:00
8f46c19b53 Features: 1) Add schema documentation using extend_schema_view decorators for TokenObtainPairView, TokenRefreshView, and TokenVerifyView.
Fixes: 1) Remove unused imports for serializers and inline_serializer from drf_spectacular.utils.

Extra: Refactor and simplify code by replacing inline schema definitions with centralized schema references (TOKEN_OBTAIN_SCHEMA, TOKEN_REFRESH_SCHEMA, TOKEN_VERIFY_SCHEMA) and removing redundant response examples.
2025-05-13 23:13:09 +03:00
7040c97791 Features: 1) Update default message for token validation in TokenVerifyResponse serializer;
Fixes: None;

Extra: None;
2025-05-13 23:05:53 +03:00
8375ef41db Features: 1) Add save method to enforce single pending order per user in Order model;
Fixes: 1) Adjust import order in `core/models.py` for better consistency;

Extra: Refactor formatting for better readability in `core/models.py`; Update `pyproject.toml` version to 2.6.2; Update compiled translation file `cs_CZ/LC_MESSAGES/django.mo`.
2025-05-13 23:02:16 +03:00
6cf2903c74 Features: 1) Replace AllValuesFieldListFilter with RelatedOnlyFieldListFilter for "tags" and "stocks__vendor" in list filters;
Fixes: 1) Remove unnecessary import of AllValuesFieldListFilter;

Extra: 1) Minor cleanup of unused imports in admin.py;
2025-05-13 16:46:04 +03:00
e5c0649725 Features: 1) Add AllValuesFieldListFilter import to enhance admin filtering options.
Fixes: 1) Replace RelatedOnlyFieldListFilter with AllValuesFieldListFilter for "tags__tag_name" and "stocks__vendor__name" to fix filter behavior.

Extra: None;
2025-05-13 16:41:12 +03:00
c92cd1d72c Features: 1) Replace custom TagNameListFilter with RelatedOnlyFieldListFilter for tags; 2) Replace custom VendorNameListFilter with RelatedOnlyFieldListFilter for vendors;
Fixes: None;

Extra: 1) Remove redundant custom list filter classes for tags and vendors; 2) Streamline ProductAdmin list_filter configuration;
2025-05-13 07:10:44 +03:00
abc91c599e Features: 1) Refactor vendor lookup logic to improve code readability; 2) Enhance queryset filtering to handle both string and list inputs for vendor names;
Fixes: None;

Extra: 1) Minor reformatting and alignment for better code clarity;
2025-05-13 06:55:22 +03:00
ba9e5080bc Features: 1) Add error handlers for Attribute, AttributeGroup, and AttributeValue DoesNotExist exceptions;
Fixes: 1) None;

Extra: None;
2025-05-13 05:55:49 +03:00
f69de19720 Features: 1) Rename variable 'tags' to 'vendors' for better clarity in admin lookup functionality;
Fixes: 1) None;

Extra: 1) Improve variable naming for readability in admin.py;
2025-05-13 05:53:56 +03:00
859fa7290e Features: ;
Fixes: 1) Correct filtering logic to use stocks__vendor__name instead of vendor__name in admin query;

Extra: ;
2025-05-13 05:24:45 +03:00
ea0d14bfc8 Features: 1) Add "Stock.DoesNotExist" and "ProductImage.DoesNotExist" to ignored exceptions in base settings;
Fixes: 1) Ensure auto_resolver_helper returns only the created or fetched instance by accessing tuple index [0];

Extra: None;
2025-05-13 03:15:15 +03:00
2e9659a562 Features: 1) Update project version to 2.6.1 in pyproject.toml and settings.
Fixes: none;

Extra: none;
2025-05-13 03:03:26 +03:00
2d67b69b42 Features: ;
Fixes: ;

Extra: 1) Update environment variable values to "development" and "production" for clarity;
2025-05-13 02:53:15 +03:00
4a97779139 Features: 1) Extend ignored errors in Sentry when DEBUG mode is enabled;
Fixes: None;

Extra: 1) Refactor ignored errors list to conditionally include additional exceptions in DEBUG mode;
2025-05-13 02:50:27 +03:00