Commit graph

1066 commits

Author SHA1 Message Date
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
f66a6b0cb6 Features: 1) Add whole BooleanFilter to filter whole categories in CategoryFilter.
Fixes: None;

Extra: 1) Update `CategoryFilter.Meta.fields` to include `whole`; 2) Add `filter_whole_categories` method for filtering logic.
2025-06-17 09:58:18 +03:00
ddad857015 Features: 1) Implement marketological rounding method to handle psychological pricing; 2) Enhance rounding logic to consider price magnitude using logarithmic calculation;
Fixes: None;

Extra: 1) Update import to include `log10` from `math`; 2) Add detailed docstring explaining marketological rounding method logic.
2025-06-17 09:54:03 +03:00
fbdc1bc243 Features: 1) Add CategoryTagType graphene object type with fields and filters; 2) Add tags field to CategoryType for associating category tags; 3) Add category_tags field in schema for querying category tag data.
Fixes: None;

Extra: 1) Update imports to include `CategoryTag` and `CategoryTagType`.
2025-06-16 19:23:14 +03:00
fa588b59ae Features: 1) Add "level" and "order_by" fields to Category filter;
Fixes: None;

Extra: None;
2025-06-16 19:03:30 +03:00
5c27c5d5bb Features: 1) Add level filter to replace children_present in category filtering;
Fixes: 1) Remove unused `filter_children_presence` method to clean up filters;

Extra: 1) Update filters documentation and labels for clarity.
2025-06-16 19:03:12 +03:00
3f533bf9d8 Fixes: 1) Remove unnecessary camelize call in parameter handling;
Extra: Simplify return statement for improved clarity.
2025-06-16 18:38:10 +03:00
27beac4ab2 Fixes: 1) Remove unnecessary camelize call in parameter handling;
Extra: Simplify return statement for improved clarity.
2025-06-16 18:30:24 +03:00
bc4e76edde Features: 1) Add camelize utility to process cached parameters for consistent response formatting;
Fixes: ;

Extra: 1) Modify return statement to utilize camelize function;
2025-06-16 18:25:28 +03:00
916648cf72 Features: 1) Add resolvers for big_logo and small_logo in object_types.py;
Fixes: 1) Ensure logo URLs are returned as absolute paths;

Extra: No additional changes.
2025-06-16 18:20:36 +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
33e557e693 Features: 1) Add children_present BooleanFilter to CategoryFilter for filtering presence of children;
Fixes: None;

Extra: 1) Implement `filter_children_presence` method to support the new filter;
2025-06-16 18:08:31 +03:00
64f00d74c0 Fixes: 1) Remove unused metrics_path and scheme configurations from 'worker' job in Prometheus config;
Extra: None;
2025-06-16 17:38:29 +03:00
008f7574a6 Features: 1) Remove --ansi never flag from all docker compose commands for better defaults;
Fixes: 1) None;

Extra: 1) Simplify CLI options for `docker compose` commands across Unix scripts.
2025-06-16 17:25:44 +03:00
1a36a19662 Features: 1) Add new fields description, big_logo, and small_logo to Brand GraphQL object type;
Fixes: None;

Extra: None;
2025-06-16 17:22:07 +03:00
9ac562ed9c Features: *(none)*;
Fixes: 1) Add `-Force` flag to `New-Item` to overwrite environment variables if they already exist;

Extra: 1) Remove unused spinner logic from script for better readability and maintainability.
2025-06-16 17:19:44 +03:00
e3ff0bd7ec Features: 1) Add uninstall instructions for Windows and Unix in the README; 2) Expand configuration section with Dockerfile, nginx, and .env details;
Fixes: 1) n/a;

Extra: 1) Minor structure and formatting improvements in README.
2025-06-16 16:50:49 +03:00
33245134c9 Features: 1) Add detailed introductory spacing for "by WISELESS TEAM" across all scripts; 2) Update README installation instructions with step-by-step guides for environment setup and configuration;
Fixes: None;

Extra: Improve overall readability and formatting of README;
2025-06-16 16:44:20 +03:00
7d1bcaa8d4 Features: 1) Added validation to ensure scripts execute from project root with 'evibes' directory check; 2) Introduced color formatting and ASCII art for enhanced script output; 3) Added RAM, CPU, and disk space verification to installation scripts; 4) Ensured Docker images existence before service startup; 5) Unified spinner-based progress display in Windows and Unix scripts.
Fixes: 1) Replaced hardcoded paths with script-relative paths for better portability; 2) Corrected CPU and memory calculation logic for system checks; 3) Replaced inconsistent script formatting and error handling; 4) Resolved redundant cleanup steps post service startup.

