Commit graph

37 commits

Author SHA1 Message Date
304608adc4 feat(elasticsearch): add scripts for cleaning Elasticsearch data
Introduce `delete-elasticsearch` scripts for both Windows and Unix to stop, remove containers, and delete data volumes. Updated `Makefile` to include this command for easier management. Upgraded `django-elasticsearch-dsl` and related dependencies to their latest versions for compatibility.

Breaking change: Updated Elasticsearch image and configuration to enable xpack security. Ensure environment variables are properly set.
2026-03-03 01:44:51 +03:00
c3b4637044 feat(uninstall): enhance volume removal for additional data types
add handling for postgres-data, redis-data, static-data, and media-data volumes in both Windows and Unix uninstall scripts. Ensures errors are logged if volume removal fails.
2026-03-02 00:15:36 +03:00
adec5503b2 feat(core/auth): enable encryption for sensitive fields and token handling
Add encryption for user PII fields (phone number, name, attributes) and address fields to enhance data security. Introduced timestamped activation tokens for improved validation. Included migrations to encrypt existing plaintext data.

Refactored GraphQL settings to limit query depth and optionally disable introspection for enhanced API defense. Implemented throttling to safeguard API rates.

Improved Dockerfiles for better user management and restored media migration tools for smooth instance upgrades.
2026-03-02 00:11:57 +03:00
7efc19e081 feat(monitoring): automate Prometheus web config generation
Remove manual password hashing and web.yml setup in favor of automated generation. Add scripts for both Unix and Windows to create `monitoring/web.yml` using credentials from `.env`.

This improves maintainability and reduces manual intervention during setup and configuration.
2026-02-22 00:17:55 +03:00
72834f01f6 feat(configuration): add support for configurable language code
allow setting `SCHON_LANGUAGE_CODE` via environment files for both Windows and Unix. Default remains `en-gb`. Updated `LANGUAGE_CODE` in settings to use the new environment variable for increased flexibility.
2026-02-21 20:06:41 +03:00
a71e1cc29e refactor(configurations): update domain references to wiseless.xyz
Update all configurations, fixtures, scripts, and documentation to replace occurrences of `schon.fureunoir.com` with the new `schon.wiseless.xyz` domain.

This ensures consistency across the project and reflects the updated domain structure.
2026-02-15 01:39:15 +03:00
f3260686cf feat(fixtures): add demo.json for gemstone and jewelry showcase
Includes categories, brands, attributes, products, tags, and vendor/demo user data for demonstration purposes.
2026-02-05 15:40:57 +03:00
0f408fe5de fix(starter.sh): conditionally clear terminal in interactive mode
Ensure the `clear` command runs only in interactive shells with a valid terminal, preventing unintended behavior in non-interactive environments.
2026-01-30 10:29:55 +03:00
b5e303e7a5 feat(email): add multilingual support and image handling to email templates
Introduce `EmailImage`, `EmailTemplate`, and `EmailCampaign` models for enhanced email management, including campaign tracking and one-click unsubscribe tokens. Added multilingual fields for email templates and improved accessibility with image alt text. Also adapted `Post` content fields to support translations.
2026-01-26 15:35:30 +03:00
39b841fcb2 2026.1 2026-01-25 23:16:38 +03:00
42b40627de Features: 1) Introduce CLI utility lessy.py to streamline project management tasks (e.g., install, run, restart, test); 2) Add Unix and Windows script commands for make-messages and compile-messages to improve translation workflow; 3) Include shared utility libraries (utils.sh, utils.ps1) for reusable functions across scripts.
Fixes: 1) Remove obsolete `reboot` scripts for Unix and Windows to prevent redundancy; 2) Update Windows `test.ps1` to handle omitted coverage patterns and improve error feedback.

Extra: 1) Refactor Windows scripts (`make-messages.ps1`, `compile-messages.ps1`, `backup.ps1`) to use shared utilities for better consistency and output formatting; 2) Add spinner-based progress indicators to enhance user experience in interactive environments.
2026-01-04 19:18:27 +03:00
42392307a4 Features: 1) Improve handling of user prompts by consolidating read and printf usage;
Fixes: 1) Remove unnecessary else blocks for default values in prompt functions; 2) Ensure proper initialization of `response` variable to avoid undefined behavior;

Extra: 1) Use consistent `printf` formatting across `prompt_default` and `prompt_autogen` functions for cleaner output; 2) Minor indentation and code cleanup.
2025-12-08 22:38:20 +03:00
d6e308a10f Features: 1) Add tty check for all interactive prompts to support non-interactive environments; 2) Provide fallback behavior for non-tty sessions.
Fixes: 1) Ensure prompts do not stall in non-interactive sessions.

Extra: 1) Minor adjustments to prompt messages for better clarity; 2) Refactor prompt logic for improved robustness.
2025-12-03 14:45:12 +03:00
bf6b9f4424 Features: 1) Add backup_task to manage database and media backups; 2) Introduce periodic scheduling for backup_task via Celery Beat;
Fixes: 1) Apply `--omit` filter for test coverage reports to exclude unnecessary files; 2) Replace `services_data` volume mounts with named Docker volumes for consistency and cleanup (e.g., `postgres-data`, `redis-data`);

