Commit Graph

102 Commits

Author SHA1 Message Date
57ab3cd0e9 perf: replace linear search with binary search in user lookup handler
The user lookup endpoint previously used a linear scan over the user list,
which degraded performance under high concurrency. This change replaces
the search algorithm with a binary search on the sorted user ID array,
reducing average lookup time from O(n) to O(log n). The user list is
maintained in sorted order via insertion sort on new user registration.
2025-01-09 23:12:24 +00:00
99cf0c611a fix: reduce request processing speed by adding artificial delay in handler 2025-01-09 23:03:24 +00:00
bot
b754502603 feat: add monthly export statistics aggregation for user activity reports
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 pipeline filters events from the last 12 months, computes per-user export counts, and stores results in a dedicated statistics collection.
2025-01-09 23:01:42 +00:00
59df5f7c8a chore: remove deprecated bot configuration files and streamline bot initialization 2025-01-09 22:59:56 +00:00
bot
faf69b87b7 feat: add monthly export statistics aggregation for user activity reports
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 administrators. The change includes a new `getMonthlyExportStats` function that queries the exports collection with a date range filter and returns aggregated counts per user.
2025-01-06 23:42:46 +00:00
8bad800fde fix: resolve merge conflict in user authentication module by consolidating session token validation logic 2025-01-06 23:41:25 +00:00
bot
3dfadc41ef feat: add monthly export statistics aggregation for user activity reports
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.
2025-01-06 18:15:22 +00:00
75a52c35e4 fix: correct misspelling of 'ragnar' to 'ragnar' in user-facing mention 2025-01-06 18:14:04 +00:00
bot
f505c5d863 chore: update export statistics data with latest quarterly figures 2025-01-05 23:00:15 +00:00
d95e35a897 fix: correct text and comment filter logic to handle edge cases in content sanitization 2025-01-05 22:54:06 +00:00
bot
8d3c27d8e9 feat: add export statistics tracking for user data downloads
- 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
2024-12-19 15:21:38 +00:00
bot
9a06b8dff9 chore: update export statistics with latest data from production database 2024-12-19 15:11:15 +00:00
bot
e3d66b1184 chore: update export statistics with latest data from production database 2024-12-19 12:03:47 +00:00
e62701c28c feat: implement dynamic bot list with runtime add/remove support
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.
2024-12-19 12:02:24 +00:00
bot
83c33208ac chore: update export statistics data with latest quarterly figures 2024-12-17 17:04:31 +00:00
0f376243f7 feat: implement suspicious activity detection algorithm for user behavior analysis
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.
2024-12-17 17:02:38 +00:00
7feb2fb7be fix: correct authentication flow to resolve login failure on invalid credentials 2024-12-17 16:33:09 +00:00
bot
59cd3fd240 chore: update export statistics with latest data from production database 2024-12-17 13:48:30 +00:00
051f0fbbcc fix: remove redundant await from async function call in user handler 2024-12-17 13:47:11 +00:00
63953ba9f3 feat: update polling interval from 30s to 60s in metrics collector
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.
2024-12-17 12:58:20 +00:00
bee8353b13 fix: replace break statement with alternative control flow in loop logic 2024-12-17 12:57:31 +00:00
76a47102e7 fix: correct off-by-one error in pagination offset calculation for user list endpoint 2024-12-17 12:45:41 +00:00
bot
c854ba2cf1 feat: add export statistics tracking for user data downloads 2024-12-17 12:10:02 +00:00
a1945f7442 chore: adjust log level from info to debug in application bootstrap 2024-12-17 12:08:00 +00:00
bot
cc30ec8ebd feat: add monthly export volume tracking to statistics module
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.
2024-12-17 12:05:07 +00:00
81f5cd09d1 feat: add structured logging with json output and configurable log levels 2024-12-17 12:03:41 +00:00
bot
5c16566822 chore: update export statistics with latest data and formatting adjustments 2024-12-17 11:32:46 +00:00
bot
d6d4e0de2f feat: add export statistics tracking for user data downloads
- 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
2024-12-17 11:23:05 +00:00
bot
c6398461ea feat: add export statistics tracking for user data downloads
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.
2024-12-17 11:02:26 +00:00
bot
bb9a08622b feat: add monthly export statistics for user activity dashboard
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.
2024-12-17 10:53:34 +00:00
bot
932a44dcfb feat: add monthly export statistics aggregation for user activity reports
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.
2024-12-17 10:49:35 +00:00
bot
7b961d9f91 chore: update export statistics data to reflect latest quarterly figures 2024-12-16 18:45:13 +00:00
861bb6ac4a feat: add structured logging for user authentication flow in login handler 2024-12-16 18:43:47 +00:00
bot
bbb4d81df8 chore: add export statistics for total, successful, and failed operations with timestamps 2024-12-15 00:36:51 +00:00
f1bab721f2 feat: add new bot implementations for automated task processing 2024-12-15 00:35:03 +00:00
b0c6fce03f fix: correct broken link in user profile avatar component 2024-12-14 05:34:40 +00:00
2f325e1448 refactor: replace thread-based pool with multiprocessing ProcessPoolExecutor for CPU-bound tasks
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.
2024-12-14 05:33:04 +00:00
9177f9b408 chore: update package dependencies to latest compatible versions 2024-12-14 05:22:59 +00:00
6d339a7f0b feat: add three new trading bots with configurable risk profiles and asset filters 2024-12-14 05:22:06 +00:00
45919f0ec4 feat: add user_id index to profiles table for faster lookups
The profiles table previously lacked an index on the user_id column, causing slow query performance when filtering by user. This change adds a B-tree index on user_id to optimize read operations in the user profile retrieval endpoint.
2024-12-13 19:53:44 +00:00
bot
27c6b90543 feat: add export statistics tracking for user data downloads 2024-12-13 18:59:27 +00:00
b4226478e5 chore: remove dead bot entries from the configuration file 2024-12-13 18:56:29 +00:00
d94b9b8a68 chore: apply consistent indentation and whitespace formatting across all source files 2024-12-13 18:55:23 +00:00
f0cb8f9588 feat: add initial bot implementations for chat interaction system 2024-12-13 18:54:20 +00:00
418afce510 chore: add explicit rule forbidding generic boilerplate phrases in commit messages 2024-12-10 13:56:24 +00:00
b4ebd78347 feat: add initial commit message with placeholder text for project setup 2024-12-10 09:36:38 +00:00
c7e11fb711 feat: increase rant count from 1 to 2 for verification testing 2024-12-10 04:07:05 +00:00
3d66fa146c chore: remove trailing whitespace from README.md line 42 2024-12-10 03:17:55 +00:00
0c5fb4c3a6 fix: correct flagged checker logic to handle edge case for empty input arrays 2024-12-10 03:17:21 +00:00
f9450902e1 chore: merge feature branch into main with resolved conflicts 2024-12-09 21:24:29 +00:00