Commit graph

60 commits

Author SHA1 Message Date
c07803db42 Features: 1) Update ALLOWED_HOSTS to simplify and standardize host patterns.
Fixes: None;

Extra: None;
2025-06-18 23:50:16 +03:00
d616d2e18b Features: 1) Improved support for nested multi-line typing hints across numerous functions; 2) Refactored variable assignments for enhanced readability within bulk_add_products and bulk_remove_products; 3) Updated token-related test methods to ensure consistent styling;
Fixes: 1) Removed unused imports including `Order` from `payments/models.py` and `health_check.contrib.redis` from settings; 2) Fixed inconsistent formatting and parameter alignment in method definitions; 3) Corrected type annotations and adjusted verbose text handling;

Extra: Cleaned up formatting in docstrings, comments, and JSON field help text across multiple files for better code style compliance and readability.
2025-06-18 16:55:49 +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
a33be30098 Features: 1) Added vendor, product tag, category tag models and metadata; 2) Introduced proper noinspection comments for Mypy warnings; 3) Extended Markdown linting rules.
Fixes: 1) Corrected `ForeignKey` type assertions across models; 2) Resolved typos and formatting inconsistencies in `.env` and README; 3) Fixed explicit boolean checks in user manager methods.

Extra: Updated type hints in multiple models, serializers, and views.
2025-06-18 15:58:49 +03:00
328ccaa615 Features: 1) 2.8.9 update
Fixes: 1) wtf go read diff;

Extra: ???
2025-06-18 15:05:58 +03:00
6ee3870ab0 Features: 1) Add a management command to fix product stock prices; 2) Introduce 'products' field to CategoryType in GraphQL schema to fetch products associated with a category; 3) Enable GraphQL resolvers to utilize type hinting for better clarity.
Fixes: 1) Correct multiple unaligned code blocks in various Python scripts and GraphQL resolvers; 2) Improve condition formatting for readability in mutations and queries; 3) Resolve missing related_name in product model.

Extra: Simplify and refactor Windows scripts removing legacy spinner logic for clarity and better user feedback; adjust spacing, comments, and formatting across various files; update imports for unused QuerySet.
2025-06-17 11:13:11 +03:00
576c7618e7 Fixes: 1) Correct typo in settings key from "ADVERTISIMENT_DATA" to "ADVERTISEMENT_DATA";
Extra: None;
2025-06-16 18:16:19 +03:00
0da8bd77b0 Features: 1) Add "required: False" option to JSON custom field;
Fixes: None;

Extra: None;
2025-06-16 12:11:26 +03:00
c950ce04b9 Features: 1) Add support for custom JSON field in CONSTANCE_ADDITIONAL_FIELDS.
Fixes: 1) Correct placement of "constance" in `INSTALLED_APPS`.

Extra: 1) Minor comment formatting adjustment in `CONSTANCE_BACKEND` declaration.
2025-06-16 12:10:04 +03:00
1cad1aead8 Features: 1) Update ADVERTISEMENT_DATA and ANALYTICS_DATA definitions to use raw environment string and type "json";
Fixes: 1) Remove unused `json` import;

Extra: 1) Minor adjustment to code formatting in `constance.py`.
2025-06-16 11:13:57 +03:00
7ba9afda6a Features: 1) Add analytics_data and advertisement_data fields to company configuration in GraphQL schema;
Fixes: 1) Correct spelling error in `CONSTANCE` configuration key from `ADVERTISIMENT_DATA` to `ADVERTISEMENT_DATA`;

Extra: 1) Update string translations in `constance.py`.
2025-06-16 10:42:39 +03:00
0fa8cba05e Features: 1) Add ADVERTISIMENT_DATA and ANALYTICS_DATA to CONSTANCE_CONFIG with default values and descriptions; 2) Integrate translation functionality into CONSTANCE_CONFIG descriptions using _(); 3) Expand EXPOSABLE_KEYS to include new config fields.
Fixes: 1) Replace redundant or missing translation calls in configuration values; 2) Correct oversight in description consistency for existing fields.

