Commit graph

52 commits

Author SHA1 Message Date
328ccaa615 Features: 1) 2.8.9 update
Fixes: 1) wtf go read diff;

Extra: ???
2025-06-18 15:05:58 +03:00
3ce54ef027 Features: 1) Add optional celery-stubs and django-stubs dependencies to pyproject.toml; 2) Update worker extras to include celery-stubs; 3) Improve URL formatting in digital asset logic.
Fixes: 1) Rename `Adress` to `Address` in `core/viewsets.py`; 2) Fix incorrect argument usage in filter methods; 3) Correct file formatting in lockfile.

Extra: Code cleanup for consistent file format in `poetry.lock`, adding comments (`# noqa`) where necessary.
2025-06-16 09:52:35 +03:00
ea552fc3ba Features: 1) Add prefetch for "tags" in CategoryViewSet queryset;
Fixes: 1) Simplify `CaseInsensitiveListFilter` by removing redundant debug logs;

Extra: 1) Remove unused conditional filtering for parent category in `CategoryViewSet`.
2025-06-16 09:33:56 +03:00
fd97d8a072 Fixes: AddressViewSet 2025-06-12 09:18:20 +03:00
18f3b9d2e8 Features:
1) Userless orders will be merged on user's registration by their phone number and/or email. Added Viewset action "merge_recently_viewed" so recently viewed products may be stored on server's side.
2) Added comprehensive products' filtering by category(support for including subcategories)
Fixes: I18N
2025-06-10 05:40:07 +03:00
966111f0b7 Fixes: FeedbackViewSet 2025-06-08 21:21:13 +03:00
b413f98d7f Fixes: ProductViewSet 2025-06-08 17:00:05 +03:00
52b9f5fa35 Fixes: ProductViewSet 2025-06-08 16:57:32 +03:00
705bb79903 Fixes: AddressManager 2025-06-08 15:54:44 +03:00
1ab95e9fd3 Fixes: Add a debugging log for address creation 2025-06-08 14:54:35 +03:00
e775b8233d Fixes: Add a debugging log for address creation 2025-06-08 14:43:19 +03:00
4148d9e02c Features: Added feedbacks support for OrderProducts 2025-06-08 14:18:26 +03:00
b876983ef3 Fixes: EvibesViewSet 2025-06-07 20:56:51 +03:00
17ae42a0b8 Fixes: OrderViewSet fixes 2025-06-07 19:20:51 +03:00
beb1673cbb Fixes: OrderViewSet fixes 2025-06-07 19:08:04 +03:00
10323a4435 Fixes: OrderViewSet fixes 2025-06-07 18:58:10 +03:00
71dcf8e922 Fixes: OrderViewSet fixes 2025-06-07 18:57:45 +03:00
f6ade70b57 Fixes: OrderViewSet fixes 2025-06-07 18:39:03 +03:00
6c2d452684 Fixes: OrderViewSet fixes 2025-06-07 18:31:27 +03:00
f5a87dac08 Fixes: viewsets.py imports fix 2025-06-07 18:01:56 +03:00
578ec96603 Fixes: viewsets.py 2025-06-07 17:58:03 +03:00
a533ed90a2 Fixes: buy_unregistered in Order model fix 2025-06-07 16:51:07 +03:00
14fe032722 Fixes: buy_unregistered ratelimiting fix 2025-06-07 16:25:26 +03:00
7c2e2442b9 Fixes: buy for OrderViewSet incorrect arguments fix 2025-06-07 16:14:18 +03:00
6681723fe9 Fixes: buy_unregistered for OrderViewSet META unresolved attribute fix 2025-06-07 16:09:53 +03:00
00b8c6c336 Fixes: fix incorrect imports 2025-06-05 17:56:26 +03:00
3bf0eaeba2 Features: Add order's IDs to TransactionProcessSerializer.
Extra: 1) Minor code improvements.
2025-06-03 21:35:41 +03:00
b71cc2355e Fixes: 1) Fix OrderViewSet buy action.
Extra: 1) Minor code improvements.
2025-06-03 21:20:48 +03:00
18782a8bc0 Features: 1) Add context to serializers in create method of AddressViewSet.
Fixes: 1) Correct serialization flow by separating create and output serializers.

Extra: 1) Minor variable renaming for clarity; 2) Improved readability of the `create` method.
2025-06-01 19:58:51 +03:00
194e2bef78 Features: 1) None;
Fixes: 1) Remove unused positional arguments from wishlist-related viewset methods; 2) Adjust `create` method to accept only required arguments;

Extra: 1) Minor cleanup for method signatures in `core.viewsets.py`;
2025-06-01 18:57:06 +03:00
8f7eaa794b Features: 1) Add pagination_class attribute to AddressViewSet for disabling pagination;
Fixes: 1) Remove unused `*_args` and `**kwargs` parameters from `current` and `buy_unregistered` methods in `OrderViewSet` and `WishlistViewSet`;