Extra: 1) Remove `services_data` from `.gitignore`, Docker-related cleanup in uninstall scripts; 2) Simplified related files removal scripts for Unix and Windows; 3) Minor adjustments in documentation comments.
2025-11-13 17:14:00 +03:00
943aa02cd3 Features: 1) Add test cases for DRF and GraphQL views in core, blog, payments, and vibes_auth applications; 2) Implement reusable GraphQL testing utilities in test classes; 3) Introduce test configuration scripts for Windows and Unix environments.
Fixes: 1) Correct entrypoint scripts by removing redundant `python` reference in `uv run` commands; 2) Resolve incorrect imports and adjust class renaming in vibes_auth tests; 3) Address typing errors and minor omissions in existing code.

Extra: 1) Improve formatting in settings and middleware files; 2) Update messaging test class names for clarity; 3) Cleanup unused imports and extra whitespaces, ensuring cleaner codebase.
2025-11-13 16:42:04 +03:00
ee25bb67f0 Features: 1) Introduced STOREFRONT_DOMAIN in settings as a replacement for FRONTEND_DOMAIN;
Fixes: 1) Updated email templates to use `STOREFRONT_DOMAIN` instead of `FRONTEND_DOMAIN`; 2) Added a missing import for `settings` in emailing utilities;

Extra: 1) Removed unused configuration keys `FRONTEND_DOMAIN` and `BASE_DOMAIN`; 2) Cleaned up obsolete imports and formatting in serializers; 3) Adjusted environment file generation scripts to use `STOREFRONT_DOMAIN`.
2025-11-11 16:12:48 +03:00
33362d8340 2025.4 PREVIEW 2025-11-08 04:38:09 +03:00
0dc3daaa4f Features: 1) Add fallback for missing jq in image verification; 2) Enhance verbosity control for management commands in run.sh; 3) Update generate-environment-file.sh to use consistent variable names and handle CORS origins dynamically.
Fixes: 1) Correct `.env` export script to handle sorted variables without associative arrays; 2) Fix incomplete `.env` output in `generate-environment-file.sh`.

Extra: 1) Improve code readability and maintainability across shell scripts; 2) Standardize echo statements and reduce excessive formatting.
2025-10-28 15:31:26 +03:00
ae1d16edda Features: Move from poetry to uv.
Fixes: Removed naive datetime warning

Extra: Correct import in elasticsearch submodule.
2025-10-25 02:18:41 +03:00
0a375ad0d1 Features: 1) Add brand_name and category_name fields to ProductDocument for enhanced search indexing; 2) Introduce expanded ICU-based analyzers for multi-language support, including Arabic, Indic, and CJK; 3) Enable search enhancements with revised weights in SMART_FIELDS and additional language-specific query mappings.
Fixes: 1) Correct typo in total_orders field name in ProductDocument; 2) Replace outdated query_lc analyzer with icu_query for consistent Unicode handling; 3) Remove unnecessary get_object_or_404 calls to optimize batch query performance.

Extra: Refactor process_query function with clearer structure and batch-loading logic; streamline brand and category field handling across documents; improve reboot scripts to rebuild search index automatically.
2025-08-20 05:36:55 +03:00
877f71f614 Features: 1) Add support for multiple database backup types (SFTP, FTP) with dynamic configuration;
Fixes: 1) Correct formatting issue in `0036_vendor_b2b_auth_token_vendor_users` migration file;

Extra: 1) Update environment file generation scripts to accommodate new DBBACKUP_TYPE configuration; 2) Add import for `ImproperlyConfigured` in `dbbackup.py`.
2025-08-05 20:40:27 +03:00
946a3e3de6 Features: 1) Added TIME_ZONE environment variable to docker-compose.yml, Unix, and Windows environment file generation scripts for improved time zone configuration;
Fixes: 1) None;

Extra: 1) Removed redundant `[tool.yapf]` section in `pyproject.toml` to clean up formatting; 2) Adjusted spacing for better readability in Windows script prompts;
2025-07-02 01:17:17 +03:00
e8f2b75de7 Features: 1) Add --clear option to collectstatic commands in Unix and Windows scripts for efficient static file cleanup;
Fixes: None;

Extra: None;
2025-07-01 14:18:26 +03:00
b92e7e28f1 Features: 1) Add new email content translations for ru_RU, zh_Hans, and ro_RO locales; 2) Update "balance deposit" and general email-related translations across multiple languages;
Fixes: 1) Correct inconsistent formatting in translation strings; 2) Fix placeholders in email templates for better accuracy;

Extra: Update `.gitignore` to include `.env` file exclusion.
2025-06-22 20:18:19 +03:00
f090b2ddc9 Features: 1) Add verbosity option for manage.py migrate and collectstatic commands in reboot scripts;
Fixes: 1) Remove unused sniffer_timeout in Elasticsearch settings;

Extra: 1) Minor adjustments to improve script output clarity.
2025-06-22 01:06:20 +03:00
328ccaa615 Features: 1) 2.8.9 update
Fixes: 1) wtf go read diff;

Extra: ???
2025-06-18 15:05:58 +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
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
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