-
Notifications
You must be signed in to change notification settings - Fork 0
Spending pattern analysis #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ection. Removed redundant embedding store implementations, transitioning to a unified factory-based approach. Introduced seasonal spending pattern detection with corresponding database schema changes and providers. Updated logging and configuration to support the new features.
Introduced rule engine integration in transaction processing, enabling automated rule application with detailed logging and efficient pagination. Updated spending insights and patterns database schema for improved precision using `decimal` type and `BIGSERIAL` for IDs. Adjusted scheduled task for spending analysis to execute on the 15th of each month.
Introduce the AnalyzeJob framework for scheduling, processing, and persisting spending analysis tasks. This includes JPA entities, repositories, message commands, a scheduler, and logging enhancements to streamline the monthly analysis workflow.
Refactored code for spending pattern detection to improve readability, maintainability, and functionality. Added comprehensive unit tests for `SeasonalPattern`, `AmountPattern`, and anomaly detection to ensure robust logic and error handling. Minor optimizations and cleanup in related modules.
Unresolved for now:
|
Reformatted and condensed multiline lambda expressions into a more concise single-line or cleaner format across various classes. This improves readability and consistency throughout the codebase without altering functionality.
14ad6bf
to
b7ec7c2
Compare
Introduced custom `MockitoConfiguration` for mock behaviors with better handling of `Optional`, `Sequence`, and `ResultPage` types. Enhanced `PatternDetector` and `AnomalyDetector` with new test cases and refined logic for detecting and updating spending patterns, improving reliability and coverage.
Revised `CreateSpendingInsight` and `CreateSpendingPattern` commands to use flat field structures instead of nested objects. Updated related JPA providers and tests to reflect these changes, enhancing clarity and reducing coupling.
Introduced a test to verify that EmbeddingStoreFiller correctly executes the callback for transactions. It ensures event publishing and proper integration with executor services are working as expected.
Introduced new endpoints to retrieve spending insights and patterns for a specific year and month. Implemented respective response models, endpoint logic, and comprehensive test coverage to ensure correct functionality and data integrity.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking change
Proposed change
Add the initial version for spending pattern detection and spending insight detection.
Type of change
Additional information
Checklist