Commit graph

432 commits

Author SHA1 Message Date
e99ae9e85c Features: 1) Alter category.slug to populate only from name and enable null values in migration.
Fixes: 1) None.

Extra: 1) Removed `parent__slug` from `populate_from` in `category.slug` field in models for consistency.
2025-06-21 19:29:43 +03:00
fe9dfe552b Features: None;
Fixes: None;

Extra: 1) Remove unused `divider_title` attribute across app configurations and settings; 2) Cleanup unnecessary translation import in `daisy.py`.
2025-06-21 19:19:09 +03:00
29f8be5624 Fixes: 1) Correct invalid URL in DAISY_SETTINGS for EXTRA_STYLES path. 2025-06-21 19:11:46 +03:00
82a79c31f9 Features: 1) Update category.slug to derive from name and parent__slug; 2) Update product.slug to derive from uuid, category__slug, brand__slug, and name;
Fixes: None;

Extra: None;
2025-06-21 19:04:36 +03:00
400d198afc Features: 1) Add dynamic BASE_DOMAIN-based URL for EXTRA_STYLES in DAISY_SETTINGS;
Fixes: None;

Extra: 1) Add missing import for CONSTANCE_CONFIG in daisy.py;
2025-06-21 18:49:07 +03:00
b96ad5aa80 Features: 1) Added "eVibes Engine" translation for multiple languages; 2) Updated priorities for applications in settings/daisy.py;
Fixes: 1) Corrected mismatched line references in translations; 2) Adjusted timestamps in locale files for accuracy;

Extra: Refactored and cleaned up unused or misplaced translation entries.
2025-06-21 18:45:14 +03:00
3ab95e9b56 Features: 1) Added icons, divider titles, priorities, and hide settings to apps; 2) Introduced Daisy settings file for customizable UI configuration; 3) Implemented new CSS styles for paginator component with hover and active states.
Fixes: 1) Updated AutoSlugField to enhance slug generation logic in core models.

Extra: 1) Removed redundant Daisy settings from base configurations; 2) Minor code cleanup and organization.
2025-06-21 18:35:34 +03:00
3cb6576258 Fixes: 1) Remove unnecessary null=True attribute from brand_priority field. 2025-06-20 05:32:21 +03:00
2840370c3e Features: 1) Add priority field to Brand model to support ranking functionality; 2) Enhance ProductDocument with brand_priority field in Elasticsearch for improved sorting; 3) Integrate function score query with brand_priority in Elasticsearch search logic;
Fixes: None;

Extra: 1) Update migrations for Brand model changes; 2) Refactor Elasticsearch query logic for clarity;
2025-06-20 05:26:03 +03:00
41b6c1aa07 Revert "Features: 1) Add suggest, price, and quantity fields to ProductDocument; 2) Introduce prepare_suggest method for enhancing autocomplete functionality; 3) Enhance search with filters, function scoring, and result aggregation; 4) Add new analyzers and token filters for synonyms and stopwords."
This reverts commit 97829d23a6.
2025-06-20 05:12:11 +03:00
352b5f14ef Revert "Features: None;"
This reverts commit 778d65b963.
2025-06-20 05:12:07 +03:00
1e2351afd5 Revert "Features: 1) Add chunk_size attribute to _BaseDoc class; 2) Enable additional Elasticsearch configurations (timeout, max_retries, retry_on_timeout); 3) Set ELASTICSEARCH_DSL_PARALLEL to True;"
This reverts commit 1dae1a6be5.
2025-06-20 05:12:00 +03:00
65a34bb90b Revert "Features: 1) Adjust Elasticsearch timeout settings and retry configuration for improved connection handling."
This reverts commit 76954ac24c.
2025-06-20 05:11:57 +03:00
76954ac24c Features: 1) Adjust Elasticsearch timeout settings and retry configuration for improved connection handling.
Fixes: 1) Reduce `_BaseDoc.chunk_size` to prevent potential memory issues.

