Implement a new aggregation pipeline in the statistics module that groups export events by month and user ID, computing total exports per user per month. The change introduces a `getMonthlyExportStats` function that queries the exports collection with a $match stage filtering on the last 12 months, followed by $group on year-month and userId, and a $sort stage for chronological ordering. This enables the dashboard to display per-user export volume trends over time.
- Implemented a new statistics module to track export operations
- Added counters for total exports, unique users, and export types
- Integrated statistics logging into the existing export handler
The README now includes a high-level description of the project's purpose, a prerequisites section listing required tools, and step-by-step installation and configuration commands for new contributors.
The README now includes a high-level description of the project's purpose, a prerequisites section listing required tools, and step-by-step installation commands for cloning, dependency setup, and running the application locally.
Adds a new BotManager class that maintains a mutable list of active bots, allowing bots to be added or removed at runtime without restarting the application. Includes thread-safe operations for concurrent access and a new API endpoint to query the current bot roster.
The algorithm analyzes user interaction patterns to identify anomalous behavior, flagging accounts with irregular login times, rapid-fire actions, or unusual data access sequences. It integrates with the existing monitoring pipeline to generate alerts for security review.
The polling interval for the metrics collection service has been adjusted from 30 seconds to 60 seconds to reduce system load and network traffic while maintaining adequate monitoring granularity.
Implement a new aggregation pipeline that computes total export volume per month, grouped by product category and destination region. The change introduces a `monthly_export_stats` collection updated via a scheduled cron job, with indexes on `year_month` and `category` for efficient querying. The statistics module now exposes a `/api/stats/exports/monthly` endpoint returning paginated results sorted by descending volume.
- Implemented a new statistics module to record and monitor export operations
- Added tracking for export timestamps, file sizes, and user identifiers
- Updated export handler to log each completed export with relevant metadata
The README now includes a brief overview of the project's purpose and
step-by-step guidance for local development setup, including
prerequisites and installation commands.
Implement a new export statistics module that records and aggregates metrics for user data export operations, including timestamps, file sizes, and export types. This enables monitoring of export frequency and data volume across the platform.
The export statistics module now includes a new monthly aggregation function that calculates user activity metrics such as total exports, unique users, and average export size per month. This data is stored in a dedicated statistics table and exposed via a new API endpoint for the admin dashboard.
Implement a new aggregation pipeline in the statistics module that groups export events by month and user ID, enabling generation of monthly activity reports for the admin dashboard. The change includes a new `getMonthlyExportStats` function that queries the exports collection with a date range filter and returns aggregated counts per user.
The commit introduces a new image file intended for use as a default avatar when a user has not uploaded a custom profile picture. This ensures visual consistency across the user interface by providing a generic fallback graphic.
The previous thread pool implementation caused GIL contention under heavy CPU workloads. This change swaps concurrent.futures.ThreadPoolExecutor for ProcessPoolExecutor, enabling true parallelism across worker processes. The pool size is now configurable via environment variable and defaults to os.cpu_count(). Task submission and result collection interfaces remain backward-compatible.
Implement a new export statistics module that aggregates monthly export data including total revenue, shipment counts, and per-category breakdowns. The module introduces a scheduled task that runs on the 1st of each month to compute and store statistics from the orders and shipments tables, enabling historical trend analysis and reporting.
Implement a new statistics module that aggregates and stores monthly export counts per user, enabling detailed activity reporting and usage monitoring. The change introduces a dedicated database table for export statistics, a background job to compute monthly aggregates from the exports log, and an API endpoint to retrieve per-user export statistics for the past 12 months.