Extra: 1) Minor formatting adjustments for improved readability.
2025-06-01 18:44:00 +03:00
06b890889c Features: 1) Updated translations for en_US in django.mo file;
Fixes: 1) Resolved inconsistencies in localized strings;

Extra: Streamlined formatting and corrected typos in comments.
2025-06-01 18:42:44 +03:00
03c9874f63 Features: 1) Add permission-aware get_queryset method to OrderProductViewSet; 2) Add permission-aware get_queryset method to PromoCodeViewSet;
Fixes: None;

Extra: None;
2025-05-29 23:14:32 +03:00
543594c2b8 Features: 1) Add get_queryset method to filter Wishlists by user permission;
Fixes: 1) None;

Extra: Update evibes-big-simple.png in documentation;
2025-05-29 23:13:21 +03:00
ac3268748e Features: 1) Add get_queryset method to filter queries based on user permissions;
Fixes: 1) None;

Extra: None;
2025-05-29 23:07:02 +03:00
baf165ddd7 Features: 1) Add ProductTagType to GraphQL schema with associated queries and resolvers; 2) Register ProductTagViewSet in API URLs and core router; 3) Implement detailed and simple serializers for ProductTag.
Fixes: 1) Correct `serializer_class` assignments for `ProductImageViewSet`, `PromoCodeViewSet`, `PromotionViewSet`, `StockViewSet`, and `WishlistViewSet`.

Extra: 1) General code cleanup and reorganization for viewsets.
2025-05-29 18:22:44 +03:00
4e269dc801 Features: 1) Add BulkOrderAction mutation to handle bulk addition/removal of order products; 2) Introduce bulk_add_order_products and bulk_remove_order_products endpoints in viewset; 3) Add BulkAddOrderProductsSerializer and BulkRemoveOrderProductsSerializer.
Fixes: 1) Update `remove_product` model method to handle zero quantity removal; 2) Correct permission check in order product removal.

Extra: 1) Add `autocomplete_fields` for products in admin; 2) Enhance docs with bulk add/remove schemas; 3) Various code refactorings and minor tweaks for improved maintainability.
2025-05-28 14:48:16 +03:00
d86a6ed3c8 RUFF 2025-05-26 16:12:59 +03:00
475b0a0c94 Features: 1) Add support for 'create' action with explicit 'ALLOW' flag in AddressViewSet; 2) Introduce refined permission handling with scoped user actions and public model visibility checks in EvibesPermission.
Fixes: 1) Ensure 'user' is set to authenticated user in AddressSerializer.create method.

Extra: 1) Refactor EvibesPermission for clarity and comprehensive action handling; 2) Add detailed class-level docstring for EvibesPermission; 3) Simplify queryset filtering logic with USER_SCOPED_ACTIONS and explicit permission checks.
2025-05-26 15:06:24 +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
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
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
631d0b503e Features: 1) Pass wishlist to WishlistDetailSerializer for correct data serialization;
Fixes: None;

Extra: None;
2025-05-14 12:26:50 +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
8bdb74b80c Features: 1) Add prefetch_related for "attributes" in CategoryViewSet queryset;
Fixes: None;

Extra: None;
2025-05-12 20:22:31 +03:00
ae17cc1371 Features: 1) Add populate_index function for Elasticsearch indexing and integrate it into update_products; 2) Enhance CategoryViewSet queryset with prefetching of "parent" and "children";
Fixes: 1) Refine logic in vendor category and brand handling to correctly handle multiple active/inactive entries;

Extra: 1) Add missing import for `registry` in Elasticsearch module; 2) Minor cleanup and spacing adjustments in Elasticsearch and vendor modules.
2025-05-12 20:22:01 +03:00
f5c1d64d46 Features:
1) Enhance lookup logic to support UUID validation for products in viewsets;
2) Add extensive filtering, sorting, and attributes documentation for product endpoints;
3) Define new OpenAPI parameters for querying products with detailed constraints.

Fixes:
1) Add missing import for `UUID` in core viewsets.

Extra:
1) Refactor and reorganize product API schema for clarity and consistency.
2025-05-08 17:33:40 +03:00
9941b45bd3 Features:
1) Add PRODUCT_SCHEMA to supported schemas;
2) Implement @extend_schema_view decorator for ProductViewSet;

Fixes:
1) None;

Extra:
1) None;
2025-05-08 17:25:14 +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
0ed8a8d48e Remove unused serializer and update ignored error settings
The `BuyAsBusinessOrderSerializer` import was removed as it is no longer used. Additionally, new error types were added to the `ignore_errors` list in the base settings file to prevent unnecessary logging of expected exceptions.
2025-05-07 18:18:23 +03:00