Extra: Refactored and cleaned up script logic for maintainability; added WISELESS branding across scripts for consistency; enhanced terminal output and user messaging.
2025-06-16 15:40:44 +03:00
6b829331c3 Features: 1) Split docker compose build and docker compose up -d into distinct steps with updated messages; 2) Replace custom spinner in Unix script with simplified run_cmd approach;
Fixes: 1) Update final output message to align with application name (`eVibes`);

Extra: 1) Remove redundant spinner implementation in Unix script for clarity and reduction of complexity; 2) General script cleanup and minor formatting tweaks.
2025-06-16 14:35:48 +03:00
979e7fdac1 Features: 1) Add docker compose command updates for improved compatibility.
Fixes: 1) Correct variable renaming and initial assignment in `run_with_spinner`.

Extra: 1) General readability improvements and inline comment enhancements; 2) Update application name in final output message.
2025-06-16 14:28:33 +03:00
9bc982a6f1 Features: 1) Added spinner function to enhance user feedback during command execution; 2) Improved cursor visibility control with hide_cursor and show_cursor functions; 3) Refined output messages for improved clarity.
Fixes: 1) Fixed irregular Bash array formatting within SPINNER; 2) Resolved typo in COLOR array definition.

Extra: Simplified docker commands by removing redundant `docker compose` prefix and replaced with shorter aliases; enhanced code readability and formatting.
2025-06-16 14:23:09 +03:00
d8bc92ced0 Features: 1) Add error handling for subprocess execution with non-zero exit codes; 2) Update service messages for better clarity.
Fixes: 1) Ensure `run_with_spinner` handles subprocess errors gracefully by setting and resetting execution flags; 2) Prevent script termination on `docker compose down` failures.

Extra: 1) Improve inline comments and messaging; 2) Minor adjustments to enhance script maintainability.
2025-06-16 14:13:40 +03:00
e7ba7dde0f Features: 1) Update reboot script to improve readability in service status messages; 2) Specify application name as "eVibes" in final confirmation message;
Fixes: 1) Standardize spacing in spinner commands for consistency; 2) Correct alignment of service lifecycle commands;

Extra: Adjust wording for better clarity and uniformity in reboot.sh script.
2025-06-16 14:09:37 +03:00
5c12391f61 Features: reboot.sh now has +x 2025-06-16 14:05:57 +03:00
fb4eb79427 Features: 1) Add reboot scripts for Windows (PowerShell) and Unix (Bash) to streamline service management and data cleanup;
Fixes: None;

Extra: 1) Add spinner animations and color-coded output for improved user feedback.
2025-06-16 14:02:30 +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
a4e586719c Features: I18N 2025-06-16 11:07:34 +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
f18c456419 Features: 1) Add collection of environment variables into a hashtable for improved handling; 2) Format and display all loaded environment variables as a single string output after processing;
Fixes: 1) Suppress unnecessary output from New-Item calls to improve script clarity;

Extra: 1) Minor refactor to ensure sorted and formatted output of environment variables; 2) Add consistent structure and efficiency improvements to the script;
2025-06-16 09:58:31 +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
98993a721e Features: 1) Add validation to ensure category_uuid is present when using include_subcategories flag;
Fixes: 1) Add missing import for `BadRequest` from `django.core.exceptions`;

Extra: 1) Update placeholder method `filter_include_flag` with proper implementation;
2025-06-16 09:42:41 +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
4f010da204 Fixes: 1) Correct redundant filtering in CaseInsensitiveListFilter by returning pre-filtered queryset.
Extra: 1) Minor adjustment to debug logging for better clarity.
2025-06-16 09:25:34 +03:00
2eaf3b4267 Fixes: 1) Add debug logging for CaseInsensitiveListFilter query and queryset; 2025-06-16 09:21:06 +03:00
1804d26738 Fixes: CaseInsensitiveListFilter debugs 2025-06-16 09:12:27 +03:00
1134fdf90a Fixes: CaseInsensitiveListFilter 2025-06-16 09:07:31 +03:00
12971e88e1 Fixes: CategoryAdmin 2025-06-14 09:26:15 +03:00
fd97d8a072 Fixes: AddressViewSet 2025-06-12 09:18:20 +03:00
52ea4c3212 Fixes: settings data types 2025-06-11 11:23:54 +03:00
e39d13f651 Fixes: activate for UserViewSet 2025-06-11 03:02:43 +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
b4b6c7cacc Fixes: get_ancestors -> get_descendants 2025-06-10 08:25:40 +03:00
2d1092eb7c Fixes: get_descendants -> get_ancestors 2025-06-10 08:17:15 +03:00
e7836ebf90 Fixes: add unregistered addresses fix 2025-06-10 06:30:45 +03:00
8a00cd2bff Features: CategoryTag admin 2025-06-10 06:25:52 +03:00
3b9b69a409 Features:
1) CategoryTag migration
2) docker-compose.yml healthchecks
2025-06-10 06:08:50 +03:00