Commit graph

37 commits

Author SHA1 Message Date
7f761f751a Fixes: 1) Correct token decoding in user activation check.
Extra: None.
2025-05-28 15:26:53 +03:00
cf721a50fa Features: 1) Add activation_error variable for enhanced error handling; 2) Raise detailed exception in debug mode during user activation failure;
Fixes: 1) Capture and store specific activation errors for debugging purposes;

Extra: 1) Minor cleanup in exception handling logic;
2025-05-28 15:23:59 +03:00
34616d6cd5 Fixes: 1) Correct query order to call nocache before get in vibes_auth/viewsets.py;
Extra: None;
2025-05-28 15:22:19 +03:00
0d9df63ca7 Features: None;
Fixes: 1) Ensure user retrieval bypasses caching using `.nocache()` method;

Extra: None;
2025-05-28 15:14:43 +03:00
861010ae86 Features: 1) Add detailed error traceback in activation error response;
Fixes: 1) Log complete error traceback for debugging activation failures;

Extra: 1) Minor code adjustments and variable addition for error handling;
2025-05-28 14:59:24 +03:00
ef5cecedda Features: 1) Updated localization file for Czech language (cs_CZ) with extended translations and modifications;
Fixes: None;

Extra: 1) Binary format changes observed in django.mo file, potentially related to recompiled translations;
2025-05-27 16:00:32 +03:00
3ad079b3d9 Features: 1) Extra password validation;
Fixes: 1) ;

Extra: 1) Minor adjustments in binary formatting of the localization file content.
2025-05-27 15:48:40 +03:00
008ab92f95 Features: 1) Filter recently viewed products by active status in serializer;
Fixes: 1) Correct default value in `recently_viewed` property to handle cache miss;

Extra: 1) Inline simplification of serializer logic for recently viewed products.
2025-05-26 22:16:32 +03:00
d86a6ed3c8 RUFF 2025-05-26 16:12:59 +03:00
7a1853ce02 Features: 1) Add @extend_schema_field for get_recently_viewed to improve OpenAPI schema generation.
Fixes: 1) Correct logic in `get_recently_viewed` method to properly handle `recently_viewed` items.

Extra: 1) Add missing import for `drf_spectacular.utils.extend_schema_field`; 2) Update method docstring for clarity; 3) Adjust typing in `get_recently_viewed` to use `List[Dict[str, Any]]`.
2025-05-26 15:17:49 +03:00
d7843f0bbf Features: 1) Add 'recently_viewed' field to user serializer;
Fixes:

Extra: 1) Remove 'created' field from user
2025-05-26 15:12:21 +03:00
71dd240505 Features: 1) Add 'recently_viewed' field to user serializer;
Fixes:

Extra:
2025-05-26 15:11:33 +03:00
89f6594751 Features: 1) Add RecentProductConnection to support recently viewed products in GraphQL; 2) Implement recently_viewed field in UserType with reverse-chronological product ordering; 3) Add recently_viewed field to UserSerializer and return data with ProductSimpleSerializer.
Fixes: 1) Fix `resolve_recently_viewed` to handle empty UUIDs and avoid breaking queries.

Extra: Refactor imports in `graphene/object_types.py` and `serializers.py` for better clarity; Adjust minor formatting in `TokenObtainSerializer`.
2025-05-26 14:54:21 +03:00
f76b000e07 Features: 1) Update recently_viewed to use GenericScalar for UUIDs;
Fixes: 1) Correct resolve_recently_viewed logic to ensure default behavior;

Extra: 1) Minor cleanup in resolve_recently_viewed for simplified return logic;
2025-05-23 06:56:57 +03:00
1520142d6f Features: 1) None;
Fixes: 1) Ensure user.save() is called after setting a new password;

Extra: None;
2025-05-21 16:32:21 +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
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
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
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
d001e238f8 2.7.0 2025-05-20 08:56:33 +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
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
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
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
9f64b4214b Features:
1) None;

Fixes:
1) Corrected formatting of "fuzzy" flags in multiple locale `.po` files for consistent syntax;

Extra:
1) No functional changes, only formatting updates in translation files;
2025-05-08 17:15:33 +03:00
12ccd04943 Update API version to 2.6.0 and reformat migration files
Updated the API version from 2.5.0 to 2.6.0 in the DRF settings for consistency across configurations. Reformatted migration files for better readability, ensuring consistency in code style and improving maintainability. These changes do not alter functionality but enhance clarity and documentation.
2025-05-06 19:19:49 +03:00
ce66513488 Refactor email sending to use reusable connections
Updated email sending logic across multiple modules to utilize `django.core.mail.get_connection` for better email connection management and efficiency. Adjusted filters in `conditions.py` to correctly handle dictionary inputs when checking attribute lengths.
2025-05-06 17:44:55 +03:00
76d490f2e2 Refactor translation command and improve order model.
Enhanced the `deepl_translate` management command with improved placeholder handling, error messages, and support for missing translations. Added `human_readable_id` and `is_business` attributes to the `Order` model, updating associated admin configurations to reflect these changes.
2025-05-06 03:28:06 +03:00
68febcdb08 Initial Commit 2025-04-29 22:40:30 +03:00