Extra: 1) Disable Elasticsearch parallel indexing to enhance stability.
2025-06-20 04:56:31 +03:00
1dae1a6be5 Features: 1) Add chunk_size attribute to _BaseDoc class; 2) Enable additional Elasticsearch configurations (timeout, max_retries, retry_on_timeout); 3) Set ELASTICSEARCH_DSL_PARALLEL to True;
Fixes: None;

Extra: None;
2025-06-20 04:10:55 +03:00
778d65b963 Features: None;
Fixes: None;

Extra: 1) Remove unused "synonym_filter" and "synonym_analyzer" definitions in Elasticsearch configuration; 2) Cleanup redundant code for better maintainability;
2025-06-20 04:01:20 +03:00
97829d23a6 Features: 1) Add suggest, price, and quantity fields to ProductDocument; 2) Introduce prepare_suggest method for enhancing autocomplete functionality; 3) Enhance search with filters, function scoring, and result aggregation; 4) Add new analyzers and token filters for synonyms and stopwords.
Fixes: 1) Remove unused imports in `core/elasticsearch/__init__.py`.

Extra: Refactor `process_query` for improved readability and functionality; update aggregation and result processing logic; reformat and clean up code.
2025-06-20 03:55:56 +03:00
efd927f4d1 Revert "Features: 1) Add SearchAsYouTypeField to name field in ProductDocument for improved search capabilities; 2) Introduce product_type and sales_rank fields to ProductDocument with preparation methods; 3) Add total_orders property to model for calculating product order count;"
This reverts commit 432e4bf1
2025-06-20 03:28:27 +03:00
e541dfd624 Revert "Features: 1) Add top_level field to documents with preparation logic; 2) Add price field to documents with preparation logic; 3) Introduce score boosting with function_score using sales_rank field;"
This reverts commit 529fd39ff4.
2025-06-20 03:27:58 +03:00
e68bd73a6a Revert "Features: 1) Update category root logic to retrieve the first family member instead of the root node;"
This reverts commit 82f59307bf.
2025-06-20 03:27:53 +03:00
c0a753fa15 Revert "Features: 1) Add support for .sat suffix fields in search query with phrase_prefix match; 2) Incorporate lenient fuzzy match and prefix match into a combined query logic; 3) Enhance function_score with additional filtering for better query relevance."
This reverts commit 5efac0d5ff.
2025-06-20 03:27:44 +03:00
d0e7c9e4ec Revert "Features: 1) Add typo-tolerant, multi-index search with phrase_prefix query; 2) Enhance query boost logic for name field;"
This reverts commit 781e20eb9a.
2025-06-20 03:27:35 +03:00
781e20eb9a Features: 1) Add typo-tolerant, multi-index search with phrase_prefix query; 2) Enhance query boost logic for name field;
Fixes: 1) Avoid redundant nesting in slug determination; 2) Refactor image_url assignment to prevent repetition;

Extra: Improve formatting and remove unnecessary dictionary structure in query functions.
2025-06-19 17:54:34 +03:00
ba335e5d96 Features: 1) Add configuration for django_summernote in settings menu;
Fixes: ;

Extra: 1) Update priority values for existing menu items to accommodate `django_summernote`;
2025-06-19 16:46:48 +03:00
c01f2422ce Features: 1) Add 'retrieve: ALLOW' to additional permissions in blog viewsets;
Fixes: None;

Extra: None;
2025-06-19 16:34:52 +03:00
5efac0d5ff Features: 1) Add support for .sat suffix fields in search query with phrase_prefix match; 2) Incorporate lenient fuzzy match and prefix match into a combined query logic; 3) Enhance function_score with additional filtering for better query relevance.
Fixes: 1) Handle missing or empty query input with a more explicit check; 2) Resolve potential response errors by catching `NotFoundError` exceptions in search execution.

Extra: Refactor code structure to improve readability and modularity, including better slug generation logic and streamlined image URL handling.
2025-06-19 16:31:54 +03:00
570990fd87 Fixes: 1) Remove unnecessary order__status="FINISHED" filter in total_orders property for accurate counts;
Extra: None;
2025-06-19 15:06:12 +03:00
82f59307bf Features: 1) Update category root logic to retrieve the first family member instead of the root node;
Fixes: None;