Extra: Refactor `CONSTANCE_CONFIG` structure for improved readability using multi-line formatting where necessary; clean up imports to include `gettext_lazy` and `json`.
2025-06-16 10:40:21 +03:00
52ea4c3212 Fixes: settings data types 2025-06-11 11:23:54 +03:00
1e8d053ab6 Features: 1) OS-specific scripts for deployments.
2) Healthcheck improvements.
Fixes: merge_recently_viewed for UserViewSet
2025-06-11 02:54:46 +03:00
3b9b69a409 Features:
1) CategoryTag migration
2) docker-compose.yml healthchecks
2025-06-10 06:08:50 +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
f97d84ae58 Fixes: no_underscore_before_number to False 2025-06-08 14:58:22 +03:00
867c4d919b 2.8.0 released 2025-06-05 20:47:30 +03:00
39f5d19f9b Fixes: fix ALLOWED_HOSTS 2025-06-05 19:16:50 +03:00
546234c68c Fixes: fix ALLOWED_HOSTS for prometheus container 2025-06-05 18:11:00 +03:00
520b8ee8f7 Fixes: fix incorrect imports 2025-06-05 18:01:00 +03:00
3c21f9f386 Fixes: tryout without command code aligning 2025-06-05 17:45:15 +03:00
fb61383b2d Fixes: try without prometheus backends 2025-06-05 17:28:56 +03:00
cbdb6fe845 Fixes: set sentry's debug to false to streamline logs 2025-06-05 16:52:46 +03:00
572e6a7e9c Fixes: django_prometheus.cache.backends.redis.RedisCache 2025-06-05 16:35:53 +03:00
e800bbab15 Features: Prometheus addons 2025-06-05 16:02:32 +03:00
a2d38cbdfb Features: Prometheus added 2025-06-05 15:16:59 +03:00
d3e9775d54 Features: None;
Fixes: None;

Extra: 1) Bump version to 2.7.1 in pyproject.toml and settings/base.py.
2025-05-29 22:24:21 +03:00
a28ce41394 Features: ;
Fixes: 1) Update environment variable references for STATIC_URL and MEDIA_URL to use 'EVIBES_BASE_DOMAIN';

Extra: ;
2025-05-27 10:56:49 +03:00
afcf8c9bd2 Features: None;
Fixes: 1) Update environment variable names to use 'EVIBES_' prefix for consistency;

Extra: None;
2025-05-26 17:40:34 +03:00
d86a6ed3c8 RUFF 2025-05-26 16:12:59 +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
d001e238f8 2.7.0 2025-05-20 08:56:33 +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
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
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
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
ba9e5080bc Features: 1) Add error handlers for Attribute, AttributeGroup, and AttributeValue DoesNotExist exceptions;
Fixes: 1) None;

Extra: None;
2025-05-13 05:55:49 +03:00
ea0d14bfc8 Features: 1) Add "Stock.DoesNotExist" and "ProductImage.DoesNotExist" to ignored exceptions in base settings;
Fixes: 1) Ensure auto_resolver_helper returns only the created or fetched instance by accessing tuple index [0];

Extra: None;
2025-05-13 03:15:15 +03:00
2e9659a562 Features: 1) Update project version to 2.6.1 in pyproject.toml and settings.
Fixes: none;

Extra: none;
2025-05-13 03:03:26 +03:00
2d67b69b42 Features: ;
Fixes: ;

Extra: 1) Update environment variable values to "development" and "production" for clarity;
2025-05-13 02:53:15 +03:00
4a97779139 Features: 1) Extend ignored errors in Sentry when DEBUG mode is enabled;
Fixes: None;

Extra: 1) Refactor ignored errors list to conditionally include additional exceptions in DEBUG mode;
2025-05-13 02:50:27 +03:00
37c0867ab7 Features: 1) Add support for defaults in get_or_create for auto_resolver_helper; 2) Modularize Sentry ignore_errors configuration with a dedicated variable;
Fixes: None;

Extra: 1) Minor code refactor to streamline `ignore_errors` handling in Sentry setup;
2025-05-13 02:48:56 +03:00
78db5e1f96 Features: ;
Fixes: ;

Extra: 1) Simplify ignore_errors list by consolidating NotFoundErrorHandler entries.
2025-05-13 02:21:07 +03:00
87c355474c Features: 1) Enable Elasticsearch DSL autosync and switch to CelerySignalProcessor; 2) Extract common logic into auto_resolver_helper for resolving brands and categories; 3) Add conditional CACHEOPS_ENABLED based on sys arguments;
Fixes: 1) Add missing sys import in caches.py; 2) Ensure CACHEOPS_REDIS is only declared when CACHEOPS_ENABLED is True;

Extra: 1) Formatting and cleanup for readability in settings and auto-resolve methods; 2) Rearrange cacheops import in base settings;
2025-05-13 02:09:10 +03:00
03eb6d03ca Features: 1) Replace hardcoded API version with dynamic EVIBES_VERSION; 2) Enhance Sentry SDK configuration to include Celery, OpenTelemetry, and Redis integration;
Fixes: 1) Correct file formatting for consistency in poetry.lock;

Extra: Perform general cleanup of file structure and hash formatting in poetry.lock for better readability;
2025-05-12 10:09:30 +03:00
ddeafdbd53 Features: 1) Replace CelerySignalProcessor with RealTimeSignalProcessor for Elasticsearch signal processing;
Fixes: None;

Extra: 1) Update indentation for improved readability; 2) Set ELASTICSEARCH_DSL_AUTOSYNC and ELASTICSEARCH_DSL_PARALLEL to False for configuration change;
2025-05-11 22:52:45 +03:00