Commit Graph

51 Commits

Author SHA1 Message Date
vitor-aignosi
2efad30304 SIENTIAPDE-1174
SIENTIAPDE-1174 Update dependencies, modify image tag, and enhance metrics tracking in various activities for improved observability and performance.
2025-07-31 12:52:07 -03:00
vitor-aignosi
b68b3b403b SIENTIAPDE-1151
SIENTIAPDE-1151 Filter data in Gates activity based on model tags to enhance data accuracy.
2025-07-21 12:03:03 -03:00
vitor-aignosi
aacd52b5c7 SIENTIAPDE-1151
Add debug logging for collected data in MongoDB activity
2025-07-21 11:12:39 -03:00
vitor-aignosi
b230ad614e SIENTIAPDE-1151
Update Redis set method to use a TTL of 5 hours for improved data retention.
2025-07-18 16:19:06 -03:00
vitor-aignosi
95defccbf6 SIENTIAPDE-1163
Refactor notification handler imports across multiple files to use CoreNotificationHandler instead of NotificationHandler for consistency and clarity.
2025-07-16 08:59:21 -03:00
vitor-aignosi
1404eefdae SIENTIAPDE-1110
Update Gates activity to extract policy from filter configuration, improving clarity in filter handling.
2025-07-07 14:18:40 -03:00
vitor-aignosi
f203ff829d SIENTIAPDE-1110
SIENTIAPDE-1110 Add store_data_package method to Redis activity for debug data storage functionality.
2025-07-07 10:57:52 -03:00
vitor-aignosi
0b77a7bc7e SIENTIAPDE-1110
Implement store_data_package method in Redis activity for debug data storage. Update CoreScouter workflow to conditionally call store_data_package based on debug flag. Enhance tests for store_data_package functionality and error handling.
2025-07-07 10:03:08 -03:00
vitor-aignosi
08240efc8b SIENTIAPDE-1110
Enhance Gates and Redis activities by adding metadata parameter to apply_aggregation and notification methods. Refactor notification handling to use send_notification for improved consistency. Update tests to reflect changes in notification method calls and ensure proper functionality with new metadata integration.
2025-07-04 11:01:20 -03:00
vitor-aignosi
d08d1b1337 SIENTIAPDE-1110
Refactor Activities class to remove Kafka and Druid dependencies, simplifying initialization. Update values.yaml to set replica count to 1 for reduced resource usage. Adjust Redis activity to set TTL to None for better data retention. Remove unused Kafka and Druid activity files and their associated tests, streamlining the codebase.
2025-07-03 16:25:55 -03:00
vitor-aignosi
208491498f SIENTIAPDE-1110
Update Druid configuration in values.yaml to change port from 8081 to 8888. Refactor pydruid.py to use druid_engine for SQLAlchemy connections, enhancing clarity and consistency in data loading operations.
2025-07-02 10:35:53 -03:00
vitor-aignosi
6caec63977 SIENTIAPDE-1110
Refactor last data timestamp handling in Druid activity to use string format for default value, improving consistency in date representation.
2025-07-02 10:24:35 -03:00
vitor-aignosi
3bbc6a6a79 SIENTIAPDE-1110
Update Druid activity to handle None values for last data timestamp, ensuring default timestamp is set to epoch start. Enhance data loading debug logging for improved traceability.
2025-07-02 10:21:55 -03:00
vitor-aignosi
430fe04202 SIENTIAPDE-1110
Enhance Druid activity by adding configuration for Druid host and port in values.yaml. Refactor data loading logic to utilize SQLAlchemy for querying Druid, improving query efficiency and readability. Update timestamp handling to streamline data retrieval process.
2025-07-02 10:19:04 -03:00
vitor-aignosi
5decb018d2 SIENTIAPDE-1110 2025-07-02 09:27:14 -03:00
vitor-aignosi
879c1fdc49 SIENTIAPDE-1110
Add logging for data loading in Druid activity, enhancing traceability of data retrieval intervals.
2025-07-02 09:27:02 -03:00
vitor-aignosi
c3c8e1b766 SIENTIAPDE-1110
Update Druid activity to handle None values for last data timestamp, ensuring robust date parsing. Bump image tag in values.yaml to 0.2.3 for version consistency.
2025-07-02 09:25:46 -03:00
vitor-aignosi
332612ac84 SIENTIAPDE-1110
Integrate Druid activity into the Activities class, adding support for Druid configuration and initialization. Update worker and connectors configuration to accommodate Druid, enhancing data processing capabilities.
2025-07-02 09:02:59 -03:00
vitor-aignosi
91f2d8610b SIENTIAPDE-1110
Update MongoDB activity to format 'inserted_at' timestamps as strings in the format 'YYYY-MM-DD HH:MM:SS.ssssss', improving readability of timestamp data.
2025-07-01 16:09:46 -03:00
vitor-aignosi
defac7b1f0 SIENTIAPDE-1110
Update Redis activity to include a specific prefix for the last data timestamp key, enhancing clarity in key management.
2025-07-01 16:06:52 -03:00
vitor-aignosi
82ce1852e3 SIENTIAPDE-1110
Add debug logging for data filter in MongoDB activity to enhance traceability of filtering criteria.
2025-07-01 16:03:40 -03:00
vitor-aignosi
b718801290 SIENTIAPDE-1110
Update get_last_data_timestamp method in Redis activity to return a string or None, improving type clarity for timestamp retrieval.
2025-07-01 15:53:47 -03:00
vitor-aignosi
337a54217c SIENTIAPDE-1110
Fix aggregation function key in Gates activity from 'aggr_function' to 'aggr_func' for consistency in data processing.
2025-07-01 15:48:18 -03:00
vitor-aignosi
0e915f5491 SIENTIAPDE-1110
Update Redis activity to include specific prefixes for keys in last data timestamp and held data, enhancing clarity in data management.
2025-07-01 15:45:03 -03:00
vitor-aignosi
c9b9974f9d SIENTIAPDE-1110
Refactor Redis activity to remove unused 'ttl' parameter in set method, streamlining data handling.
2025-07-01 15:41:49 -03:00
vitor-aignosi
f183bac90d SIENTIAPDE-1110
Enhance MongoDB data return format by converting to DataFrame dictionary, improving data structure for downstream processing.
2025-07-01 15:37:40 -03:00
vitor-aignosi
f441873969 SIENTIAPDE-1110
Refactor MongoDB data retrieval to convert cursor to list, improving data handling and compatibility.
2025-07-01 15:33:51 -03:00
vitor-aignosi
d7d44556c8 SIENTIAPDE-1110
Update MongoDB activity to handle None last_data_timestamp by using an empty filter, improving data retrieval logic.
2025-07-01 15:31:27 -03:00
vitor-aignosi
1908741feb SIENTIAPDE-1110
Add debug logging for MongoDB data loading to enhance traceability of input data.
2025-07-01 15:26:57 -03:00
vitor-aignosi
9b524ea428 SIENTIAPDE-1110
Refactor MongoDB activity to import datetime directly and format 'inserted_at' timestamps to ISO 8601 format for improved data consistency.
2025-07-01 15:20:50 -03:00
vitor-aignosi
53337de74a SIENTIAPDE-1110
SIENTIAPDE-1110 Add MongoDB integration and enhance Redis activity with timestamp management functions.
2025-07-01 15:10:32 -03:00
vitor-aignosi
e7b05ebf3a SIENTIAPDE-1110
Add logging for consumer creation in Kafka activity to enhance traceability of topic management.
2025-07-01 11:05:03 -03:00
vitor-aignosi
946d953598 SIENTIAPDE-1110
Refactor Kafka activity to improve message consumption by using getmany for batch retrieval, enhancing performance and simplifying message handling logic.
2025-07-01 10:57:12 -03:00
vitor-aignosi
704099c387 SIENTIAPDE-1110
Update Kafka activity to use AIOKafkaConsumer for asynchronous message handling, enhancing consumer management and adding support for multiple topics.
2025-07-01 10:44:37 -03:00
vitor-aignosi
66b568838e SIENTIAPDE-1110
Refactor Kafka activity to use instance-level kafka_connector for improved message polling and management, replacing local variable usage with class attribute methods.
2025-07-01 08:21:00 -03:00
vitor-aignosi
a53804331b SIENTIAPDE-1110
Enhance Kafka activity initialization by adding bootstrap_servers and group_id attributes for improved configuration management.
2025-06-30 14:36:15 -03:00
vitor-aignosi
d33a5cbb72 SIENTIAPDE-1110
Refactor Kafka activity to use local kafka_connector variable for improved readability and ensure proper closure of the Kafka consumer after polling.
2025-06-30 14:12:02 -03:00
vitor-aignosi
6144bcf8ff SIENTIAPDE-1110
Update Kafka polling time in values.yaml and refactor Kafka subscription in kafka.py to use KafkaConsumer for improved message handling.
2025-06-30 14:11:30 -03:00
vitor-aignosi
4a90b77786 SIENTIAPDE-1110
Update sientia-dataops-library version to 1.2.0 in requirements.txt; refactor logging in activities to use a unified Logger instance and include metadata in log messages across various activities.
2025-06-26 15:15:31 -03:00
vitor-aignosi
d27dde99a9 SIENTIAPDE-1100
Fix error handling in aggregate_data method by raising the caught exception
2025-06-12 09:27:37 -03:00
vitor-aignosi
8cf3273714 SIENTIAPDE-1082
Implement shutdown methods for Activities and Kafka; enhance error handling in worker main function
2025-06-09 15:09:53 -03:00
vitor-aignosi
7dbb9a29ea SIENTIAPDE-1094
Update environment configuration and refactor activity imports