Extra: None;
2025-06-19 14:54:36 +03:00
529fd39ff4 Features: 1) Add top_level field to documents with preparation logic; 2) Add price field to documents with preparation logic; 3) Introduce score boosting with function_score using sales_rank field;
Fixes: 1) None;

Extra: 1) Replace direct query with boosted query in Elasticsearch `search` logic; 2) Minor refactoring for improved readability;
2025-06-19 14:45:40 +03:00
432e4bf110 Features: 1) Add SearchAsYouTypeField to name field in ProductDocument for improved search capabilities; 2) Introduce product_type and sales_rank fields to ProductDocument with preparation methods; 3) Add total_orders property to model for calculating product order count;
Fixes: 1) Enhance `raw` field in `name` with `lc` normalizer for consistent lowercase processing;

Extra: 1) Define custom `lc` normalizer in Elasticsearch settings; 2) General code formatting and minor cleanup.
2025-06-19 14:27:57 +03:00
ac39dedf94 Features: 1) Enable iframe support in Summernote configuration;
Fixes:

Extra: 1) Revert Summernote theme from "bs5" to "bs4".
2025-06-19 13:59:44 +03:00
3ea3fc1f43 Fixes: 1) Remove unnecessary inheritance from ModelAdmin in PostAdmin class;
Extra: Simplify admin class definition for blog posts.
2025-06-19 13:38:24 +03:00
77d978fecb Features: 1) Integrated django-summernote for rich text editing; 2) Added Summernote fields in PostAdmin with configuration; 3) Configured summernote settings in a separated module;
Fixes: 1) Adjusted modeltranslation admin import to use external jQuery variant; 2) Corrected optional flags for package dependencies in poetry.lock;

Extra: 1) Removed custom PostAdminForm in favor of SummernoteModelAdmin; 2) Enhanced formatting consistency in api_urls and admin files.
2025-06-19 13:15:04 +03:00
2a7ec836b0 Features: 1) Replace variables with static values for domain, backend, and frontend paths in Nginx configuration; 2) Update root paths for consistency with static and Nuxt frontend integration;
Fixes: 1) Addressed trailing variable usage causing inconsistent behavior in certificate links and path resolution; 2) Corrected alias and root paths for robots.txt and media/static assets;

Extra: Streamlined Nginx configuration for better maintainability and clarity;
2025-06-19 12:19:09 +03:00
658e799076 Features: 1) Add ordered filtering logic for filter_name methods across products, categories, and brands; 2) Enhance query processing with Case and When operations for precise ordering;
Fixes: 1) Ensure queryset returns `none()` when no valid UUIDs are found in filters;

Extra: 1) Refactor import statements for readability; 2) Clean up and consolidate redundant filter logic across multiple `filter_name` methods;
2025-06-19 10:49:56 +03:00
faaf226c8a Features: 1) Added filter_name method with Elasticsearch-based query processing for ProductFilter, CategoryFilter, and BrandFilter.
Fixes: 1) Replaced direct `name` filtering with `filter_name` method in `ProductFilter`, `CategoryFilter`, and `BrandFilter`.

Extra: 1) Imported `process_query` from `core.elasticsearch`; 2) Cleaned up unused imports and adjusted formatting.
2025-06-19 10:33:34 +03:00
0a2ef68912 Fixes: 1) Remove redundant ssl_session_tickets off directives from configuration;
Extra: Code cleanup to maintain configuration simplicity and clarity;
2025-06-19 10:21:42 +03:00
519db1fba9 Features: ;
Fixes: ;

Extra: 1) Remove redundant `ssl_session_timeout` directive from nginx configuration for clarity and consistency;
2025-06-19 10:12:23 +03:00
b53979ef35 Features: 1) Introduce reusable variable definitions for domain, backend, and frontend roots;
Fixes: None;

