Commit graph

24 commits

Author SHA1 Message Date
f345a1bfed Features: None;
Fixes: 1) Correct inconsistent formatting in `vibes_auth` phone number validation logic; 2) Resolve redundant newlines in `core/utils/emailing.py` logging statement;

Extra: 1) Cleaned up line breaks for better readability and consistency.
2025-09-01 13:18:13 +03:00
8fc8effd90 Features: None;
Fixes: 1) Correct conditional logic for phone number validation in mutations;

Extra: 1) Add 'tmp' directory to .gitignore;
2025-09-01 11:27:50 +03:00
6e83562ee6 Features: 1) Add include_personal_ordered filter to handle personal orders; 2) Modify ordering filters to support annotation of price using Coalesce and Max;
Fixes: 1) Ensure email and phone number validation rejects duplicates in the user table;

Extra: 1) Minor adjustments to annotated queryset for order filter logic.
2025-08-20 05:00:55 +03:00
09366213b6 Features: 1) Introduced AddressFilter and AddressType to enable filtering and querying addresses via GraphQL; 2) Added resolve_addresses method with permission check in GraphQL schema; 3) Updated DRF settings to improve API documentation structure.
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`.
2025-07-12 18:49:25 +03:00
a1db34d1c9 Features: 1) Rename 'avatar' argument to 'file' in UploadAvatar mutation for clarity;
Fixes: None;

Extra: None;
2025-07-09 02:52:59 +03:00
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
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
aa8f15d0ee Features: 1) RUFFVCKED 2025-07-03 02:53:01 +03:00
83cad6c1cc Features: 1) Update all logger instances across the codebase to use "evibes" instead of "django";
Fixes: 1) None;

Extra: 1) Enhance consistency in logging configuration and improve alignment with project-specific naming conventions.
2025-06-30 01:44:20 +03:00
b040da6e5a Fixes: 1) Update logger initialization to use "django" logger across all modules for consistency;
Extra: None;
2025-06-30 01:37:38 +03:00
8fb4ca3362 Features: 1) Add type annotations for various models and methods; 2) Introduce refined graphene resolvers to enhance permission handling; 3) Include type checking suppression with # type: ignore for unsupported cases.
Fixes: 1) Correct `urlsafe_base64_encode` decoding logic in tests; 2) Fix queryset access issues in resolvers; 3) Address missing or incorrect imports across multiple files.

Extra: Improve code readability with consistent naming and formatting; Add `# noinspection` annotations to suppress IDE warnings; Update `pyproject.toml` to exclude `drf.py` in MyPy checks.
2025-06-18 16:38:07 +03:00
328ccaa615 Features: 1) 2.8.9 update
Fixes: 1) wtf go read diff;

Extra: ???
2025-06-18 15:05:58 +03:00
0153157653 Features: None;
Fixes: 1) Correct indentation in multiple modules, including mutations, models, and utility methods to maintain consistency; 2) Fix typos in function parameters and update alignment for readability;

Extra: Refactored for improved code readability and adherence to PEP 8 style guidelines.
2025-06-17 11:34:02 +03:00
7b5585ea9f Features: 1) Enforced password validation using Django's validate_password in password reset flows; 2) Added handling for ValidationError during password validation;
Fixes: 1) Removed redundant import for `ValidationError` from `rest_framework.exceptions`; 2) Fixed request data handling in `confirm_password_reset` to directly use incoming data instead of serialized data;

Extra: 1) Minor adjustments to error messages for consistency; 2) Cleaned up unused variables in `confirm_password_reset`.
2025-05-29 22:42:13 +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
d86a6ed3c8 RUFF 2025-05-26 16:12:59 +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
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
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
68febcdb08 Initial Commit 2025-04-29 22:40:30 +03:00