- Changed Kafka, Redis, and Temporal host configurations to use localhost.
- Updated the version reference for the sientia-dataops-library in requirements.txt.
- Refactored import paths for activities to align with new module structure.
- Removed unused base.py and postgres.py files.
- Updated logger and policies imports to reflect new module locations.
- Adjusted values.yaml for branch and log level settings.
2025-06-09 09:43:06 -03:00
vitor-aignosi
7822a41040 Adjusting actions 2025-05-19 16:51:22 -03:00
vitor-aignosi
b29d7ba65d SIENTIAPDE-1005
Adjusting super prepare activity call
2025-05-19 14:56:57 -03:00
vitor-aignosi
bb07de573f SIENTIAPDE-1005
Activities fix
2025-05-19 11:59:41 -03:00
vitor-aignosi
9b715ea8c9 SIENTIAPDE-1005
Redis auth
2025-05-19 10:08:45 -03:00
vitor-aignosi
df8a0fc706 SIENTIAPDE-1005
Enhance README and configuration files; add Redis authentication and update workflows
2025-05-16 16:30:43 -03:00
vitor-aignosi
e252ca7962 SIENTIAPDE-1005
Full coverage

Refactor code structure and improve logging configuration; update tests for activities and connectors
2025-05-16 12:58:36 -03:00
vitor-aignosi
b203b7d22c SIENTIAPDE-1005
Implement workflows for fake data generation, scouter processing, and core scouter operations

- Added `FakeData` workflow to generate random data and send it to a Kafka topic.
- Implemented `Scouter` workflow to load data from Kafka and trigger the core scouter workflow.
- Created `CoreScouter` workflow to process data through quality gates, aggregation, and export to PostgreSQL.
- Developed comprehensive unit tests for activities and workflows, ensuring proper functionality and error handling.
- Enhanced Redis and Postgres activities with robust testing for data handling and error notifications.
- Introduced quality filters for data validation and implemented tests to verify their functionality.
2025-05-15 16:53:24 -03:00
vitor-aignosi
4e579dd5bd SIENTIAPDE-1005
Add initial implementation of data processing activities and filters
2025-05-13 16:58:03 -03:00