Commit graph

349 commits

Author SHA1 Message Date
a6bbbc6101 Features: 1) Add CaseInsensitiveListFilter for category_slugs to filter by category slug;
Fixes:

Extra:
2025-05-21 12:39:01 +03:00
71cb0fc2db Features: 1) Add AutoSlugField "slug" to Category model with unique and auto-populating behavior; 2) Include "slug" field in CategoryFilter and relevant serializers (detail and simple); 3) Add "slug" to GraphQL object type for categories;
Fixes: None;

Extra: Add migration for new "slug" field in Category model.
2025-05-21 12:37:30 +03:00
6678b84de2 Features: 1) Add forwards and backwards migration logic for language field normalization using Lower; 2) Enhance allowed choices formatting in language field for improved readability;
Fixes: None;

Extra: 1) Minor code cleanup and reorganization in migration file;
2025-05-21 10:10:26 +03:00
6b71695d86 Features: ;
Fixes: ;

Extra: 1) Standardize flag file naming convention by renaming files to lowercase locale codes (e.g., ar-AR.png to ar-ar.png).
2025-05-20 22:35:22 +03:00
4991828b9b Features: 1) Updated user language field in vibes_auth to include more language options with a default set to 'en-gb';
Fixes: 1) Standardized field names in core models by renaming locale-specific fields to lowercase format for consistency (e.g., name_en_GB to name_en_gb);

Extra: Applied migrations to reflect these changes in vibes_auth and core apps for smoother db schema alignment.
2025-05-20 22:08:04 +03:00
110c2828ae Features: ;
Fixes: ;

Extra: 1) Remove unused `LocaleMiddleware` and replace with `CustomLocaleMiddleware`.
2025-05-20 21:42:04 +03:00
123459ede5 Features: 1) Add CustomLocaleMiddleware for language normalization and activation.
Fixes: None;

Extra: 1) Add CustomLocaleMiddleware to middleware stack in base settings; 2) Add missing import for LocaleMiddleware and translation module; 3) Refactor locale handling by extending LocaleMiddleware.
2025-05-20 21:39:07 +03:00
9d7efa310a Features: 1) None;
Fixes: 1) Remove unused `GrapheneLocaleMiddleware` and `CustomLocaleCommonMiddleware` from middleware stack; 2) Remove unused `get_language_from_header` import and related translation logic;

Extra: 1) Clean up settings and middleware files by removing redundant locale handling logic; 2) Minor formatting adjustments for consistency.
2025-05-20 21:06:20 +03:00
b18c75ccd2 Features: None;
Fixes: 1) Correct "name" field reference by replacing dynamic LANGUAGE_CODE-based key;
Extra: 1) Remove unnecessary get_prepopulated_fields method; 2) Minor cleanup of admin field logic;
2025-05-20 20:34:11 +03:00
b4b52897fb Features: 1) Dynamically adjust the 'name' field in admin based on LANGUAGE_CODE.
Fixes: 1) Add missing import for LANGUAGE_CODE from settings.

Extra: None.
2025-05-20 20:24:25 +03:00
c839c8a211 Features: ;
Fixes: ;

Extra: 1) Add `# type: ignore` comments to admin site unregister and register calls for typing compliance;
2025-05-20 19:46:53 +03:00
57a6654c89 Features: 1) Add return type annotations for admin actions.
Fixes: 1) Correct translation wrapping by converting to strings with str().

Extra: 1) Minor refactoring and cleanup in admin action methods for clarity.
2025-05-20 19:46:10 +03:00
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