Extra: Simplify server configurations with consistent variable usage;
2025-06-19 10:07:45 +03:00
23bb6b6037 Features: None;
Fixes: Remove unallowed directive;
2025-06-19 10:00:28 +03:00
12dcb71d6f Features: 1) Introduce upstream blocks for backend and Prometheus servers; 2) Add new caching headers for static file locations; 3) Enhance SSL configuration with improved security headers and session settings;
Fixes: 1) Replace hardcoded paths and domains with dynamic variables for maintainability; 2) Consolidate and simplify HTTP-to-HTTPS redirects;

Extra: Improve overall formatting and alignment for better readability.
2025-06-19 09:52:47 +03:00
d72c3947d4 Features: 1) Ensure querysets return distinct results in filters;
Fixes: 1) Address potential duplication issue in querysets;

Extra:
2025-06-19 09:42:02 +03:00
d40d7d3c28 Features: 1) Ensure querysets return distinct results in filters;
Fixes: 1) Address potential duplication issue in querysets;

Extra:
2025-06-19 09:41:20 +03:00
11977ff0c6 Fixes: 1) Correct ALLOWED_HOSTS syntax by changing "app:" to "app". 2025-06-18 23:55:52 +03:00
c07803db42 Features: 1) Update ALLOWED_HOSTS to simplify and standardize host patterns.
Fixes: None;

Extra: None;
2025-06-18 23:50:16 +03:00
b15df3b72a Features: 1) Add is_digital field to ProductAdmin for filtering and display; 2) Extend admin search fields to include slug for products; 3) Introduce slug field in readonly and form layout sections for products.
Fixes: 1) Add `# type: ignore` comments for ForeignKey fields to resolve type-checking warnings in models.

Extra: 1) Refactor admin field formatting for better readability; 2) Add `# noinspection PyProtectedMember` annotation in `rebuild_slugs` management command; 3) Clean up spacing and alignment in various files.
2025-06-18 23:41:28 +03:00
30144c5b6a Features: 1) Add image field to search result types (SearchProductsResultsType, SearchCategoriesResultsType, SearchBrandsResultsType); 2) Enhance tags field for categories with DjangoFilterConnectionField; 3) Implement descriptive error handling in rebuild_slugs script.
Fixes: 1) Correct inconsistent function calls with improved attribute formatting; 2) Fix invalid key usage (`uuid` vs. `pk`) in slug rebuilding logic to prevent uniqueness errors; 3) Ensure correct `query` usage in `process_query` function calls.

Extra: Reformat code for readability by updating indentation, and breaking long function signatures and expressions into multiple lines.
2025-06-18 23:03:50 +03:00
d4ff637169 Features: 1) None;
Fixes: 1) Add missing `created` parameter handling in signal receivers for `Product` and `Category`; 2) Ensure proper formatting for long method calls and imports; 3) Adjust inline object creation to enhance readability;

Extra: Update import style and consistent formatting for readability improvements throughout `signals.py`;
2025-06-18 22:29:04 +03:00
8c906a2880 Features: 1) Add support for auto-generating slugs for Brand, Category, and Product models; 2) Extend Elasticsearch documents with slug indexing and response processing; 3) Introduce image fetching in search results.
Fixes: 1) Update slug population logic in management commands.

Extra: Refactor renderer class formatting, query processing, and formatting for readability across multiple files.
2025-06-18 22:23:14 +03:00
201c66069b Features: 1) Update dependencies including celery to 5.5.3, cryptography to 45.0.4, and click to 8.2.1; 2) Add new dependencies elasticsearch, filelock, PyJWT, and pydantic in tool.poetry.dependencies;
Fixes: 1) Remove `authlib` package as it is no longer required; 2) Replace direct version specifications with `kombu` extras (`mongodb`, `msgpack`, `redis`, `sqlalchemy`, `yaml`) for better compatibility;

Extra: 1) Update `coverage` to 7.9.1, `bandit` to 1.8.5, and `isort` to 6.0.1 in dev dependencies; 2) Cleanup and optimization of `poetry.lock` entries.
2025-06-18 21:37:35 +03:00